#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;
	float fLocal_12 = 0f;
	float fLocal_13 = 0f;
	float fLocal_14 = 0f;
	var uLocal_15 = 0;
	var uLocal_16 = 0;
	int iLocal_17 = 0;
	char* sLocal_18 = NULL;
	var uLocal_19 = 0;
	var uLocal_20 = 0;
	var uLocal_21 = 0;
	var uLocal_22 = 0;
	float fLocal_23 = 0f;
	float fLocal_24 = 0f;
	float fLocal_25 = 0f;
	var uLocal_26 = 0;
	var uLocal_27 = 0;
	var uLocal_28 = 0;
	int iLocal_29 = 0;
	float fLocal_30 = 0f;
	var uLocal_31 = 0;
	var uLocal_32 = 0;
	var uLocal_33 = 0;
	float fLocal_34 = 0f;
	float fLocal_35 = 0f;
	int iLocal_36 = 0;
	var uLocal_37 = 0;
	var uLocal_38 = 0;
	var uLocal_39 = 0;
	var uLocal_40 = 0;
	int iLocal_41 = 0;
	int iLocal_42 = 0;
	int iLocal_43 = 0;
	int iLocal_44 = 0;
	var uLocal_45 = 0;
	var uLocal_46 = 0;
	var uLocal_47 = 0;
	var uLocal_48 = 0;
	var uLocal_49 = 0;
	var uLocal_50 = 0;
	var uLocal_51 = 0;
	var uLocal_52 = 0;
	var uLocal_53 = 0;
	var uLocal_54 = 0;
	var uLocal_55 = 0;
	var uLocal_56 = 0;
	var uLocal_57 = 0;
	float fLocal_58 = 0f;
	float fLocal_59 = 0f;
	float fLocal_60 = 0f;
	float fLocal_61 = 0f;
	float fLocal_62 = 0f;
	var uLocal_63 = 0;
	var uLocal_64 = 0;
	var uLocal_65 = 0;
	var uLocal_66 = 0;
	var uLocal_67 = 0;
	var uLocal_68 = 17;
	var uLocal_69 = 0;
	var uLocal_70 = 0;
	var uLocal_71 = 0;
	var uLocal_72 = 0;
	var uLocal_73 = 0;
	var uLocal_74 = 0;
	var uLocal_75 = 0;
	var uLocal_76 = 0;
	var uLocal_77 = 0;
	var uLocal_78 = 0;
	var uLocal_79 = 0;
	var uLocal_80 = 0;
	var uLocal_81 = 0;
	var uLocal_82 = 0;
	var uLocal_83 = 0;
	var uLocal_84 = 0;
	var uLocal_85 = 0;
	var uLocal_86 = 17;
	var uLocal_87 = 0;
	var uLocal_88 = 0;
	var uLocal_89 = 0;
	var uLocal_90 = 0;
	var uLocal_91 = 0;
	var uLocal_92 = 0;
	var uLocal_93 = 0;
	var uLocal_94 = 0;
	var uLocal_95 = 0;
	var uLocal_96 = 0;
	var uLocal_97 = 0;
	var uLocal_98 = 0;
	var uLocal_99 = 0;
	var uLocal_100 = 0;
	var uLocal_101 = 0;
	var uLocal_102 = 0;
	var uLocal_103 = 0;
	var uLocal_104 = 0;
	var uLocal_105 = 0;
	var uLocal_106 = 0;
	var uLocal_107 = 0;
	var uLocal_108 = 0;
	var uLocal_109 = 0;
	var uLocal_110 = 0;
	var uLocal_111 = 8;
	var uLocal_112 = 0;
	var uLocal_113 = 0;
	var uLocal_114 = 0;
	var uLocal_115 = 0;
	var uLocal_116 = 0;
	var uLocal_117 = 0;
	var uLocal_118 = 0;
	var uLocal_119 = 0;
	var uLocal_120 = 2;
	var uLocal_121 = 0;
	var uLocal_122 = 0;
	var uLocal_123 = 8;
	var uLocal_124 = 0;
	var uLocal_125 = 0;
	var uLocal_126 = 0;
	var uLocal_127 = 0;
	var uLocal_128 = 0;
	var uLocal_129 = 0;
	var uLocal_130 = 0;
	var uLocal_131 = 0;
	var uLocal_132 = 8;
	var uLocal_133 = 0;
	var uLocal_134 = 0;
	var uLocal_135 = 0;
	var uLocal_136 = 0;
	var uLocal_137 = 0;
	var uLocal_138 = 0;
	var uLocal_139 = 0;
	var uLocal_140 = 0;
	float fLocal_141 = 0f;
	var uLocal_142 = 12;
	var uLocal_143 = 0;
	var uLocal_144 = 0;
	var uLocal_145 = 0;
	var uLocal_146 = 0;
	var uLocal_147 = 0;
	var uLocal_148 = 0;
	var uLocal_149 = 0;
	var uLocal_150 = 0;
	var uLocal_151 = 0;
	var uLocal_152 = 0;
	var uLocal_153 = 0;
	var uLocal_154 = 0;
	var uLocal_155 = 12;
	var uLocal_156 = 0;
	var uLocal_157 = 0;
	var uLocal_158 = 0;
	var uLocal_159 = 0;
	var uLocal_160 = 0;
	var uLocal_161 = 0;
	var uLocal_162 = 0;
	var uLocal_163 = 0;
	var uLocal_164 = 0;
	var uLocal_165 = 0;
	var uLocal_166 = 0;
	var uLocal_167 = 0;
	var uLocal_168 = 12;
	var uLocal_169 = 0;
	var uLocal_170 = 0;
	var uLocal_171 = 0;
	var uLocal_172 = 0;
	var uLocal_173 = 0;
	var uLocal_174 = 0;
	var uLocal_175 = 0;
	var uLocal_176 = 0;
	var uLocal_177 = 0;
	var uLocal_178 = 0;
	var uLocal_179 = 0;
	var uLocal_180 = 0;
	var uLocal_181 = 9;
	var uLocal_182 = 0;
	var uLocal_183 = 0;
	var uLocal_184 = 0;
	var uLocal_185 = 0;
	var uLocal_186 = 0;
	var uLocal_187 = 0;
	var uLocal_188 = 0;
	var uLocal_189 = 0;
	var uLocal_190 = 0;
	var uLocal_191 = 9;
	var uLocal_192 = 0;
	var uLocal_193 = 0;
	var uLocal_194 = 0;
	var uLocal_195 = 0;
	var uLocal_196 = 0;
	var uLocal_197 = 0;
	var uLocal_198 = 0;
	var uLocal_199 = 0;
	var uLocal_200 = 0;
	var uLocal_201 = 0;
	var uLocal_202 = 0;
	var uLocal_203 = 0;
	var uLocal_204 = 0;
	var uLocal_205 = 0;
	var uLocal_206 = 0;
	var uLocal_207 = 0;
	var uLocal_208 = 0;
	var uLocal_209 = 0;
	var uLocal_210 = 0;
	var uLocal_211 = 0;
	var uLocal_212 = 0;
	var uLocal_213 = 0;
	var uLocal_214 = 0;
	var uLocal_215 = 0;
	int iLocal_216 = 0;
	int iLocal_217 = 0;
	int iLocal_218 = 0;
	int iLocal_219 = 0;
	int iLocal_220 = 0;
	int iLocal_221 = 0;
	struct<4> Local_222[16];
	var uLocal_287[16] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	struct<14> Local_304[231];
	int iLocal_3539[2] = { 0, 0 };
	int iLocal_3542 = 0;
	int iLocal_3543 = 0;
	struct<10> Local_3544[50];
	int iLocal_4045 = 0;
	int iLocal_4046 = 0;
	int iLocal_4047 = 0;
	int iLocal_4048 = 0;
	int iLocal_4049 = 0;
	int iLocal_4050 = 0;
	vector3 vLocal_4051 = { 0f, 0f, 0f };
	int iLocal_4054 = 0;
	int iLocal_4055 = 0;
	int iLocal_4056 = 0;
	struct<351> Local_4057[4];
	struct<12> Local_5462[4];
	int iLocal_5511 = 0;
	int iLocal_5512 = 0;
	int iLocal_5513 = 0;
	struct<10> Local_5514 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	int iLocal_5524 = 0;
	float fLocal_5525 = 0f;
	float fLocal_5526 = 0f;
	float fLocal_5527 = 0f;
	float fLocal_5528 = 0f;
	int iLocal_5529 = 0;
	int iLocal_5530 = 0;
	int iLocal_5531 = 0;
	int iLocal_5532 = 0;
	vector3 vLocal_5533 = { 0f, 0f, 0f };
	vector3 vLocal_5536 = { 0f, 0f, 0f };
	vector3 vLocal_5539 = { 0f, 0f, 0f };
	int iLocal_5542 = 0;
	vector3 vLocal_5543 = { 0f, 0f, 0f };
	vector3 vLocal_5546 = { 0f, 0f, 0f };
	float fLocal_5549 = 0f;
	float fLocal_5550 = 0f;
	int iLocal_5551 = 0;
	int iLocal_5552 = 0;
	int iLocal_5553 = 0;
	char* sLocal_5554 = NULL;
	int iLocal_5555 = 0;
	int iLocal_5556 = 0;
	int iLocal_5557 = 0;
	int iLocal_5558 = 0;
	float fLocal_5559 = 0f;
	float fLocal_5560 = 0f;
	int iLocal_5561 = 0;
	var uLocal_5562[50] = { 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_5613 = 0;
	float fLocal_5614 = 0f;
	float fLocal_5615 = 0f;
	float fLocal_5616 = 0f;
	float fLocal_5617 = 0f;
	float fLocal_5618 = 0f;
	float fLocal_5619 = 0f;
	float fLocal_5620 = 0f;
	float fLocal_5621 = 0f;
	float fLocal_5622 = 0f;
	float fLocal_5623 = 0f;
	float fLocal_5624 = 0f;
	float fLocal_5625 = 0f;
	int iLocal_5626 = 0;
	float fLocal_5627 = 0f;
	float fLocal_5628 = 0f;
	int iLocal_5629 = 0;
	int iLocal_5630 = 0;
	int iLocal_5631 = 0;
	vector3 vLocal_5632 = { 0f, 0f, 0f };
	int iLocal_5635 = 0;
	int iLocal_5636 = 0;
	int iLocal_5637 = 0;
	int iLocal_5638 = 0;
	int iLocal_5639 = 0;
	int iLocal_5640 = 0;
	int iLocal_5641 = 0;
	int iLocal_5642 = 0;
	int iLocal_5643 = 0;
	int iLocal_5644 = 0;
	int iLocal_5645 = 0;
	int iLocal_5646 = 0;
	int iLocal_5647 = 0;
	int iLocal_5648 = 0;
	int iLocal_5649 = 0;
	int iLocal_5650 = 0;
	int iLocal_5651 = 0;
	int iLocal_5652 = 0;
	vector3 vLocal_5653 = { 0f, 0f, 0f };
	int iLocal_5656 = 0;
	int iLocal_5657 = 0;
	int iLocal_5658 = 0;
	int iLocal_5659 = 0;
	int iLocal_5660 = 0;
	int iLocal_5661 = 0;
	struct<92> Local_5662 = { 17, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	int iLocal_5754 = 0;
	int iLocal_5755 = 0;
	int iLocal_5756 = 0;
	int iLocal_5757 = 0;
	int iLocal_5758 = 0;
	int iLocal_5759 = 0;
	int iLocal_5760 = 0;
	struct<67> Local_5761 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 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 = 0;
	var uLocal_5836 = 0;
	var uLocal_5837 = 0;
	var uLocal_5838 = 0;
	struct<67> Local_5839 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 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 = -1;
	var uLocal_5918 = 0;
	var uLocal_5919 = 0;
	var uLocal_5920 = 0;
	var uLocal_5921 = 0;
	var uLocal_5922 = 0;
	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 = -1;
	var uLocal_5935 = 1;
	var uLocal_5936 = 0;
	var uLocal_5937 = 132;
	int iLocal_5938 = 0;
	int iLocal_5939 = 0;
	int iLocal_5940 = 0;
	int iLocal_5941 = 0;
	int iLocal_5942 = 0;
	int iLocal_5943 = 0;
	int iLocal_5944 = 0;
	int iLocal_5945 = 0;
	int iLocal_5946 = 0;
	int iLocal_5947[282] = { 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, 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, 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, 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, 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, 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, 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, 0, 0 };
	int iLocal_6230[21] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_6252[282] = { 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, 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, 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, 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, 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, 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, 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, 0, 0 };
	float fLocal_6535 = 0f;
	float fLocal_6536 = 0f;
	float fLocal_6537 = 0f;
	float fLocal_6538 = 0f;
	float fLocal_6539 = 0f;
	float fLocal_6540 = 0f;
	float fLocal_6541 = 0f;
	float fLocal_6542 = 0f;
	float fLocal_6543 = 0f;
	float fLocal_6544 = 0f;
	float fLocal_6545 = 0f;
	float fLocal_6546 = 0f;
	var uLocal_6547 = 0;
	var uLocal_6548 = 0;
	int iLocal_6549 = 0;
	int iLocal_6550 = 0;
	int iLocal_6551 = 0;
	int iLocal_6552 = 0;
	int iLocal_6553 = 0;
	int iLocal_6554 = 0;
	int iLocal_6555 = 0;
	int iLocal_6556 = 0;
	int iLocal_6557 = 0;
	int iLocal_6558 = 0;
	int iLocal_6559 = 0;
	int iLocal_6560 = 0;
	int iLocal_6561 = 0;
	int iLocal_6562 = 0;
	int iLocal_6563 = 0;
	int iLocal_6564 = 0;
	struct<5> Local_6565[48];
	int iLocal_6806 = 0;
	var uLocal_6807 = 0;
	int iLocal_6808 = 0;
	int iLocal_6809 = 0;
	int iLocal_6810 = 0;
	struct<66> Local_6811 = { 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0 } ;
	int iLocal_6877 = 0;
	struct<32> Local_6878[20];
	int iLocal_7519 = 0;
	int iLocal_7520[14] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_7535[14] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_7550[14] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_7565 = 0;
	int iLocal_7566 = 0;
	int iLocal_7567 = 0;
	int iLocal_7568 = 0;
	int iLocal_7569 = 0;
	int iLocal_7570 = 0;
	int iLocal_7571 = 0;
	int iLocal_7572[14] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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;
	int iLocal_7600 = 0;
	int iLocal_7601 = 0;
	int iLocal_7602 = 0;
	vector3 vLocal_7603 = { 0f, 0f, 0f };
	float fLocal_7606 = 0f;
	int iLocal_7607 = 0;
	vector3 vLocal_7608 = { 0f, 0f, 0f };
	float fLocal_7611 = 0f;
	vector3 vLocal_7612 = { 0f, 0f, 0f };
	vector3 vLocal_7615 = { 0f, 0f, 0f };
	vector3 vLocal_7618 = { 0f, 0f, 0f };
	vector3 vLocal_7621 = { 0f, 0f, 0f };
	vector3 vLocal_7624 = { 0f, 0f, 0f };
	vector3 vLocal_7627 = { 0f, 0f, 0f };
	vector3 vLocal_7630 = { 0f, 0f, 0f };
	vector3 vLocal_7633 = { 0f, 0f, 0f };
	float fLocal_7636 = 0f;
	int iLocal_7637 = 0;
	int iLocal_7638 = 0;
	vector3 vLocal_7639 = { 0f, 0f, 0f };
	vector3 vLocal_7642 = { 0f, 0f, 0f };
	vector3 vLocal_7645 = { 0f, 0f, 0f };
	vector3 vLocal_7648 = { 0f, 0f, 0f };
	float fLocal_7651 = 0f;
	float fLocal_7652 = 0f;
	float fLocal_7653 = 0f;
	float fLocal_7654 = 0f;
	int iLocal_7655 = 0;
	int iLocal_7656 = 0;
	int iLocal_7657 = 0;
	int iLocal_7658 = 0;
	int iLocal_7659 = 0;
	int iLocal_7660 = 0;
	int iLocal_7661 = 0;
	int iLocal_7662 = 0;
	int iLocal_7663 = 0;
	int iLocal_7664 = 0;
	vector3 vLocal_7665 = { 0f, 0f, 0f };
	vector3 vLocal_7668 = { 0f, 0f, 0f };
	float fLocal_7671 = 0f;
	int iLocal_7672 = 0;
	int iLocal_7673 = 0;
	int iLocal_7674 = 0;
	int iLocal_7675 = 0;
	int iLocal_7676[17] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_7694 = 0;
	int iLocal_7695 = 0;
	int iLocal_7696 = 0;
	int iLocal_7697 = 0;
	int iLocal_7698 = 0;
	int iLocal_7699 = 0;
	int iLocal_7700 = 0;
	vector3 vLocal_7701 = { 0f, 0f, 0f };
	vector3 vLocal_7704 = { 0f, 0f, 0f };
	float fLocal_7707 = 0f;
	int iLocal_7708 = 0;
	var uLocal_7709[2] = { 0, 0 };
	int iLocal_7712 = 0;
	int iLocal_7713 = 0;
	float fLocal_7714 = 0f;
	float fLocal_7715 = 0f;
	int iLocal_7716 = 0;
	int iLocal_7717 = 0;
	int iLocal_7718 = 0;
	int iLocal_7719 = 0;
	int iLocal_7720 = 0;
	int iLocal_7721 = 0;
	int iLocal_7722 = 0;
	int iLocal_7723 = 0;
	struct<8> Local_7724 = { 0, 0, 0, 0, 0, 0, 0, 0 } ;
	struct<2> Local_7732 = { 0, 0 } ;
	struct<10> Local_7734 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_7744 = 0;
	int iLocal_7745 = 0;
	int iLocal_7746 = 0;
	int iLocal_7747 = 0;
	int iLocal_7748 = 0;
	int iLocal_7749 = 0;
	int iLocal_7750 = 0;
	int iLocal_7751 = 0;
	int iLocal_7752 = 0;
	int iLocal_7753 = 0;
	int iLocal_7754 = 0;
	int iLocal_7755 = 0;
	int iLocal_7756 = 0;
	struct<8> Local_7757[18];
	int iLocal_7902[18] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_7921 = 0;
	int iLocal_7922 = 0;
	var uLocal_7923 = 0;
	var uLocal_7924 = 0;
	struct<401> Local_7925[2];
	struct<399> Local_8728 = { 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 71, 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, 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, 71, 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, 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, 71, 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, 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_9127 = 0;
	struct<17> Local_9128[30];
	int iLocal_9639[30] = { 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_9670 = 0;
	int iLocal_9671 = 0;
	int iLocal_9672 = 0;
	int iLocal_9673 = 0;
	vector3 vLocal_9674 = { 0f, 0f, 0f };
	vector3 vLocal_9677 = { 0f, 0f, 0f };
	int iLocal_9680 = 0;
	int iLocal_9681 = 0;
	var uLocal_9682 = 27;
	var uLocal_9683 = 0;
	var uLocal_9684 = 0;
	var uLocal_9685 = 0;
	var uLocal_9686 = 0;
	var uLocal_9687 = 0;
	var uLocal_9688 = 0;
	var uLocal_9689 = 0;
	var uLocal_9690 = 0;
	var uLocal_9691 = 0;
	var uLocal_9692 = 0;
	var uLocal_9693 = 0;
	var uLocal_9694 = 0;
	var uLocal_9695 = 0;
	var uLocal_9696 = 0;
	var uLocal_9697 = 0;
	var uLocal_9698 = 0;
	var uLocal_9699 = 0;
	var uLocal_9700 = 0;
	var uLocal_9701 = 0;
	var uLocal_9702 = 0;
	var uLocal_9703 = 0;
	var uLocal_9704 = 0;
	var uLocal_9705 = 0;
	var uLocal_9706 = 0;
	var uLocal_9707 = 0;
	var uLocal_9708 = 0;
	var uLocal_9709 = 0;
	int iLocal_9710 = 0;
	int iLocal_9711 = 0;
	int iLocal_9712 = 0;
	int iLocal_9713 = 0;
	int iLocal_9714 = 0;
	int iLocal_9715 = 0;
	int iLocal_9716 = 0;
	int iLocal_9717 = 0;
	int iLocal_9718 = 0;
	int iLocal_9719 = 0;
	int iLocal_9720 = 0;
	int iLocal_9721 = 0;
	int iLocal_9722 = 0;
	int iLocal_9723 = 0;
	int iLocal_9724 = 0;
	int iLocal_9725 = 0;
	int iLocal_9726 = 0;
	int iLocal_9727 = 0;
	int iLocal_9728 = 0;
	int iLocal_9729 = 0;
	int iLocal_9730 = 0;
	int iLocal_9731 = 0;
	int iLocal_9732 = 0;
	int iLocal_9733 = 0;
	int iLocal_9734 = 0;
	int iLocal_9735 = 0;
	int iLocal_9736 = 0;
	int iLocal_9737 = 0;
	int iLocal_9738 = 0;
	int iLocal_9739 = 0;
	int iLocal_9740 = 0;
	int iLocal_9741 = 0;
	int iLocal_9742 = 0;
	int iLocal_9743 = 0;
	int iLocal_9744 = 0;
	int iLocal_9745 = 0;
	int iLocal_9746 = 0;
	int iLocal_9747 = 0;
	vector3 vLocal_9748 = { 0f, 0f, 0f };
	vector3 vLocal_9751 = { 0f, 0f, 0f };
	struct<8> Local_9754 = { 0, 0, 0, 0, 0, 0, 0, 0 } ;
	int iLocal_9762 = 0;
	int iLocal_9763 = 0;
	int iLocal_9764 = 0;
	int iLocal_9765 = 0;
	int iLocal_9766 = 0;
	int iLocal_9767 = 0;
	int iLocal_9768 = 0;
	int iLocal_9769 = 0;
	int iLocal_9770 = 0;
	int iLocal_9771 = 0;
	int iLocal_9772 = 0;
	int iLocal_9773 = 0;
	int iLocal_9774 = 0;
	char* sLocal_9775 = NULL;
	int iLocal_9776 = 0;
	int iLocal_9777 = 0;
	int iLocal_9778 = 0;
	int iLocal_9779 = 0;
	int iLocal_9780 = 0;
	int iLocal_9781 = 0;
	int iLocal_9782 = 0;
	int iLocal_9783 = 0;
	int iLocal_9784 = 0;
	int iLocal_9785 = 0;
	int iLocal_9786 = 0;
	int iLocal_9787 = 0;
	int iLocal_9788 = 0;
	int iLocal_9789 = 0;
	int iLocal_9790 = 0;
	int iLocal_9791 = 0;
	vector3 vLocal_9792 = { 0f, 0f, 0f };
	vector3 vLocal_9795 = { 0f, 0f, 0f };
	vector3 vLocal_9798 = { 0f, 0f, 0f };
	float fLocal_9801 = 0f;
	int iLocal_9802 = 0;
	int iLocal_9803 = 0;
	int iLocal_9804 = 0;
	int iLocal_9805 = 0;
	var uLocal_9806 = 0;
	var uLocal_9807 = 0;
	var uLocal_9808 = 0;
	int iLocal_9809 = 0;
	int iLocal_9810 = 0;
	int iLocal_9811 = 0;
	int iLocal_9812 = 0;
	int iLocal_9813 = 0;
	int iLocal_9814 = 0;
	int iLocal_9815 = 0;
	int iLocal_9816 = 0;
	int iLocal_9817 = 0;
#endregion

void __EntryFunction__()//Position - 0x0
{
	iLocal_2 = 1;
	iLocal_3 = 134;
	iLocal_4 = 134;
	iLocal_5 = 1;
	iLocal_6 = 1;
	iLocal_7 = 1;
	iLocal_8 = 134;
	iLocal_9 = 1;
	iLocal_10 = 12;
	iLocal_11 = 12;
	fLocal_14 = 0.001f;
	iLocal_17 = -1;
	sLocal_18 = "NULL";
	fLocal_23 = 80f;
	fLocal_24 = 140f;
	fLocal_25 = 180f;
	iLocal_29 = 3;
	fLocal_30 = 0f;
	fLocal_34 = -0.0375f;
	fLocal_35 = 0.17f;
	iLocal_41 = 1;
	iLocal_42 = 65;
	iLocal_43 = 49;
	iLocal_44 = 64;
	fLocal_58 = -0.05f;
	fLocal_59 = 0.92f;
	fLocal_60 = 1.94f;
	fLocal_61 = 2.99f;
	fLocal_62 = 3.7f;
	fLocal_141 = ((0.05f + 0.275f) - 0.01f);
	iLocal_216 = ui::_0x4A9923385BDB9DAD();
	iLocal_217 = ui::_get_blip_info_id_iterator();
	iLocal_218 = 1;
	iLocal_219 = 1;
	iLocal_4048 = -1;
	iLocal_4049 = -1;
	vLocal_4051 = { -99.9f, -99.9f, -99.9f };
	iLocal_4056 = -1;
	fLocal_5526 = 3f;
	fLocal_5527 = 3f;
	fLocal_5528 = 15f;
	sLocal_5554 = "RemovePropMenuHelp";
	iLocal_5556 = -1;
	iLocal_5558 = -2;
	fLocal_5559 = 100f;
	fLocal_5560 = 100f;
	fLocal_5614 = 0.1124f;
	fLocal_5615 = 0.2334f;
	fLocal_5616 = 0.225f;
	fLocal_5617 = 0.0027f;
	fLocal_5618 = 0.295f;
	fLocal_5619 = 0.15f;
	fLocal_5620 = 0.005f;
	fLocal_5621 = 0.0235f;
	fLocal_5622 = 0.0035f;
	fLocal_5623 = 0.03f;
	fLocal_5624 = 0.2f;
	fLocal_5625 = 0.178f;
	iLocal_5626 = 2;
	fLocal_5627 = 1f;
	fLocal_5628 = 0.575f;
	iLocal_5629 = 0;
	iLocal_5630 = 2;
	iLocal_5636 = 210;
	iLocal_5637 = 209;
	iLocal_5638 = 201;
	iLocal_5639 = 203;
	iLocal_5640 = 207;
	iLocal_5641 = 208;
	iLocal_5642 = 206;
	iLocal_5643 = 205;
	iLocal_5652 = 1500;
	iLocal_5657 = -1;
	iLocal_5659 = 144;
	fLocal_6536 = 0.916f;
	fLocal_6537 = 1f;
	fLocal_6538 = 0.113f;
	fLocal_6539 = 0.2254f;
	fLocal_6540 = 0.0415f;
	fLocal_6541 = 0.1124f;
	fLocal_6542 = 0.225f;
	fLocal_6543 = 0.1134f;
	fLocal_6544 = 0.9586f;
	fLocal_6545 = 0.415f;
	fLocal_6546 = 0.0027f;
	iLocal_6555 = 1;
	iLocal_6564 = 3;
	vLocal_7603 = { -19.8146f, -13.3768f, 499.6126f };
	fLocal_7606 = 22f;
	vLocal_7608 = { -20.0092f, -10.8837f, 499.6f };
	fLocal_7611 = 310f;
	vLocal_7612 = { -15.7f, -11.9f, 500.5f };
	vLocal_7615 = { -1.2f, 0f, -139.7f };
	vLocal_7618 = { -16.911f, -9.5f, 500.3f };
	vLocal_7621 = { -3f, 0f, -136.4f };
	vLocal_7624 = { -17.5902f, -7.8481f, 500.7232f };
	vLocal_7627 = { 5.7691f, 0f, 145.0362f };
	vLocal_7630 = { -14.6119f, -3.3614f, 499.845f };
	vLocal_7633 = { 4.0059f, 0f, 151.7677f };
	iLocal_7655 = 189;
	iLocal_7656 = 190;
	iLocal_7657 = 188;
	iLocal_7658 = 187;
	iLocal_7659 = 201;
	iLocal_7660 = 202;
	iLocal_7661 = 203;
	iLocal_7662 = 203;
	iLocal_7663 = 36;
	iLocal_7697 = true;
	iLocal_7721 = -1;
	iLocal_7723 = 5;
	iLocal_7748 = 1;
	iLocal_9680 = gameplay::get_game_timer();
	iLocal_9737 = -1;
	vLocal_9748 = { -10000f, -10000f, -1000f };
	vLocal_9751 = { 10000f, 10000f, 1000f };
	iLocal_9805 = 273;
	func_1227();
	iLocal_7708 = entity::get_entity_health(player::player_ped_id());
	while (!func_1226())
	{
		if (iLocal_7587)
		{
			ped::set_ped_density_multiplier_this_frame(0f);
			vehicle::set_vehicle_density_multiplier_this_frame(0f);
		}
		if (Global_100138)
		{
			func_1225();
			Global_100138 = 0;
		}
		if (!iLocal_7673)
		{
			iLocal_7673 = 1;
			if (player::has_force_cleanup_occurred(83))
			{
				iLocal_9743 = player::get_cause_of_most_recent_force_cleanup();
				switch (iLocal_9743)
				{
					case 2:
						func_1127(2, 0);
						break;
					
					case 64:
						func_1127(1, 1);
						break;
					
					case 16:
						func_1127(3, 0);
						break;
					
					case 1:
						switch (iLocal_6555)
						{
							case 1:
								func_1127(0, 0);
								break;
							
							default:
								iLocal_7673 = 0;
								func_1126();
								func_1125(iLocal_7520[0]);
								break;
						}
						break;
					}
				}
		}
		if (!iLocal_7674)
		{
			iLocal_7674 = 1;
			func_1124(0, 1);
			func_1123();
			while (!func_1087())
			{
				if (!ped::is_ped_injured(player::player_ped_id()))
				{
					ped::set_ped_config_flag(player::player_ped_id(), 409, true);
					ped::set_ped_reset_flag(player::player_ped_id(), 197, true);
				}
				system::wait(0);
			}
			player::force_cleanup(128);
			func_1022();
		}
		func_3();
		if ((network::_0xD313DE83394AF134() == 0 && func_2() == 0) && func_1() == 0)
		{
			if (unk_0xBE3DB208333D9844())
			{
				stats::_0x629526ABA383BCAA();
			}
		}
		system::wait(0);
	}
	func_1127(3, 0);
}

var func_1()//Position - 0x49C
{
	return Global_1312750;
}

var func_2()//Position - 0x4A8
{
	return Global_1315880;
}

void func_3()//Position - 0x4B4
{
	func_1015();
	func_1014();
	func_1006();
	func_1005();
	func_1004();
	func_991();
	func_881();
	func_782();
	func_755();
	func_381();
	func_380();
	func_359();
	func_354();
	func_177();
	func_174();
	func_71();
	func_67();
	func_18();
	if (iLocal_7587)
	{
		func_6();
	}
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		ped::set_ped_reset_flag(player::player_ped_id(), 197, true);
		ped::set_ped_config_flag(player::player_ped_id(), 409, true);
	}
	func_4();
}

void func_4()//Position - 0x535
{
	int iVar0;
	
	iVar0 = false;
	if ((((entity::get_entity_model(player::player_ped_id()) != joaat("player_zero") && entity::get_entity_model(player::player_ped_id()) != joaat("player_one")) && entity::get_entity_model(player::player_ped_id()) != joaat("player_two")) && entity::get_entity_model(player::player_ped_id()) != joaat("mp_f_freemode_01")) && entity::get_entity_model(player::player_ped_id()) != joaat("mp_m_freemode_01"))
	{
		iVar0 = true;
	}
	if (iVar0)
	{
		if (func_5())
		{
			cam::_0x2A2173E46DAECD12(cam::_0x19CAFA3C87F7C2FF(), 0);
		}
		cam::_disable_first_person_cam_this_frame();
		cam::_disable_vehicle_first_person_cam_this_frame();
	}
}

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

void func_6()//Position - 0x5D6
{
	int iVar0;
	var uVar1;
	vector3 vVar2;
	float fVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	
	player::set_all_random_peds_flee_this_frame(player::player_id());
	cam::_disable_vehicle_first_person_cam_this_frame();
	if (cam::is_cinematic_cam_rendering())
	{
		cam::set_cinematic_mode_active(0);
	}
	if (ped::is_ped_swimming_under_water(player::player_ped_id()))
	{
		ped::set_ped_min_move_blend_ratio(player::player_ped_id(), 3f);
	}
	if (iLocal_5656 != controls::_is_input_disabled(2))
	{
		func_17();
		iLocal_5656 = controls::_is_input_disabled(2);
	}
	if (iLocal_5511)
	{
		if (!cam::is_screen_faded_out() && !iLocal_5512)
		{
			if (!cam::is_screen_fading_out())
			{
				cam::do_screen_fade_out(800);
			}
		}
		else if (!iLocal_5647)
		{
			if (!ped::is_ped_injured(player::player_ped_id()))
			{
				gameplay::clear_area_of_objects(entity::get_entity_coords(player::player_ped_id(), 1), 100f, 0);
				fire::stop_fire_in_range(entity::get_entity_coords(player::player_ped_id(), 1), 1000f);
			}
			func_16(0);
			iVar0 = 0;
			while (iVar0 < 50)
			{
				if (Local_4057[iLocal_4056 /*351*/][iVar0 /*7*/].f_6 != 0)
				{
					Local_3544[iVar0 /*10*/] = { Local_4057[iLocal_4056 /*351*/][iVar0 /*7*/] };
					Local_3544[iVar0 /*10*/].f_3 = { Local_4057[iLocal_4056 /*351*/][iVar0 /*7*/].f_3 };
					Local_3544[iVar0 /*10*/].f_7 = Local_4057[iLocal_4056 /*351*/][iVar0 /*7*/].f_6;
					Local_3544[iVar0 /*10*/].f_6 = 0f;
					iLocal_4045++;
				}
				iVar0++;
			}
			iLocal_5647 = 1;
			iLocal_5648 = 0;
			iLocal_5649 = 0;
			if (!ped::is_ped_injured(player::player_ped_id()))
			{
				vLocal_5653 = { entity::get_entity_coords(player::player_ped_id(), 1) };
			}
		}
		else if (iLocal_5513 < 50)
		{
			if (Local_4057[iLocal_4056 /*351*/][iLocal_5513 /*7*/].f_6 != 0)
			{
				streaming::request_model(Local_3544[iLocal_5513 /*10*/].f_7);
				if (streaming::has_model_loaded(Local_3544[iLocal_5513 /*10*/].f_7))
				{
					if (iLocal_5648 == 0)
					{
						if (gameplay::get_distance_between_coords(vLocal_5653, Local_3544[iLocal_5513 /*10*/], 1) < 3.5f)
						{
							iLocal_5648 = 1;
						}
					}
					Local_3544[iLocal_5513 /*10*/].f_8 = object::create_object(Local_3544[iLocal_5513 /*10*/].f_7, Local_3544[iLocal_5513 /*10*/], 1, true, false);
					if (entity::does_entity_exist(Local_3544[iLocal_5513 /*10*/].f_8))
					{
						entity::set_entity_coords(Local_3544[iLocal_5513 /*10*/].f_8, Local_3544[iLocal_5513 /*10*/], 1, false, 0, 1);
						entity::set_entity_rotation(Local_3544[iLocal_5513 /*10*/].f_8, Local_3544[iLocal_5513 /*10*/].f_3, 2, 1);
						Local_3544[iLocal_5513 /*10*/].f_9 = ui::add_blip_for_entity(Local_3544[iLocal_5513 /*10*/].f_8);
						ui::_0x75A16C3DA34F1245(Local_3544[iLocal_5513 /*10*/].f_9, false);
						ui::set_blip_name_from_text_file(Local_3544[iLocal_5513 /*10*/].f_9, func_15(Local_3544[iLocal_5513 /*10*/].f_7));
						ui::set_blip_scale(Local_3544[iLocal_5513 /*10*/].f_9, 0.75f);
						ui::set_blip_colour(Local_3544[iLocal_5513 /*10*/].f_9, 58);
						uVar1 = func_14(Local_3544[iLocal_5513 /*10*/]);
						if (!Local_304[uVar1 /*14*/].f_6)
						{
							iLocal_4046++;
						}
						if (func_13(Local_304[uVar1 /*14*/].f_5))
						{
							iLocal_4050++;
						}
						entity::set_entity_invincible(Local_3544[iLocal_5513 /*10*/].f_8, true);
						entity::set_entity_proofs(Local_3544[iLocal_5513 /*10*/].f_8, true, true, true, true, true, true, 0, false);
						if (entity::does_entity_have_physics(Local_3544[iLocal_5513 /*10*/].f_8) && unk_0x0C112765300C7E1E(Local_3544[iLocal_5513 /*10*/].f_8))
						{
							rope::set_disable_breaking(Local_3544[iLocal_5513 /*10*/].f_8, 1);
							rope::set_disable_frag_damage(Local_3544[iLocal_5513 /*10*/].f_8, 1);
						}
						entity::freeze_entity_position(Local_3544[iLocal_5513 /*10*/].f_8, true);
						entity::set_entity_collision(Local_3544[iLocal_5513 /*10*/].f_8, true, 0);
						func_12(Local_3544[iLocal_5513 /*10*/].f_7);
					}
					iLocal_5513++;
				}
			}
			else
			{
				while (iLocal_5513 < 50 && Local_4057[iLocal_4056 /*351*/][iLocal_5513 /*7*/].f_6 == 0)
				{
					iLocal_5513++;
				}
			}
		}
		else if (iLocal_5649 == 0)
		{
			if (entity::does_entity_exist(iLocal_5557) && !entity::is_entity_dead(iLocal_5557, 0))
			{
				vVar2 = { entity::get_entity_coords(iLocal_5557, 1) };
				fVar5 = entity::get_entity_heading(iLocal_5557);
				if (!func_11(vVar2, fVar5, entity::get_entity_model(iLocal_5557), 0, 0))
				{
					if (func_7(&vVar2, &fVar5, entity::get_entity_model(iLocal_5557), 0, 0, 1065353216))
					{
						iVar6 = interior::get_interior_from_entity(iLocal_5557);
						if (interior::is_valid_interior(iVar6))
						{
						}
						else
						{
							entity::set_entity_coords(iLocal_5557, vVar2, 1, false, 0, 1);
						}
					}
				}
			}
			if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0) && !entity::is_entity_dead(player::player_ped_id(), 0))
			{
				vVar2 = { entity::get_entity_coords(player::player_ped_id(), 1) + Vector(0.1f, 0f, 0f) };
				fVar5 = entity::get_entity_heading(player::player_ped_id());
				if (iLocal_5648)
				{
					vVar2.z = (vVar2.y + 2f);
				}
				if (!func_11(vVar2, fVar5, 0, 1, 0))
				{
					if (func_7(&vVar2, &fVar5, 0, 0, 1, 1065353216))
					{
						if (iLocal_5648)
						{
							entity::set_entity_coords(player::player_ped_id(), vVar2, 1, false, 0, 1);
							iLocal_5648 = 0;
						}
						else
						{
							entity::set_entity_coords(player::player_ped_id(), vVar2, 1, false, 0, 1);
						}
					}
				}
			}
			if (iLocal_5648 == 1)
			{
				iLocal_5652 = 3000;
				iVar8 = 0;
				iVar7 = interior::get_interior_from_entity(player::player_ped_id());
				if (interior::is_valid_interior(iVar7))
				{
					iVar8 = 1;
				}
				if ((!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0) && !entity::is_entity_dead(player::player_ped_id(), 0)) && iVar8 == 0)
				{
					vLocal_5653.z = (vLocal_5653.y + 1.75f);
					entity::set_entity_coords(player::player_ped_id(), vLocal_5653, 1, false, 0, 1);
					iLocal_5648 = 0;
				}
			}
			else
			{
				iLocal_5652 = 1500;
			}
			iLocal_5650 = gameplay::get_game_timer();
			iLocal_5649 = 1;
		}
		else
		{
			iLocal_5651 = gameplay::get_game_timer();
			if ((iLocal_5651 - iLocal_5650) > iLocal_5652)
			{
				iLocal_5647 = 0;
				iLocal_5511 = 0;
				iLocal_5649 = 0;
				iLocal_5512 = 0;
				iLocal_5513 = 0;
				if (!(cam::is_screen_faded_in() || cam::is_screen_fading_in()))
				{
					cam::do_screen_fade_in(800);
				}
			}
		}
	}
}

bool func_7(var uParam0, float fParam1, int iParam2, int iParam3, int iParam4, float fParam5)//Position - 0xB68
{
	int iVar0;
	int iVar1;
	int iVar2;
	float fVar3;
	vector3 vVar4;
	vector3 vVar7;
	int iVar10;
	int iVar11;
	float fVar12;
	vector3 vVar13;
	vector3 vVar16;
	int iVar19;
	float fVar20;
	var uVar21;
	float fVar22;
	
	iVar0 = 1;
	iVar2 = 0;
	fVar12 = (system::to_float(150) * fParam5);
	if (iParam2 == 0)
	{
		iParam2 = entity::get_entity_model(player::player_ped_id());
	}
	gameplay::get_model_dimensions(iParam2, &vVar13, &vVar16);
	vVar16 = { vVar16 - vVar13 };
	iVar11 = ((((vehicle::is_this_model_a_boat(iParam2) || vehicle::is_this_model_a_heli(iParam2)) || vehicle::is_this_model_a_plane(iParam2)) || vehicle::is_this_model_a_train(iParam2)) || ((vVar16.x > 6f || vVar16.y > 6f) || vVar16.y > 6f));
	pathfind::_0x07FB139B592FA687((*uParam0 - fVar12), (uParam0->f_1 - fVar12), (*uParam0 + fVar12), (uParam0->f_1 + fVar12));
	iVar19 = gameplay::get_game_timer();
	while (!pathfind::_0xF7B79A50B905A30D((*uParam0 - fVar12), (uParam0->f_1 - fVar12), (*uParam0 + fVar12), (uParam0->f_1 + fVar12)) && (gameplay::get_game_timer() - iVar19) < 5000)
	{
		system::wait(0);
	}
	if (((vehicle::is_this_model_a_boat(iParam2) || vehicle::_is_this_model_an_emergency_boat(iParam2)) || iParam2 == joaat("submersible")) || iParam2 == joaat("submersible2"))
	{
		iVar0 = 0;
		vVar16.x = (vVar16.x / 2f);
		vVar16.y = (vVar16.y / 2f);
		vVar16.z = 0f;
		fVar20 = system::vmag(vVar16);
		while (func_10(*uParam0, &vVar4, &iVar0, 16, 300f, 3f))
		{
			if (water::test_vertical_probe_against_all_water(vVar4 + Vector(100f, 0f, 0f), 83, &uVar21) == 1)
			{
				vVar4.z = uVar21;
				gameplay::get_ground_z_for_3d_coord(vVar4 + Vector(100f, 0f, 0f), &fVar22, 0);
				if (fVar22 <= vVar4.y)
				{
					iVar10 = true;
					iVar2 = 0;
					while (func_10(vVar4, &vVar7, &iVar2, 16, fVar20, 0.3f))
					{
						if (water::test_vertical_probe_against_all_water(vVar7 + Vector(10f, 0f, 0f), 83, &uVar21) == 1)
						{
							vVar7.z = uVar21;
							gameplay::get_ground_z_for_3d_coord(vVar7 + Vector(10f, 0f, 0f), &fVar22, 0);
							if (fVar22 > vVar7.y)
							{
								iVar10 = false;
							}
						}
						else
						{
							iVar10 = false;
						}
					}
					if (iVar10)
					{
						if (func_11(vVar4, fVar3, iParam2, iParam4, 0))
						{
							*uParam0 = { vVar4 };
							*fParam1 = fVar3;
							return true;
						}
					}
				}
			}
		}
		return false;
	}
	while (pathfind::get_nth_closest_vehicle_node_with_heading(*uParam0, iVar0, &vVar4, &fVar3, &iVar1, 1, 3f, 0f))
	{
		if (system::vdist2(*uParam0, vVar4) <= (fVar12 * fVar12))
		{
			if (!(iParam3 && interior::is_valid_interior(interior::get_interior_at_coords(vVar4))) && !func_8(vVar4, iVar11, iVar1))
			{
				if (func_11(vVar4, fVar3, iParam2, iParam4, iVar11))
				{
					*uParam0 = { vVar4 };
					*fParam1 = fVar3;
					return true;
				}
			}
			iVar0++;
		}
		else
		{
			return false;
		}
	}
	return false;
}

bool func_8(vector3 vParam0, int iParam3, int iParam4)//Position - 0xE1D
{
	float fVar0;
	
	if (iParam3)
	{
		if (iParam4 < 2)
		{
			return true;
		}
		if (((((((((system::vdist2(vParam0, -1601.68f, -1013.9f, 12.02f) < 2809f || system::vdist2(vParam0, -1645.58f, -1065.69f, 17.53f) < 2809f) || system::vdist2(vParam0, -1688.35f, -1118.13f, 12.15f) < 2809f) || system::vdist2(vParam0, -1751.62f, -1133.6f, 12.09f) < 2809f) || system::vdist2(vParam0, -150.3f, 969.48f, 234.61f) < 400f) || system::vdist2(vParam0, -160.5f, 1006.18f, 233.11f) < 400f) || system::vdist2(vParam0, -215.49f, 887.98f, 207.17f) < 400f) || system::vdist2(vParam0, -186.37f, 830.33f, 202.51f) < 400f) || system::vdist2(vParam0, -114.1f, 784.55f, 201.24f) < 400f) || system::vdist2(vParam0, -140.14f, 910.92f, 237.18f) < 400f)
		{
			return true;
		}
	}
	if (((((((((((((func_9(vParam0, 24.2857f, -663.82f, 31.6286f, 1f, 0) || func_9(vParam0, -73.2402f, -682.619f, 32.6686f, 1f, 0)) || func_9(vParam0, 20.6539f, -673.9974f, 31.3274f, 1f, 0)) || func_9(vParam0, 17.0277f, -679.2629f, 31.3381f, 1f, 0)) || func_9(vParam0, 13.0123f, -681.9813f, 31.3381f, 1f, 0)) || func_9(vParam0, 9.33f, -683.0215f, 31.3381f, 1f, 0)) || func_9(vParam0, -3.0009f, -684.3066f, 31.3381f, 1f, 0)) || func_9(vParam0, -15.2584f, -685.263f, 31.3381f, 1f, 0)) || func_9(vParam0, -27.7868f, -686.3926f, 31.3381f, 1f, 0)) || func_9(vParam0, -40.3021f, -687.285f, 31.3381f, 1f, 0)) || func_9(vParam0, -44.0514f, -687.7671f, 31.3381f, 1f, 0)) || func_9(vParam0, -49.712f, -688.2113f, 31.3381f, 1f, 0)) || func_9(vParam0, -57.6906f, -686.7383f, 31.3381f, 1f, 0)) || func_9(vParam0, 1643.25f, 20.25f, 169.531f, 1f, 0))
	{
		return true;
	}
	gameplay::get_ground_z_for_3d_coord(vParam0 + Vector(10f, 0f, 0f), &fVar0, 0);
	if (vParam0.y < (fVar0 - 0.1f))
	{
		return true;
	}
	return false;
}

bool func_9(vector3 vParam0, vector3 vParam3, float fParam6, int iParam7)//Position - 0x116F
{
	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;
}

bool func_10(vector3 vParam0, var uParam3, int iParam4, int iParam5, float fParam6, float fParam7)//Position - 0x11EA
{
	int iVar0;
	int iVar1;
	float fVar2;
	float fVar3;
	float fVar4;
	float fVar5;
	
	iVar0 = (*iParam4 / iParam5);
	iVar1 = (*iParam4 % iParam5);
	fVar2 = (IntToFloat(iVar0) * fParam7);
	if (fVar2 > fParam6)
	{
		return false;
	}
	if (IntToFloat(*iParam4) > ((IntToFloat(iParam5) * fParam6) / fParam7))
	{
		return false;
	}
	fVar3 = ((360f / IntToFloat(iParam5)) * IntToFloat(iVar1));
	fVar4 = ((system::cos(fVar3) * fParam7) * IntToFloat(iVar0 + 1));
	fVar5 = ((system::sin(fVar3) * fParam7) * IntToFloat(iVar0 + 1));
	*uParam3 = { vParam0 + Vector(0f, fVar5, fVar4) };
	*iParam4++;
	return true;
}

bool func_11(vector3 vParam0, float fParam3, int iParam4, int iParam5, int iParam6)//Position - 0x1273
{
	int iVar0;
	int iVar1;
	int iVar2;
	vector3 vVar3;
	vector3 vVar6;
	var uVar9;
	var uVar12;
	int iVar15;
	var uVar16;
	int iVar17;
	
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		if (iParam4 == 0)
		{
			iParam4 = entity::get_entity_model(player::player_ped_id());
		}
		iVar0 = player::player_ped_id();
		iVar1 = 126;
		if (!iParam5)
		{
			iVar0 = 0;
			iVar1 = 126;
		}
		iVar2 = -1;
		gameplay::get_model_dimensions(iParam4, &vVar3, &vVar6);
		if (iParam6)
		{
			vVar3 = { vVar3 * Vector(1.25f, 1.25f, 1.25f) };
			vVar6 = { vVar6 * Vector(1.25f, 1.25f, 1.25f) };
		}
		vVar6 = { vVar6 - vVar3 };
		iVar15 = worldprobe::_0xFE466162C4401D18(vParam0 - Vector(vVar3.y, 0f, 0f), vVar6, 0f, 0f, fParam3, 2, iVar1, iVar0, 4);
		iVar17 = worldprobe::_get_raycast_result(iVar15, &iVar2, &uVar9, &uVar12, &uVar16);
		while (iVar17 == 1)
		{
			system::wait(0);
			iVar17 = worldprobe::_get_raycast_result(iVar15, &iVar2, &uVar9, &uVar12, &uVar16);
		}
		if (iVar17 == 2)
		{
			if (iVar2 != 0)
			{
				return false;
			}
			return true;
		}
	}
	return false;
}

void func_12(int iParam0)//Position - 0x134D
{
	if (iParam0 != 0)
	{
		streaming::set_model_as_no_longer_needed(iParam0);
	}
}

bool func_13(int iParam0)//Position - 0x1361
{
	if ((iParam0 == 1530421247 || iParam0 == -37176073) || iParam0 == -1381557071)
	{
		return true;
	}
	return false;
}

int func_14(struct<8> Param0, var uParam8, var uParam9)//Position - 0x1398
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 231)
	{
		if (Local_304[iVar0 /*14*/].f_5 == Param0.f_7)
		{
			return iVar0;
		}
		iVar0++;
	}
	return -1;
}

char* func_15(int iParam0)//Position - 0x13C9
{
	if (iParam0 == joaat("prop_const_fence02b"))
	{
		return "FMMC_PR_0";
	}
	if (iParam0 == 2084346858)
	{
		return "FMMC_PR_1";
	}
	if (iParam0 == -1601837956)
	{
		return "FMMC_PR_2";
	}
	if (iParam0 == joaat("prop_offroad_bale01"))
	{
		return "FMMC_PR_3";
	}
	if (iParam0 == joaat("prop_offroad_tyres01"))
	{
		return "FMMC_PR_4";
	}
	if (iParam0 == 812376260)
	{
		return "FMMC_PR_5";
	}
	if (iParam0 == -1286880215)
	{
		return "FMMC_PR_6";
	}
	if (iParam0 == 1172303719)
	{
		return "FMMC_PR_7";
	}
	if (iParam0 == joaat("prop_barier_conc_05a"))
	{
		return "FMMC_PR_8";
	}
	if (iParam0 == joaat("prop_barier_conc_05b"))
	{
		return "FMMC_PR_9";
	}
	if (iParam0 == -1228223417)
	{
		return "FMMC_PR_10";
	}
	if (iParam0 == joaat("prop_bench_05"))
	{
		return "FMMC_PR_12";
	}
	if (iParam0 == -71417349)
	{
		return "FMMC_PR_13";
	}
	if (iParam0 == 1805980844)
	{
		return "FMMC_PR_14";
	}
	if (iParam0 == -403891623)
	{
		return "FMMC_PR_BNBLUE";
	}
	if (iParam0 == joaat("prop_dock_bouy_1"))
	{
		return "FMMC_PR_15";
	}
	if (iParam0 == joaat("prop_dock_bouy_2"))
	{
		return "FMMC_PR_16";
	}
	if (iParam0 == joaat("prop_elecbox_24"))
	{
		return "FMMC_PR_17";
	}
	if (iParam0 == joaat("prop_elecbox_24b"))
	{
		return "FMMC_PR_18";
	}
	if (iParam0 == joaat("prop_portacabin01"))
	{
		return "FMMC_PR_19";
	}
	if (iParam0 == 1899123601)
	{
		return "FMMC_PR_20";
	}
	if (iParam0 == -1951226014)
	{
		return "FMMC_PR_21";
	}
	if (iParam0 == joaat("prop_cons_crate"))
	{
		return "FMMC_PR_22";
	}
	if (iParam0 == joaat("prop_jyard_block_01a"))
	{
		return "FMMC_PR_23";
	}
	if (iParam0 == joaat("prop_conc_sacks_02a"))
	{
		return "FMMC_PR_24";
	}
	if (iParam0 == joaat("prop_byard_sleeper01"))
	{
		return "FMMC_PR_25";
	}
	if (iParam0 == joaat("prop_shuttering01"))
	{
		return "FMMC_PR_26";
	}
	if (iParam0 == joaat("prop_shuttering02"))
	{
		return "FMMC_PR_27";
	}
	if (iParam0 == joaat("prop_shuttering03"))
	{
		return "FMMC_PR_28";
	}
	if (iParam0 == joaat("prop_shuttering04"))
	{
		return "FMMC_PR_29";
	}
	if (iParam0 == 1367246936)
	{
		return "FMMC_PR_30";
	}
	if (iParam0 == 1861370687)
	{
		return "FMMC_PR_31";
	}
	if (iParam0 == joaat("prop_rub_cont_01b"))
	{
		return "FMMC_PR_32";
	}
	if (iParam0 == joaat("prop_rail_boxcar4"))
	{
		return "FMMC_PR_33";
	}
	if (iParam0 == joaat("prop_rub_railwreck_2"))
	{
		return "FMMC_PR_34";
	}
	if (iParam0 == 874602658)
	{
		return "FMMC_PR_35";
	}
	if (iParam0 == joaat("prop_container_ld2"))
	{
		return "FMMC_PR_36";
	}
	if (iParam0 == joaat("prop_rail_boxcar"))
	{
		return "FMMC_PR_37";
	}
	if (iParam0 == joaat("prop_rail_boxcar3"))
	{
		return "FMMC_PR_38";
	}
	if (iParam0 == joaat("prop_byard_floatpile"))
	{
		return "FMMC_PR_39";
	}
	if (iParam0 == -1726996371)
	{
		return "DMPP_FRAGILE";
	}
	if (iParam0 == joaat("prop_watercrate_01"))
	{
		return "FMMC_PR_41";
	}
	if (iParam0 == 1165008631)
	{
		return "FMMC_PR_42";
	}
	if (iParam0 == -2022916910)
	{
		return "FMMC_PR_43";
	}
	if (iParam0 == -1322183878)
	{
		return "FMMC_PR_44";
	}
	if (iParam0 == joaat("prop_cash_crate_01"))
	{
		return "FMMC_PR_45";
	}
	if (iParam0 == joaat("prop_bin_13a"))
	{
		return "FMMC_PR_46";
	}
	if (iParam0 == joaat("prop_bin_14a"))
	{
		return "FMMC_PR_47";
	}
	if (iParam0 == joaat("prop_dumpster_3a"))
	{
		return "FMMC_PR_48";
	}
	if (iParam0 == joaat("prop_dumpster_4b"))
	{
		return "FMMC_PR_49";
	}
	if (iParam0 == 218085040)
	{
		return "FMMC_PR_50";
	}
	if (iParam0 == joaat("prop_skip_06a"))
	{
		return "FMMC_PR_51";
	}
	if (iParam0 == -2138350253)
	{
		return "FMMC_PR_52";
	}
	if (iParam0 == joaat("prop_elecbox_16"))
	{
		return "FMMC_PR_53";
	}
	if (iParam0 == joaat("prop_elecbox_14"))
	{
		return "FMMC_PR_54";
	}
	if (iParam0 == joaat("prop_ind_deiseltank"))
	{
		return "FMMC_PR_55";
	}
	if (iParam0 == joaat("prop_ind_mech_02a"))
	{
		return "FMMC_PR_56";
	}
	if (iParam0 == joaat("prop_ind_mech_02b"))
	{
		return "FMMC_PR_57";
	}
	if (iParam0 == joaat("prop_sub_trans_01a"))
	{
		return "FMMC_PR_58";
	}
	if (iParam0 == joaat("prop_sub_trans_02a"))
	{
		return "FMMC_PR_59";
	}
	if (iParam0 == joaat("prop_sub_trans_04a"))
	{
		return "FMMC_PR_60";
	}
	if (iParam0 == joaat("prop_skip_04"))
	{
		return "FMMC_PR_62";
	}
	if (iParam0 == joaat("prop_mp_ramp_01") || iParam0 == -1359996601)
	{
		return "FMMC_PR_61";
	}
	if (iParam0 == joaat("prop_mp_ramp_02") || iParam0 == -1061569318)
	{
		return "FMMC_PR_63";
	}
	if (iParam0 == joaat("prop_mp_ramp_03") || iParam0 == 1290523964)
	{
		return "FMMC_PR_64";
	}
	if (iParam0 == joaat("prop_skip_08a"))
	{
		return "FMMC_PR_65";
	}
	if (iParam0 == joaat("prop_jetski_ramp_01"))
	{
		return "FMMC_PR_66";
	}
	if (iParam0 == 1560354582)
	{
		return "FMMC_PR_67";
	}
	if (iParam0 == -1097090961)
	{
		return "FMMC_PR_68";
	}
	if (iParam0 == 240277467)
	{
		return "FMMC_PR_69";
	}
	if (iParam0 == -733912134)
	{
		return "FMMC_PR_70";
	}
	if (iParam0 == -1333126068)
	{
		return "FMMC_PR_71";
	}
	if (iParam0 == -1454939221)
	{
		return "FMMC_PR_72";
	}
	if (iParam0 == -1547577184)
	{
		return "FMMC_PR_73";
	}
	if (iParam0 == 219009290)
	{
		return "FMMC_PR_74";
	}
	if (iParam0 == 532969079)
	{
		return "FMMC_PR_75";
	}
	if (iParam0 == -1651641860)
	{
		return "FMMC_PR_76";
	}
	if (iParam0 == 793482617)
	{
		return "FMMC_PR_77";
	}
	if (iParam0 == joaat("prop_food_van_01"))
	{
		return "FMMC_PR_78";
	}
	if (iParam0 == joaat("prop_food_van_02"))
	{
		return "FMMC_PR_79";
	}
	if (iParam0 == -531344027)
	{
		return "FMMC_PR_80";
	}
	if (iParam0 == joaat("prop_truktrailer_01a"))
	{
		return "FMMC_PR_81";
	}
	if (iParam0 == joaat("prop_rub_buswreck_01"))
	{
		return "FMMC_PR_82";
	}
	if (iParam0 == joaat("prop_rub_buswreck_06"))
	{
		return "FMMC_PR_83";
	}
	if (iParam0 == 1069797899)
	{
		return "FMMC_PR_84";
	}
	if (iParam0 == 1434516869)
	{
		return "FMMC_PR_85";
	}
	if (iParam0 == -896997473)
	{
		return "FMMC_PR_86";
	}
	if (iParam0 == 1120812170)
	{
		return "FMMC_PR_87";
	}
	if (iParam0 == joaat("prop_fnclink_03gate5"))
	{
		return "FMMC_PR_FNCMGTS";
	}
	if (iParam0 == 1278261455)
	{
		return "FMMC_PR_FNCMGTD";
	}
	if (iParam0 == joaat("prop_plas_barier_01a"))
	{
		return "FMMC_PR_BARPRED";
	}
	if (iParam0 == joaat("prop_barier_conc_02b"))
	{
		return "FMMC_PR_BARCANW";
	}
	if (iParam0 == 765541575)
	{
		return "FMMC_PR_BARWRKP";
	}
	if (iParam0 == -565797937)
	{
		return "FMMC_PR_BARWRKW";
	}
	if (iParam0 == -1393524934)
	{
		return "FMMC_PR_FNCBWSG";
	}
	if (iParam0 == -837500542)
	{
		return "FMMC_PR_FNCBWLN";
	}
	if (iParam0 == 2122752615)
	{
		return "FMMC_PR_FNCBWWD";
	}
	if (iParam0 == -1314912103)
	{
		return "FMMC_PR_FNCBWWL";
	}
	if (iParam0 == 2074061472)
	{
		return "FMMC_PR_FNCCDCF";
	}
	if (iParam0 == -1593445012)
	{
		return "FMMC_PR_FNCCPDF";
	}
	if (iParam0 == -1880599759)
	{
		return "FMMC_PR_FNCCSCF";
	}
	if (iParam0 == -1894591898)
	{
		return "FMMC_PR_FNCCRDF";
	}
	if (iParam0 == -1519583462)
	{
		return "FMMC_PR_FNCCPRF";
	}
	if (iParam0 == 1916672189)
	{
		return "FMMC_PR_FNCCBPF";
	}
	if (iParam0 == -940719073)
	{
		return "FMMC_PR_FNCCTCF";
	}
	if (iParam0 == 1185366416)
	{
		return "FMMC_PR_FNCCSRF";
	}
	if (iParam0 == -1147467348)
	{
		return "FMMC_PR_BARQADB";
	}
	if (iParam0 == joaat("prop_const_fence02a"))
	{
		return "FMMC_PR_BARDUBU";
	}
	if (iParam0 == 2108146567)
	{
		return "FMMC_PR_BARSINB";
	}
	if (iParam0 == joaat("prop_fncwood_16b"))
	{
		return "FMMC_PR_FNCPKOD";
	}
	if (iParam0 == joaat("prop_fncwood_16c"))
	{
		return "FMMC_PR_FNCPKOS";
	}
	if (iParam0 == 93794225)
	{
		return "FMMC_PR_FNCFMS";
	}
	if (iParam0 == 1322893877)
	{
		return "FMMC_PR_FNCFMSL";
	}
	if (iParam0 == -1178167275)
	{
		return "FMMC_PR_FNCFMD";
	}
	if (iParam0 == -872399736)
	{
		return "FMMC_PR_FNCFMT";
	}
	if (iParam0 == 373936410)
	{
		return "FMMC_PR_FNCFMSX";
	}
	if (iParam0 == 487569140)
	{
		return "FMMC_PR_BARGE";
	}
	if (iParam0 == 260517631)
	{
		return "FMMC_PR_CABTBTH";
	}
	if (iParam0 == 304890764)
	{
		return "FMMC_PR_CABPHUT";
	}
	if (iParam0 == -1186441238)
	{
		return "FMMC_PR_WODPLSM";
	}
	if (iParam0 == -740912282)
	{
		return "FMMC_PR_WODPLUT";
	}
	if (iParam0 == 1711856655)
	{
		return "FMMC_PR_CONCCND";
	}
	if (iParam0 == 1962326206)
	{
		return "FMMC_PR_CONCSAK";
	}
	if (iParam0 == joaat("prop_container_01mb"))
	{
		return "FMMC_PR_CNTLNGG";
	}
	if (iParam0 == joaat("prop_container_03mb"))
	{
		return "FMMC_PR_CNTSHTG";
	}
	if (iParam0 == -3872440)
	{
		return "FMMC_PR_PLTPILL";
	}
	if (iParam0 == -1853453107)
	{
		return "FMMC_PR_PLTPILS";
	}
	if (iParam0 == 300547451)
	{
		return "FMMC_PR_BOXPILW";
	}
	if (iParam0 == 666561306)
	{
		return "FMMC_PR_DMPCLDB";
	}
	if (iParam0 == -58485588)
	{
		return "FMMC_PR_DMPCLDM";
	}
	if (iParam0 == -1333576134)
	{
		return "FMMC_PR_ELECBXW";
	}
	if (iParam0 == 1820092997)
	{
		return "FMMC_PR_ELCBXGN";
	}
	if (iParam0 == -1001532663)
	{
		return "FMMC_PR_ELCBXGY";
	}
	if (iParam0 == -57215983)
	{
		return "FMMC_PR_GANDLMP";
	}
	if (iParam0 == -1576911260)
	{
		return "FMMC_PR_FEEDER";
	}
	if (iParam0 == joaat("prop_skip_03"))
	{
		return "FMMC_PR_RMPDMPM";
	}
	if (iParam0 == -613845235)
	{
		return "FMMC_PR_RMPHP";
	}
	if (iParam0 == 1367199760)
	{
		return "FMMC_PR_RMPQP";
	}
	if (iParam0 == -1685045150)
	{
		return "FMMC_PR_RMPFRS";
	}
	if (iParam0 == -1907102305)
	{
		return "FMMC_PR_RMPLFR";
	}
	if (iParam0 == 1982829832)
	{
		return "FMMC_PR_RMPFRK";
	}
	if (iParam0 == -1912195761)
	{
		return "FMMC_PR_RMPFBP";
	}
	if (iParam0 == -1977592297)
	{
		return "FMMC_PR_RMPPILE";
	}
	if (iParam0 == -125664540)
	{
		return "FMMC_PR_FRMOLDT";
	}
	if (iParam0 == -1748303324)
	{
		return "FMMC_PR_WRKCRRD";
	}
	if (iParam0 == -2021659595)
	{
		return "FMMC_PR_WRKCCH";
	}
	if (iParam0 == -73584559)
	{
		return "FMMC_PR_NTROLVT";
	}
	if (iParam0 == -1279773008)
	{
		return "FMMC_PR_NTROAKT";
	}
	if (iParam0 == joaat("prop_tree_fallen_02"))
	{
		return "FMMC_PR_NTRFLNT";
	}
	if (iParam0 == 1731900299)
	{
		return "FMMC_PR_HBSTK";
	}
	if (iParam0 == 1395331371)
	{
		return "FMMC_PR_HBRND";
	}
	if (iParam0 == joaat("prop_haybale_02"))
	{
		return "FMMC_PR_HBSSTK";
	}
	if (iParam0 == joaat("prop_haybale_01"))
	{
		return "FMMC_PR_HBSML";
	}
	if (iParam0 == joaat("prop_byard_float_02"))
	{
		return "FMMC_PR_FLOATD";
	}
	if (iParam0 == 2090810892)
	{
		return "FMMC_PR_TYR1";
	}
	if (iParam0 == -905357089)
	{
		return "FMMC_PR_TYR2";
	}
	if (iParam0 == -666143389)
	{
		return "FMMC_PR_TYR3";
	}
	if (iParam0 == 1465709448)
	{
		return "FMMC_PR_TYR4";
	}
	if (iParam0 == 631705629)
	{
		return "FMMC_PR_TYR5";
	}
	if (iParam0 == -1082910619)
	{
		return "FMMC_PR_TYR1B";
	}
	if (iParam0 == 159919520)
	{
		return "FMMC_PR_TYR2B";
	}
	if (iParam0 == 690613779)
	{
		return "FMMC_PR_TYR3B";
	}
	if (iParam0 == 776861087)
	{
		return "FMMC_PR_TYR1C";
	}
	if (iParam0 == -160036996)
	{
		return "FMMC_PR_TYR2C";
	}
	if (iParam0 == -140899596)
	{
		return "FMMC_PR_TYR3C";
	}
	if (iParam0 == joaat("prop_offroad_tyres01"))
	{
		return "FMMC_PR_ORT1";
	}
	if (iParam0 == 812376260)
	{
		return "FMMC_PR_ORT2";
	}
	if (iParam0 == joaat("prop_pipes_conc_01"))
	{
		return "FMMC_PR_CNPPE";
	}
	if (iParam0 == 690751374)
	{
		return "FMMC_PR_SGTE";
	}
	if (iParam0 == -293536422)
	{
		return "FMMC_PR_SMTR";
	}
	if (iParam0 == 1012842044)
	{
		return "FMMC_PR_MUTR";
	}
	if (iParam0 == -1663557985)
	{
		return "FMMC_PR_SBLE";
	}
	if (iParam0 == 984170102)
	{
		return "FMMC_PR_BLEA";
	}
	if (iParam0 == 1275920395)
	{
		return "FMMC_PR_BEAF";
	}
	if (iParam0 == 54873101)
	{
		return "DMPP_LRGEGEN";
	}
	if (iParam0 == joaat("prop_air_blastfence_01"))
	{
		return "FMMC_PR_FNCBLST";
	}
	if (iParam0 == joaat("prop_mb_sandblock_01"))
	{
		return "FMMC_PR_SNDBKSI";
	}
	if (iParam0 == joaat("prop_mb_sandblock_02"))
	{
		return "FMMC_PR_SNDBKTR";
	}
	if (iParam0 == 1708971027)
	{
		return "FMMC_PR_SNDBKED";
	}
	if (iParam0 == joaat("prop_mb_sandblock_04"))
	{
		return "FMMC_PR_SNDBKCR";
	}
	if (iParam0 == 523344868)
	{
		return "FMMC_PR_SNDBKST";
	}
	if (iParam0 == joaat("prop_mb_hesco_06"))
	{
		return "FMMC_PR_SNDBKFT";
	}
	if (iParam0 == -679229497)
	{
		return "FMMC_PR_BARWDQU";
	}
	if (iParam0 == 169792355)
	{
		return "FMMC_PR_CABAPHT";
	}
	if (iParam0 == -105439435)
	{
		return "FMMC_PR_CABSCHT";
	}
	if (iParam0 == joaat("prop_mb_cargo_03a"))
	{
		return "FMMC_PR_CRG01";
	}
	if (iParam0 == joaat("prop_mb_cargo_04a"))
	{
		return "FMMC_PR_CRG02";
	}
	if (iParam0 == joaat("prop_air_cargo_04a"))
	{
		return "FMMC_PR_CRG03";
	}
	if (iParam0 == joaat("prop_mb_crate_01b"))
	{
		return "FMMC_PR_CRG04";
	}
	if (iParam0 == joaat("prop_air_cargo_01a"))
	{
		return "FMMC_PR_CRGAIR";
	}
	if (iParam0 == joaat("prop_mb_cargo_04b"))
	{
		return "FMMC_PR_CRG05";
	}
	if (iParam0 == joaat("prop_mb_cargo_02a"))
	{
		return "FMMC_PR_CRG06";
	}
	if (iParam0 == 2129093333)
	{
		return "FMMC_PR_SINAPTX";
	}
	if (iParam0 == joaat("prop_air_stair_01"))
	{
		return "FMMC_PR_STRFLY";
	}
	if (iParam0 == -2103481739)
	{
		return "FMMC_PR_STRRSD";
	}
	if (iParam0 == -68540493)
	{
		return "FMMC_PR_STRLWR";
	}
	if (iParam0 == joaat("prop_air_bagloader"))
	{
		return "FMMC_PR_BAGLDL";
	}
	if (iParam0 == 1683244033)
	{
		return "FMMC_PR_BAGLDH";
	}
	if (iParam0 == 1566353027)
	{
		return "FMMC_PR_PLNTGP";
	}
	if (iParam0 == 11906616)
	{
		return "FMMC_PR_BUSHLD";
	}
	if (iParam0 == -1656246279)
	{
		return "FMMC_PR_BUSHS";
	}
	if (iParam0 == 1052756483)
	{
		return "FMMC_PR_JOTREE";
	}
	if (iParam0 == -492137526)
	{
		return "FMMC_PR_CACTUS";
	}
	if (iParam0 == -503017940)
	{
		return "FMMC_PR_PLNTAP";
	}
	if (iParam0 == 702880916)
	{
		return "FMMC_PR_PLNTPP";
	}
	if (iParam0 == -1203783005)
	{
		return "FMMC_PR_PLNTFW";
	}
	if (iParam0 == 1435537088)
	{
		return "FMMC_PR_PLNTCF";
	}
	if (iParam0 == 933214217)
	{
		return "FMMC_PR_PLNTTC";
	}
	if (iParam0 == 2042668880)
	{
		return "FMMC_PR_RCKBGR";
	}
	if (iParam0 == 390804950)
	{
		return "FMMC_PR_RCKMDF";
	}
	if (iParam0 == 725387438)
	{
		return "FMMC_PR_RCKBGF";
	}
	if (iParam0 == joaat("prop_offroad_barrel01"))
	{
		return "FMMC_DPR_BARREL";
	}
	if (iParam0 == -996988174)
	{
		return "FMMC_DPR_BRLLNE";
	}
	if (iParam0 == -1344435013)
	{
		return "FMMC_DPR_EXPBRL";
	}
	if (iParam0 == -1980225301)
	{
		return "FMMC_DPR_FIREXT";
	}
	if (iParam0 == joaat("prop_roadcone02c"))
	{
		return "FMMC_DPR_CONE";
	}
	if (iParam0 == joaat("prop_roadcone02a"))
	{
		return "FMMC_DPR_TRFCNE";
	}
	if (iParam0 == joaat("prop_roadcone01a"))
	{
		return "FMMC_DPR_LTRFCN";
	}
	if (iParam0 == 10928689)
	{
		return "FMMC_DPR_TRFPLE";
	}
	if (iParam0 == 1363150739)
	{
		return "FMMC_DPR_MALBOX";
	}
	if (iParam0 == 917457845)
	{
		return "FMMC_DPR_NPVND";
	}
	if (iParam0 == 1099892058)
	{
		return "FMMC_DPR_WVND";
	}
	if (iParam0 == -1034034125)
	{
		return "FMMC_DPR_MCHSNK";
	}
	if (iParam0 == -455396574)
	{
		return "FMMC_DPR_MCHTCK";
	}
	if (iParam0 == 1524671283)
	{
		return "FMMC_PR_40";
	}
	if (iParam0 == 2139919312)
	{
		return "FMMC_DPR_DESBAR";
	}
	if (iParam0 == -1669382392)
	{
		return "FMMC_DPR_SECFEN";
	}
	if (iParam0 == joaat("prop_table_08_side"))
	{
		return "FMMC_DPR_UPTTBL";
	}
	if (iParam0 == -699955605)
	{
		return "FMMC_DPR_AMOCRT";
	}
	if (iParam0 == 1246158990)
	{
		return "FMMC_DPR_ORDNAN";
	}
	if (iParam0 == 1890640474)
	{
		return "FMMC_DPR_TKRDEX";
	}
	if (iParam0 == -37176073)
	{
		return "FMMC_DPR_LGPLEL";
	}
	if (iParam0 == -1381557071)
	{
		return "FMMC_DPR_LGPLES";
	}
	if (iParam0 == 1530421247)
	{
		return "FMMC_DPR_PIPPLE";
	}
	if (iParam0 == 1652026494)
	{
		return "FMMC_DPR_BRLPLE";
	}
	if (iParam0 == -1088738506)
	{
		return "FMMC_DPR_BRGOEX";
	}
	if (iParam0 == -1935686084)
	{
		return "FMMC_DPR_BRFLEX";
	}
	if (iParam0 == -46303329)
	{
		return "FMMC_DPR_TKLRGW";
	}
	if (iParam0 == -9837968)
	{
		return "FMMC_DPR_TKLRGG";
	}
	if (iParam0 == -353447166)
	{
		return "FMMC_DPR_TKLRGY";
	}
	if (iParam0 == 786272259)
	{
		return "FMMC_DPR_JRYCAN";
	}
	if (iParam0 == 1270590574)
	{
		return "FMMC_DPR_SGC";
	}
	if (iParam0 == -1029296059)
	{
		return "FMMC_DPR_LGC";
	}
	if (iParam0 == -1918614878)
	{
		return "FMMC_DPR_TBGAS";
	}
	if (iParam0 == 1257553220)
	{
		return "FMMC_DPR_TRGAS";
	}
	if (iParam0 == 2138646444)
	{
		return "FMMC_DPR_OLGAS";
	}
	if (iParam0 == -672016228)
	{
		return "FMMC_DPR_OSGAS";
	}
	if (iParam0 == 858993389)
	{
		return "FMMC_DPR_FSTND";
	}
	if (iParam0 == joaat("prop_rub_tyre_03"))
	{
		return "FMMC_DPR_RBRTYR";
	}
	if (iParam0 == joaat("prop_barrel_02b"))
	{
		return "FMMC_DPR_BAR2";
	}
	if (iParam0 == joaat("prop_barrel_01a"))
	{
		return "FMMC_DPR_BAR3";
	}
	if (iParam0 == joaat("prop_ld_alarm_01"))
	{
		return "FMMC_PR_ALARM";
	}
	if (iParam0 == joaat("prop_flare_01"))
	{
		return "FMMC_PR_FLARE";
	}
	if (iParam0 == -143315610)
	{
		return "FMMC_PR_PBARR";
	}
	if (iParam0 == 1572208841)
	{
		return "FMMC_PR_AMFLG";
	}
	if (iParam0 == 301970060)
	{
		return "FMMC_PR_BPLUG";
	}
	if (iParam0 == 1088428993)
	{
		return "FMMC_PR_AMLG1";
	}
	if (iParam0 == -2002895309)
	{
		return "FMMC_PR_AMLG2";
	}
	if (iParam0 == 769923921)
	{
		return "FMMC_PR_CASHT";
	}
	if (iParam0 == -1941093436)
	{
		return "FMMC_PR_CARL2";
	}
	if (iParam0 == 1644490552)
	{
		return "FMMC_PR_CARL5";
	}
	if (iParam0 == 1228163930)
	{
		return "FMMC_PR_WALLL";
	}
	if (iParam0 == -82704061)
	{
		return "FMMC_PR_MNKCR";
	}
	if (iParam0 == -893826075)
	{
		return "FMMC_PR_METCV";
	}
	if (iParam0 == -1906772306)
	{
		return "FMMC_PR_BNKAL";
	}
	if (iParam0 == 1325339411)
	{
		return "FMMC_PR_RDMEM";
	}
	if (iParam0 == joaat("prop_inflategate_01"))
	{
		return "DMPP_INFLAT";
	}
	return "";
}

void func_16(int iParam0)//Position - 0x25A5
{
	int iVar0;
	
	if (iLocal_4045 > 0 && iParam0)
	{
		iLocal_5552 = true;
	}
	iLocal_4045 = 0;
	iLocal_4046 = 0;
	iLocal_4050 = 0;
	iVar0 = 0;
	while (iVar0 <= 49)
	{
		if (entity::does_entity_exist(Local_3544[iVar0 /*10*/].f_8))
		{
			network::_0x715135F4B82AC90D(Local_3544[iVar0 /*10*/].f_8);
			object::delete_object(&(Local_3544[iVar0 /*10*/].f_8));
			func_12(Local_3544[iVar0 /*10*/].f_7);
		}
		Local_3544[iVar0 /*10*/] = { 0f, 0f, 0f };
		Local_3544[iVar0 /*10*/].f_3 = { 0f, 0f, 0f };
		Local_3544[iVar0 /*10*/].f_6 = 0f;
		Local_3544[iVar0 /*10*/].f_7 = 0;
		iVar0++;
	}
}

void func_17()//Position - 0x2644
{
	iLocal_5636 = 210;
	iLocal_5637 = 209;
	iLocal_5638 = 201;
	iLocal_5639 = 203;
	iLocal_5640 = 207;
	iLocal_5641 = 208;
	iLocal_5642 = 206;
	iLocal_5643 = 205;
	if (controls::_is_input_disabled(2))
	{
		iLocal_5636 = 37;
		iLocal_5637 = 209;
		iLocal_5639 = 51;
	}
}

void func_18()//Position - 0x268B
{
	if (iLocal_7569)
	{
		if (iLocal_5754 == 3)
		{
			func_19();
			iLocal_7569 = 0;
			ui::hide_hud_and_radar_this_frame();
		}
		else if (!cam::is_screen_faded_out())
		{
			if (!cam::is_screen_fading_out())
			{
				cam::do_screen_fade_out(250);
				ui::hide_hud_and_radar_this_frame();
			}
		}
		else
		{
			func_19();
			if (!cam::is_screen_fading_in() && !iLocal_7570)
			{
				cam::do_screen_fade_in(800);
			}
			iLocal_7569 = 0;
		}
	}
	if (iLocal_7570)
	{
		if (iLocal_9774 == 0)
		{
			iLocal_9774 = gameplay::get_game_timer();
		}
		if (vehicle::_0x91D6DD290888CBAB() || gameplay::get_game_timer() > iLocal_9774 + 2000)
		{
			iLocal_7570 = 0;
			iLocal_9774 = 0;
			if (!cam::is_screen_fading_in())
			{
				cam::do_screen_fade_in(800);
			}
		}
	}
}

void func_19()//Position - 0x272F
{
	int iVar0;
	int iVar1;
	
	iLocal_7712 = iLocal_7712;
	iLocal_7713 = iLocal_7713;
	ui::display_hud(true);
	if (!iLocal_7718 || (iLocal_5754 == 0 && Local_5662.f_90 == 1))
	{
		ui::display_radar(true);
	}
	if (iLocal_7520[13] == 0)
	{
		gameplay::clear_area(entity::get_entity_coords(player::player_ped_id(), 1), 1000f, 1, 0, 0, false);
		iLocal_7520[13] = 1;
	}
	func_66(iLocal_7520[3], iLocal_7520[4]);
	func_65(iLocal_7520[2]);
	iLocal_7721 = -1;
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		ped::set_can_attack_friendly(player::player_ped_id(), 1, 1);
	}
	ped::set_ped_relationship_group_hash(player::player_ped_id(), 1862763509);
	func_44();
	func_38(0);
	if (!iLocal_7567 && iLocal_5754 != 3)
	{
		func_1125(iLocal_7520[0]);
	}
	if (iLocal_5754 != 3)
	{
		func_37(iLocal_7520[1]);
	}
	if (iLocal_7520[5] == 0)
	{
		func_35();
		func_32(0);
	}
	else
	{
		func_30();
		func_32(1);
	}
	func_23();
	ped::set_ped_can_ragdoll(player::player_ped_id(), 1);
	iVar1 = 7;
	while (iVar1 <= 12)
	{
		iVar0 = func_22(iVar1);
		if ((func_21(iVar0) && iLocal_7520[iVar1] == 1) || (!func_21(iVar0) && iLocal_7520[iVar1] == 0))
		{
			func_20(iVar0, 0);
		}
		iVar1++;
	}
	iVar1 = 0;
	while (iVar1 <= 13)
	{
		iLocal_7550[iVar1] = 0;
		iVar1++;
	}
}

void func_20(int iParam0, int iParam1)//Position - 0x28A5
{
	gameplay::set_bit(&Global_25399, iParam0);
	Global_25400 = iParam1;
}

bool func_21(int iParam0)//Position - 0x28BB
{
	if (gameplay::is_bit_set(Global_25397, iParam0))
	{
		return true;
	}
	return false;
}

int func_22(int iParam0)//Position - 0x28D4
{
	switch (iParam0)
	{
		case 7:
			return 12;
			break;
		
		case 12:
			return 14;
			break;
		
		case 11:
			return 1;
			break;
		
		case 10:
			return 0;
			break;
		
		case 8:
			return 11;
			break;
		
		case 9:
			return 13;
			break;
	}
	return 24;
}

void func_23()//Position - 0x2937
{
	if (func_27(6))
	{
		if (iLocal_7520[6] == 0)
		{
			entity::set_entity_proofs(player::player_ped_id(), false, false, false, false, false, false, 0, false);
			unk_0x6BC97F4F4BB3C04B(player::player_id(), 1);
			func_26(player::player_ped_id());
		}
		else
		{
			unk_0x6BC97F4F4BB3C04B(player::player_id(), 0);
			player::set_player_invincible(player::player_id(), 0);
			entity::set_entity_proofs(player::player_ped_id(), false, false, false, false, false, false, 0, false);
			if (!func_25())
			{
				func_24(player::player_ped_id());
			}
			else if (entity::does_entity_exist(player::player_ped_id()))
			{
				if (!entity::is_entity_dead(player::player_ped_id(), 0) && !ped::is_ped_injured(player::player_ped_id()))
				{
					ped::set_ped_dies_in_sinking_vehicle(player::player_ped_id(), 1);
				}
			}
		}
	}
	else
	{
		iLocal_7520[6] = 1;
		unk_0x6BC97F4F4BB3C04B(player::player_id(), 0);
		player::set_player_invincible(player::player_id(), 0);
		entity::set_entity_proofs(player::player_ped_id(), false, false, false, false, false, false, 0, false);
	}
}

void func_24(int iParam0)//Position - 0x2A05
{
	if (entity::does_entity_exist(iParam0))
	{
		if (!entity::is_entity_dead(iParam0, 0) && !ped::is_ped_injured(iParam0))
		{
			ped::set_ped_dies_in_water(iParam0, 1);
			ped::set_ped_max_time_underwater(iParam0, -1f);
			ped::set_ped_dies_in_sinking_vehicle(iParam0, 1);
		}
	}
}

bool func_25()//Position - 0x2A42
{
	switch (entity::get_entity_model(player::player_ped_id()))
	{
		case joaat("hc_gunman"):
			if (ped::get_ped_prop_index(player::player_ped_id(), 1) == 0)
			{
				return true;
			}
			break;
		
		case joaat("ig_davenorton"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 8) == 1)
			{
				return true;
			}
			break;
		
		case joaat("ig_stevehains"):
			if (ped::get_ped_prop_index(player::player_ped_id(), 1) == 1)
			{
				return true;
			}
			break;
		
		case joaat("player_zero"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 8) == 1)
			{
				return true;
			}
			break;
		
		case joaat("player_one"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 8) == 8)
			{
				return true;
			}
			break;
		
		case joaat("player_two"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 8) == 1)
			{
				return true;
			}
			break;
	}
	return false;
}

void func_26(int iParam0)//Position - 0x2AF9
{
	if (entity::does_entity_exist(iParam0))
	{
		if (!entity::is_entity_dead(iParam0, 0) && !ped::is_ped_injured(iParam0))
		{
			ped::set_ped_dies_in_water(iParam0, 0);
			ped::set_ped_max_time_underwater(iParam0, 10000f);
			ped::set_ped_dies_in_sinking_vehicle(iParam0, 0);
		}
	}
}

int func_27(int iParam0)//Position - 0x2B3A
{
	int iVar0;
	
	switch (iParam0)
	{
		case 7:
			return !func_29(12);
			break;
		
		case 12:
			if (entity::is_entity_in_water(player::player_ped_id()))
			{
				return false;
			}
			return !func_29(14);
		
		case 11:
			return !func_29(1);
			break;
		
		case 10:
			if (interior::is_interior_scene() && iLocal_6555 == 5)
			{
				return false;
			}
			return !func_29(0);
			break;
		
		case 8:
			return !func_29(11);
			break;
		
		case 9:
			return !func_29(13);
			break;
		
		case 6:
			iVar0 = entity::get_entity_model(player::player_ped_id());
			if (func_28(iVar0))
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
	}
	return true;
}

bool func_28(int iParam0)//Position - 0x2C02
{
	switch (iParam0)
	{
		case joaat("a_c_chickenhawk"):
		case joaat("a_c_cormorant"):
		case joaat("a_c_crow"):
		case joaat("a_c_hen"):
		case joaat("a_c_pigeon"):
		case joaat("a_c_seagull"):
			return true;
			break;
	}
	return false;
}

bool func_29(int iParam0)//Position - 0x2C3D
{
	if (gameplay::is_bit_set(Global_25396, iParam0))
	{
		return true;
	}
	return false;
}

void func_30()//Position - 0x2C56
{
	func_31(0);
	func_31(1);
	func_31(2);
	func_31(3);
	func_31(4);
	func_31(5);
	func_31(6);
	func_31(7);
}

void func_31(int iParam0)//Position - 0x2C86
{
	gameplay::set_bit(&Global_1573483, iParam0);
}

void func_32(int iParam0)//Position - 0x2C98
{
	int iVar0;
	
	iVar0 = 1;
	while (iVar0 <= 8)
	{
		if (iParam0)
		{
			func_34(iVar0, 0);
			Global_25159 = 1;
			Global_25160 = 1;
		}
		else
		{
			func_33(iVar0, 0);
			Global_25159 = 0;
			Global_25160 = 0;
		}
		iVar0++;
	}
}

void func_33(int iParam0, int iParam1)//Position - 0x2CD9
{
	if (gameplay::is_bit_set(Global_25309, iParam0))
	{
		if (!iParam1)
		{
			gameplay::clear_bit(&Global_25309, iParam0);
			StringCopy(&(Global_25310[iParam0 /*6*/]), "NULL", 24);
			Global_25365[iParam0] = iParam1;
		}
	}
}

void func_34(int iParam0, int iParam1)//Position - 0x2D10
{
	gameplay::set_bit(&Global_25309, iParam0);
	StringCopy(&(Global_25310[iParam0 /*6*/]), script::get_this_script_name(), 24);
	Global_25365[iParam0] = iParam1;
}

void func_35()//Position - 0x2D37
{
	func_36(0);
	func_36(1);
	func_36(2);
	func_36(3);
	func_36(4);
	func_36(5);
	func_36(6);
	func_36(7);
}

void func_36(int iParam0)//Position - 0x2D67
{
	gameplay::clear_bit(&Global_1573483, iParam0);
}

void func_37(int iParam0)//Position - 0x2D79
{
	switch (iParam0)
	{
		case 0:
			gameplay::set_weather_type_now_persist("CLEAR");
			break;
		
		case 1:
			gameplay::set_weather_type_now_persist("CLOUDS");
			break;
		
		case 2:
			gameplay::set_weather_type_now_persist("OVERCAST");
			break;
		
		case 3:
			gameplay::set_weather_type_now_persist("EXTRASUNNY");
			break;
		
		case 4:
			gameplay::set_weather_type_now_persist("XMAS");
			break;
		
		case 5:
			gameplay::set_weather_type_now_persist("SMOG");
			break;
		
		case 6:
			gameplay::set_weather_type_now_persist("FOGGY");
			break;
		
		case 7:
			gameplay::set_weather_type_now_persist("RAIN");
			break;
		
		case 8:
			gameplay::set_weather_type_now_persist("THUNDER");
			break;
	}
}

void func_38(int iParam0)//Position - 0x2E21
{
	if (iParam0)
	{
		func_43();
		if (Global_14413.f_1 == 10 || Global_14413.f_1 == 9)
		{
			gameplay::set_bit(&Global_2284, 16);
		}
		Global_14413.f_1 = 1;
		if (func_42(0))
		{
			func_39(0);
		}
	}
	else if (Global_14413.f_1 == 1)
	{
		if (!Global_14413.f_1 == 0)
		{
			Global_14413.f_1 = 3;
		}
	}
}

void func_39(int iParam0)//Position - 0x2E84
{
	if (Global_14571)
	{
		func_41(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_40())
	{
		Global_14413.f_1 = 3;
	}
}

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

void func_41(int iParam0, int iParam1)//Position - 0x2F1B
{
	if (iParam0)
	{
		if (func_42(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_42(int iParam0)//Position - 0x2F8F
{
	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_43()//Position - 0x2FE9
{
	if (Global_14413.f_1 == 9 || Global_14413.f_1 == 10)
	{
		Global_15765 = 0;
		Global_15761 = 1;
	}
}

void func_44()//Position - 0x3012
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = entity::get_entity_model(player::player_ped_id());
	if (iLocal_5659 != 144)
	{
		if (func_64(iLocal_5659))
		{
			if (!ped::is_ped_injured(player::player_ped_id()))
			{
				if (func_62(0))
				{
					weapon::remove_all_ped_weapons(player::player_ped_id(), 1);
					iVar1 = 0;
					while (iVar1 < 200)
					{
						iVar2 = func_61(iVar1);
						if (iVar2 != 0)
						{
							if (weapon::is_weapon_valid(iVar2) && func_60(iVar2))
							{
								if (func_56(iVar2))
								{
									if ((func_49(iLocal_5659, iVar2) && func_47(iVar2) != 0) && !(iVar0 == joaat("ig_orleans") && iVar2 == joaat("weapon_knuckle")))
									{
										weapon::give_weapon_to_ped(player::player_ped_id(), iVar2, -1, false, false);
										if (weapon::has_ped_got_weapon(player::player_ped_id(), iVar2, 0))
										{
											weapon::set_ped_infinite_ammo(player::player_ped_id(), 1, iVar2);
											weapon::set_ammo_in_clip(player::player_ped_id(), iVar2, weapon::get_max_ammo_in_clip(player::player_ped_id(), iVar2, 1));
										}
										func_45(iVar0);
									}
								}
							}
						}
						iVar1++;
					}
					iLocal_7756 = iVar0;
				}
			}
		}
	}
}

void func_45(int iParam0)//Position - 0x310F
{
	if ((iParam0 == joaat("player_zero") || iParam0 == joaat("player_one")) || iParam0 == joaat("player_two"))
	{
		weapon::give_weapon_to_ped(player::player_ped_id(), joaat("gadget_parachute"), 1, false, false);
		player::set_player_has_reserve_parachute(player::player_id());
		player::set_auto_give_parachute_when_enter_plane(player::player_id(), 1);
	}
	else
	{
		if (func_46(entity::get_entity_model(player::player_ped_id())))
		{
			weapon::give_weapon_to_ped(player::player_ped_id(), joaat("gadget_parachute"), 0, false, false);
		}
		player::set_auto_give_parachute_when_enter_plane(player::player_id(), 0);
	}
}

bool func_46(int iParam0)//Position - 0x318A
{
	switch (iParam0)
	{
		case joaat("a_c_boar"):
		case 1462895032:
		case joaat("a_c_cow"):
		case joaat("a_c_coyote"):
		case joaat("a_c_deer"):
		case joaat("a_c_husky"):
		case joaat("a_c_mtlion"):
		case joaat("a_c_pig"):
		case 1125994524:
		case 1832265812:
		case -541762431:
		case joaat("a_c_retriever"):
		case joaat("a_c_rottweiler"):
		case joaat("a_c_shepherd"):
		case -1384627013:
		case joaat("a_c_chickenhawk"):
		case joaat("a_c_cormorant"):
		case joaat("a_c_crow"):
		case joaat("a_c_hen"):
		case joaat("a_c_pigeon"):
		case joaat("a_c_seagull"):
		case joaat("ig_orleans"):
			return true;
			break;
	}
	return false;
}

int func_47(int iParam0)//Position - 0x3225
{
	if (iParam0 == 0)
	{
		return 0;
	}
	if (iParam0 == joaat("object"))
	{
		return 1;
	}
	if (iParam0 == -61829581)
	{
		return 1;
	}
	if (network::network_is_game_in_progress())
	{
		if ((((((((iParam0 == -572349828 || iParam0 == 392730790) || iParam0 == joaat("weapon_bullpupshotgun")) || iParam0 == -947031628) || iParam0 == -344484024) || iParam0 == joaat("weapon_pistol50")) || iParam0 == -1887867191) || iParam0 == -837150131) || iParam0 == joaat("weapon_hammer"))
		{
			return 1;
		}
		if (iParam0 == joaat("weapon_hatchet"))
		{
			if (func_48())
			{
				return 1;
			}
			else
			{
				return 0;
			}
		}
	}
	else
	{
		switch (iParam0)
		{
			case joaat("weapon_hatchet"):
				if (func_48())
				{
					if (Global_101186.f_7851.f_330[62 /*6*/])
					{
						return 1;
					}
					else
					{
						return 0;
					}
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_railgun"):
				if (func_48())
				{
					if (Global_101186.f_7851.f_330[14 /*6*/])
					{
						return 1;
					}
					else
					{
						return 0;
					}
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_bottle"):
			case joaat("weapon_hammer"):
				if (Global_101186.f_7851.f_330[1 /*6*/])
				{
					return 1;
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_snspistol"):
				if ((Global_101186.f_7851.f_330[1 /*6*/] || Global_101186.f_7851.f_330[43 /*6*/]) || Global_101186.f_7851.f_330[19 /*6*/])
				{
					return 1;
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_specialcarbine"):
				if (Global_101186.f_7851.f_330[90 /*6*/])
				{
					return 1;
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_dagger"):
			case joaat("weapon_vintagepistol"):
				if (Global_101186.f_7851.f_330[62 /*6*/])
				{
					return 1;
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_heavypistol"):
				if (Global_101186.f_7851.f_330[29 /*6*/])
				{
					return 1;
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_bullpupshotgun"):
				if (Global_101186.f_7851.f_330[74 /*6*/] || Global_101186.f_7851.f_330[38 /*6*/])
				{
					return 1;
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_musket"):
			case joaat("weapon_marksmanpistol"):
				if (Global_101186.f_7851.f_330[59 /*6*/])
				{
					return 1;
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_gusenberg"):
				if (Global_101186.f_7851.f_330[28 /*6*/])
				{
					return 1;
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_pistol50"):
				if (Global_101186.f_7851.f_330[39 /*6*/])
				{
					return 1;
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_bullpuprifle"):
				if (Global_101186.f_7851.f_330[84 /*6*/] || Global_101186.f_7851.f_330[85 /*6*/])
				{
					return 1;
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_marksmanrifle"):
				if (Global_101186.f_7851.f_330[93 /*6*/])
				{
					return 1;
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_heavyshotgun"):
				if (Global_101186.f_7851.f_330[39 /*6*/])
				{
					return 1;
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_firework"):
				if (Global_101186.f_7851.f_330[28 /*6*/])
				{
					return 1;
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_proxmine"):
				if (Global_101186.f_7851.f_330[64 /*6*/])
				{
					return 1;
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_hominglauncher"):
				if (Global_101186.f_7851.f_330[14 /*6*/])
				{
					return 1;
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_knuckle"):
				if (Global_101186.f_7851.f_330[2 /*6*/])
				{
					return 1;
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_combatpdw"):
				if (Global_101186.f_7851.f_330[92 /*6*/])
				{
					return 1;
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_machete"):
				if (Global_101186.f_7851.f_330[63 /*6*/])
				{
					return 1;
				}
				else
				{
					return 0;
				}
				break;
			
			case joaat("weapon_machinepistol"):
				if (Global_101186.f_7851.f_330[41 /*6*/])
				{
					return 1;
				}
				else
				{
					return 0;
				}
				break;
		}
		if (((((((((iParam0 == -572349828 || iParam0 == joaat("weapon_assaultsmg")) || iParam0 == 392730790) || iParam0 == joaat("weapon_bullpupshotgun")) || iParam0 == -947031628) || iParam0 == -344484024) || iParam0 == joaat("weapon_pistol50")) || iParam0 == -1887867191) || iParam0 == -837150131) || iParam0 == joaat("weapon_hammer"))
		{
			return 1;
		}
	}
	return -1;
}

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

int func_49(int iParam0, int iParam1)//Position - 0x37CC
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (func_64(iParam0))
	{
		if (func_55(iParam1))
		{
			return true;
		}
		iVar0 = func_53(iParam0, iParam1);
		iVar1 = func_51(iParam1);
		iVar2 = func_50(iVar1);
		return gameplay::is_bit_set(iVar0, iVar2);
	}
	return false;
}

int func_50(int iParam0)//Position - 0x3810
{
	return (iParam0 % 32);
}

int func_51(int iParam0)//Position - 0x381D
{
	return func_52(iParam0);
}

int func_52(int iParam0)//Position - 0x382B
{
	switch (iParam0)
	{
		case joaat("weapon_unarmed"):
			return 0;
			break;
		
		case joaat("weapon_pistol"):
			return 1;
			break;
		
		case joaat("weapon_combatpistol"):
			return 2;
			break;
		
		case joaat("weapon_appistol"):
			return 3;
			break;
		
		case joaat("weapon_pistol50"):
			return 4;
			break;
		
		case joaat("weapon_smg"):
			return 5;
			break;
		
		case joaat("weapon_assaultsmg"):
			return 6;
			break;
		
		case joaat("weapon_microsmg"):
			return 7;
			break;
		
		case joaat("weapon_assaultrifle"):
			return 8;
			break;
		
		case joaat("weapon_carbinerifle"):
			return 9;
			break;
		
		case -947031628:
			return 10;
			break;
		
		case joaat("weapon_advancedrifle"):
			return 11;
			break;
		
		case joaat("weapon_mg"):
			return 12;
			break;
		
		case joaat("weapon_combatmg"):
			return 13;
			break;
		
		case -572349828:
			return 14;
			break;
		
		case joaat("weapon_stickybomb"):
			return 15;
			break;
		
		case joaat("weapon_grenade"):
			return 16;
			break;
		
		case joaat("weapon_smokegrenade"):
			return 17;
			break;
		
		case joaat("weapon_remotesniper"):
			return 18;
			break;
		
		case 392730790:
			return 19;
			break;
		
		case joaat("weapon_sniperrifle"):
			return 20;
			break;
		
		case joaat("weapon_heavysniper"):
			return 21;
			break;
		
		case joaat("weapon_pumpshotgun"):
			return 22;
			break;
		
		case joaat("weapon_bullpupshotgun"):
			return 23;
			break;
		
		case joaat("weapon_assaultshotgun"):
			return 24;
			break;
		
		case joaat("weapon_sawnoffshotgun"):
			return 25;
			break;
		
		case joaat("weapon_grenadelauncher"):
			return 26;
			break;
		
		case joaat("weapon_rpg"):
			return 27;
			break;
		
		case joaat("weapon_minigun"):
			return 28;
			break;
		
		case -344484024:
			return 29;
			break;
		
		case -1887867191:
			return 30;
			break;
		
		case joaat("weapon_stungun"):
			return 31;
			break;
		
		case -837150131:
			return 32;
			break;
		
		case joaat("gadget_parachute"):
			return 33;
			break;
		
		case joaat("weapon_knife"):
			return 34;
			break;
		
		case joaat("weapon_nightstick"):
			return 35;
			break;
		
		case joaat("weapon_hammer"):
			return 36;
			break;
		
		case joaat("weapon_bat"):
			return 37;
			break;
		
		case joaat("weapon_crowbar"):
			return 38;
			break;
		
		case joaat("weapon_golfclub"):
			return 39;
			break;
		
		case joaat("weapon_grenadelauncher_smoke"):
			return 40;
			break;
		
		case joaat("weapon_molotov"):
			return 41;
			break;
		
		case joaat("weapon_fireextinguisher"):
			return 42;
			break;
		
		case joaat("weapon_petrolcan"):
			return 43;
			break;
		
		case joaat("weapon_digiscanner"):
			return 44;
			break;
		
		case joaat("weapon_bottle"):
			return 45;
			break;
		
		case joaat("weapon_specialcarbine"):
			return 46;
			break;
		
		case joaat("weapon_snspistol"):
			return 47;
			break;
		
		case joaat("weapon_heavypistol"):
			return 49;
			break;
		
		case joaat("weapon_bullpuprifle"):
			return 48;
			break;
		
		case joaat("weapon_gusenberg"):
			return 50;
			break;
		
		case joaat("weapon_dagger"):
			return 51;
			break;
		
		case joaat("weapon_vintagepistol"):
			return 52;
			break;
		
		case joaat("weapon_flaregun"):
			return 57;
			break;
		
		case joaat("weapon_musket"):
			return 53;
			break;
		
		case joaat("weapon_firework"):
			return 54;
			break;
		
		case joaat("weapon_marksmanrifle"):
			return 56;
			break;
		
		case joaat("weapon_heavyshotgun"):
			return 55;
			break;
		
		case joaat("weapon_proxmine"):
			return 60;
			break;
		
		case joaat("weapon_hominglauncher"):
			return 61;
			break;
		
		case joaat("weapon_hatchet"):
			return 58;
			break;
		
		case joaat("weapon_railgun"):
			return 59;
			break;
		
		case joaat("weapon_combatpdw"):
			return 64;
			break;
		
		case joaat("weapon_knuckle"):
			return 62;
			break;
		
		case joaat("weapon_marksmanpistol"):
			return 63;
			break;
		
		case joaat("weapon_machete"):
			return 65;
			break;
		
		case joaat("weapon_machinepistol"):
			return 68;
			break;
		
		case joaat("weapon_dbshotgun"):
			return 66;
			break;
		
		case joaat("weapon_compactrifle"):
			return 67;
			break;
		
		case joaat("weapon_flashlight"):
			return 69;
			break;
		
		case joaat("weapon_revolver"):
			return 70;
			break;
		
		case joaat("weapon_switchblade"):
			return 71;
			break;
	}
	return 0;
}

var func_53(int iParam0, int iParam1)//Position - 0x3C23
{
	var uVar0;
	int iVar1;
	int iVar2;
	
	iVar1 = func_51(iParam1);
	iVar2 = func_54(iVar1);
	switch (iVar2)
	{
		case 0:
			switch (iParam0)
			{
				case 0:
					stats::stat_get_int(joaat("sp0_weap_unlock_0"), &uVar0, -1);
					break;
				
				case 1:
					stats::stat_get_int(joaat("sp1_weap_unlock_0"), &uVar0, -1);
					break;
				
				case 2:
					stats::stat_get_int(joaat("sp2_weap_unlock_0"), &uVar0, -1);
					break;
			}
			break;
		
		case 1:
			switch (iParam0)
			{
				case 0:
					stats::stat_get_int(joaat("sp0_weap_unlock_1"), &uVar0, -1);
					break;
				
				case 1:
					stats::stat_get_int(joaat("sp1_weap_unlock_1"), &uVar0, -1);
					break;
				
				case 2:
					stats::stat_get_int(joaat("sp2_weap_unlock_1"), &uVar0, -1);
					break;
			}
			break;
		
		case 2:
			switch (iParam0)
			{
				case 0:
					stats::stat_get_int(joaat("sp0_weap_unlock_2"), &uVar0, -1);
					break;
				
				case 1:
					stats::stat_get_int(joaat("sp1_weap_unlock_2"), &uVar0, -1);
					break;
				
				case 2:
					stats::stat_get_int(joaat("sp2_weap_unlock_2"), &uVar0, -1);
					break;
			}
			break;
		
		default:
			break;
	}
	return uVar0;
}

int func_54(int iParam0)//Position - 0x3D3D
{
	return (iParam0 / 32);
}

bool func_55(int iParam0)//Position - 0x3D4A
{
	int iVar0;
	struct<2> Var1;
	
	switch (iParam0)
	{
		case joaat("weapon_hammer"):
		case joaat("weapon_pistol50"):
		case joaat("weapon_bullpupshotgun"):
		case joaat("weapon_assaultsmg"):
			return true;
			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))
				{
					return true;
				}
			}
		}
		iVar0++;
	}
	return false;
}

int func_56(int iParam0)//Position - 0x3DB0
{
	int iVar0;
	struct<2> Var1;
	
	if (iParam0 == -61829581)
	{
		if (network::network_is_game_in_progress() && func_59())
		{
			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_58(1, 1))
				{
					return false;
				}
			}
			break;
		
		case joaat("weapon_sawnoffshotgun"):
			if (network::network_is_game_in_progress())
			{
				if (!func_58(1, 1))
				{
					return false;
				}
			}
			break;
		
		case joaat("weapon_railgun"):
			if (!func_48() || network::network_is_game_in_progress())
			{
				return false;
			}
			break;
		
		case joaat("weapon_hatchet"):
			if (!func_48())
			{
				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_57(Var1.f_1))
				{
					return false;
				}
			}
		}
		iVar0++;
	}
	return weapon::is_weapon_valid(iParam0);
}

bool func_57(int iParam0)//Position - 0x3EC7
{
	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;
}

bool func_58(int iParam0, int iParam1)//Position - 0x400B
{
	if (iParam0)
	{
		if (gameplay::is_bit_set(Global_101186.f_668.f_856, 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_59()//Position - 0x4077
{
	return dlc2::is_dlc_present(-1691188696);
}

bool func_60(int iParam0)//Position - 0x4088
{
	switch (iParam0)
	{
		case joaat("weapon_unarmed"):
		case joaat("weapon_animal"):
		case joaat("weapon_cougar"):
		case joaat("weapon_grenadelauncher_smoke"):
		case joaat("weapon_stinger"):
		case joaat("weapon_bzgas"):
		case joaat("weapon_ball"):
		case joaat("weapon_flare"):
		case joaat("weapon_fireextinguisher"):
		case joaat("weapon_digiscanner"):
		case joaat("weapon_airstrike_rocket"):
		case joaat("weapon_hit_by_water_cannon"):
		case joaat("weapon_electric_fence"):
		case joaat("vehicle_weapon_tank"):
		case joaat("vehicle_weapon_space_rocket"):
		case joaat("vehicle_weapon_player_laser"):
		case joaat("vehicle_weapon_player_bullet"):
		case joaat("vehicle_weapon_rotors"):
		case joaat("vehicle_weapon_player_buzzard"):
		case joaat("weapon_passenger_rocket"):
		case joaat("weapon_vehicle_rocket"):
		case joaat("vehicle_weapon_plane_rocket"):
		case joaat("object"):
		case joaat("weapon_briefcase"):
		case joaat("weapon_briefcase_02"):
		case joaat("gadget_parachute"):
		case 1778781596:
		case 1742569970:
		case -1474608608:
		case 527765612:
		case -165357558:
		case -1372674932:
		case 1003267566:
		case 826266432:
		case joaat("weapon_rammed_by_car"):
		case joaat("weapon_run_over_by_car"):
		case joaat("weapon_explosion"):
		case joaat("weapon_fall"):
		case -1887867191:
		case -837150131:
		case -344484024:
		case -664359727:
		case joaat("weapon_flaregun"):
		case joaat("weapon_garbagebag"):
		case joaat("weapon_handcuffs"):
		case joaat("weapon_snowball"):
		case -159960575:
		case -1443982089:
		case -1578596338:
			return false;
		
		default:
	}
	return true;
}

int func_61(int iParam0)//Position - 0x41C2
{
	switch (iParam0)
	{
		case 0:
			return joaat("weapon_unarmed");
			break;
		
		case 1:
			return joaat("weapon_animal");
			break;
		
		case 2:
			return joaat("weapon_cougar");
			break;
		
		case 3:
			return joaat("weapon_pistol");
			break;
		
		case 4:
			return joaat("weapon_combatpistol");
			break;
		
		case 5:
			return joaat("weapon_appistol");
			break;
		
		case 6:
			return joaat("weapon_microsmg");
			break;
		
		case 7:
			return joaat("weapon_smg");
			break;
		
		case 8:
			return joaat("weapon_assaultrifle");
			break;
		
		case 9:
			return joaat("weapon_carbinerifle");
			break;
		
		case 10:
			return joaat("weapon_advancedrifle");
			break;
		
		case 11:
			return joaat("weapon_mg");
			break;
		
		case 12:
			return joaat("weapon_combatmg");
			break;
		
		case 13:
			return joaat("weapon_pumpshotgun");
			break;
		
		case 14:
			return joaat("weapon_sawnoffshotgun");
			break;
		
		case 15:
			return joaat("weapon_assaultshotgun");
			break;
		
		case 16:
			return joaat("weapon_sniperrifle");
			break;
		
		case 17:
			return joaat("weapon_heavysniper");
			break;
		
		case 18:
			return joaat("weapon_remotesniper");
			break;
		
		case 19:
			return joaat("weapon_grenadelauncher");
			break;
		
		case 20:
			return joaat("weapon_grenadelauncher_smoke");
			break;
		
		case 21:
			return joaat("weapon_rpg");
			break;
		
		case 22:
			return joaat("weapon_minigun");
			break;
		
		case 23:
			return joaat("weapon_stinger");
			break;
		
		case 24:
			return joaat("weapon_grenade");
			break;
		
		case 25:
			return joaat("weapon_smokegrenade");
			break;
		
		case 26:
			return joaat("weapon_bzgas");
			break;
		
		case 27:
			return joaat("weapon_stickybomb");
			break;
		
		case 28:
			return joaat("weapon_molotov");
			break;
		
		case 29:
			return joaat("weapon_ball");
			break;
		
		case 30:
			return joaat("weapon_flare");
			break;
		
		case 31:
			return joaat("weapon_stungun");
			break;
		
		case 32:
			return joaat("weapon_fireextinguisher");
			break;
		
		case 33:
			return joaat("weapon_petrolcan");
			break;
		
		case 34:
			return joaat("weapon_digiscanner");
			break;
		
		case 35:
			return joaat("weapon_airstrike_rocket");
			break;
		
		case 36:
			return joaat("weapon_hit_by_water_cannon");
			break;
		
		case 37:
			return joaat("weapon_electric_fence");
			break;
		
		case 38:
			return joaat("weapon_knife");
			break;
		
		case 39:
			return joaat("weapon_nightstick");
			break;
		
		case 40:
			return joaat("weapon_hammer");
			break;
		
		case 41:
			return joaat("weapon_bat");
			break;
		
		case 42:
			return joaat("weapon_crowbar");
			break;
		
		case 43:
			return joaat("weapon_golfclub");
			break;
		
		case 44:
			return joaat("vehicle_weapon_tank");
			break;
		
		case 45:
			return joaat("vehicle_weapon_space_rocket");
			break;
		
		case 46:
			return joaat("vehicle_weapon_player_laser");
			break;
		
		case 47:
			return joaat("vehicle_weapon_player_bullet");
			break;
		
		case 48:
			return joaat("vehicle_weapon_rotors");
			break;
		
		case 49:
			return joaat("vehicle_weapon_player_buzzard");
			break;
		
		case 50:
			return joaat("weapon_passenger_rocket");
			break;
		
		case 51:
			return joaat("weapon_vehicle_rocket");
			break;
		
		case 52:
			return joaat("vehicle_weapon_plane_rocket");
			break;
		
		case 53:
			return joaat("object");
			break;
		
		case 54:
			return joaat("weapon_briefcase");
			break;
		
		case 55:
			return joaat("weapon_briefcase_02");
			break;
		
		case 56:
			return joaat("gadget_parachute");
			break;
		
		case 57:
			return 1778781596;
			break;
		
		case 58:
			return 1742569970;
			break;
		
		case 59:
			return -1474608608;
			break;
		
		case 60:
			return 527765612;
			break;
		
		case 61:
			return -165357558;
			break;
		
		case 62:
			return -1372674932;
			break;
		
		case 63:
			return 1003267566;
			break;
		
		case 64:
			return 826266432;
			break;
		
		case 65:
			return joaat("weapon_rammed_by_car");
			break;
		
		case 66:
			return joaat("weapon_run_over_by_car");
			break;
		
		case 67:
			return joaat("weapon_explosion");
			break;
		
		case 68:
			return joaat("weapon_fall");
			break;
		
		case 69:
			return joaat("weapon_pistol50");
			break;
		
		case 70:
			return joaat("weapon_assaultsmg");
			break;
		
		case 71:
			return -947031628;
			break;
		
		case 72:
			return joaat("weapon_bullpupshotgun");
			break;
		
		case 73:
			return -572349828;
			break;
		
		case 74:
			return 392730790;
			break;
		
		case 75:
			return -1887867191;
			break;
		
		case 76:
			return -837150131;
			break;
		
		case 77:
			return -344484024;
			break;
		
		case 78:
			return joaat("weapon_specialcarbine");
			break;
		
		case 79:
			return joaat("weapon_bottle");
			break;
		
		case 80:
			return joaat("weapon_bullpuprifle");
			break;
		
		case 81:
			return joaat("weapon_heavypistol");
			break;
		
		case 82:
			return joaat("weapon_snspistol");
			break;
		
		case 83:
			return joaat("weapon_dagger");
			break;
		
		case 84:
			return joaat("weapon_vintagepistol");
			break;
		
		case 85:
			return joaat("weapon_gusenberg");
			break;
		
		case 86:
			return -664359727;
			break;
		
		case 87:
			return joaat("weapon_flaregun");
			break;
		
		case 88:
			return joaat("weapon_firework");
			break;
		
		case 89:
			return joaat("weapon_musket");
			break;
		
		case 90:
			return -1523701417;
			break;
		
		case 91:
			return -2112826155;
			break;
		
		case 92:
			return joaat("weapon_heavyshotgun");
			break;
		
		case 93:
			return joaat("weapon_marksmanrifle");
			break;
		
		case 94:
			return joaat("weapon_garbagebag");
			break;
		
		case 95:
			return joaat("weapon_handcuffs");
			break;
		
		case 96:
			return joaat("weapon_hominglauncher");
			break;
		
		case 97:
			return joaat("weapon_proxmine");
			break;
		
		case 98:
			return joaat("weapon_snowball");
			break;
		
		case 99:
			return joaat("weapon_hatchet");
			break;
		
		case 100:
			return joaat("weapon_railgun");
			break;
		
		case 101:
			return -159960575;
			break;
		
		case 102:
			return -1443982089;
			break;
		
		case 103:
			return -1578596338;
			break;
		
		case 104:
			return joaat("weapon_knuckle");
			break;
		
		case 105:
			return joaat("weapon_combatpdw");
			break;
		
		case 106:
			return joaat("weapon_marksmanpistol");
			break;
		
		case 107:
			return joaat("weapon_machete");
			break;
		
		case 108:
			return joaat("weapon_machinepistol");
			break;
		
		case 109:
			return joaat("weapon_flashlight");
			break;
		
		case 110:
			return joaat("weapon_revolver");
			break;
		
		case 111:
			return joaat("weapon_switchblade");
			break;
		
		case 112:
			return joaat("weapon_dbshotgun");
			break;
		
		case 113:
			return joaat("weapon_compactrifle");
			break;
	}
	return 0;
}

bool func_62(int iParam0)//Position - 0x4964
{
	if (iParam0 == 0)
	{
		iParam0 = entity::get_entity_model(player::player_ped_id());
	}
	if (((((func_63(iParam0) && iParam0 != joaat("ig_orleans")) || iParam0 == joaat("s_m_m_movalien_01")) || iParam0 == joaat("u_m_y_pogo_01")) || iParam0 == joaat("u_m_y_rsranger_01")) || iParam0 == joaat("s_m_m_movspace_01"))
	{
		return false;
	}
	return true;
}

bool func_63(int iParam0)//Position - 0x49CF
{
	switch (iParam0)
	{
		case joaat("a_c_boar"):
		case 1462895032:
		case joaat("a_c_cow"):
		case joaat("a_c_coyote"):
		case joaat("a_c_deer"):
		case joaat("a_c_husky"):
		case joaat("a_c_mtlion"):
		case joaat("a_c_pig"):
		case 1125994524:
		case 1832265812:
		case -541762431:
		case joaat("a_c_retriever"):
		case joaat("a_c_rottweiler"):
		case joaat("a_c_shepherd"):
		case -1384627013:
		case joaat("a_c_chickenhawk"):
		case joaat("a_c_cormorant"):
		case joaat("a_c_crow"):
		case joaat("a_c_hen"):
		case joaat("a_c_pigeon"):
		case joaat("a_c_seagull"):
		case -1950698411:
		case joaat("a_c_fish"):
		case -1920284487:
		case 1015224100:
		case joaat("a_c_sharktiger"):
		case -1589092019:
		case joaat("ig_orleans"):
			return true;
			break;
	}
	return false;
}

int func_64(int iParam0)//Position - 0x4A8E
{
	return iParam0 < 3;
}

void func_65(int iParam0)//Position - 0x4A9A
{
	switch (iParam0)
	{
		case 0:
			iLocal_7722 = 0;
			iLocal_7723 = 5;
			break;
		
		case 1:
			iLocal_7722 = 2;
			iLocal_7723 = 2;
			break;
		
		case 2:
			iLocal_7722 = 3;
			iLocal_7723 = 3;
			break;
		
		case 3:
			iLocal_7722 = 5;
			iLocal_7723 = 5;
			break;
		
		case 4:
			iLocal_7722 = 0;
			iLocal_7723 = 0;
			break;
	}
	player::set_wanted_level_multiplier(1f);
}

void func_66(int iParam0, int iParam1)//Position - 0x4B03
{
	streaming::set_ped_population_budget(iParam0);
	streaming::set_vehicle_population_budget(iParam1);
	if (iParam1 == 0)
	{
		vehicle::_display_distant_vehicles(0);
		graphics::disable_vehicle_distantlights(1);
		vehicle::set_all_vehicle_generators_active_in_area(-10000f, -10000f, -200f, 10000f, 10000f, 1000f, false, 1);
		pathfind::set_roads_in_area(-10000f, -10000f, -200f, 10000f, 10000f, 1000f, false, 1);
		vehicle::set_random_trains(0);
		vehicle::set_random_boats(0);
		vehicle::delete_all_trains();
	}
	else
	{
		vehicle::_display_distant_vehicles(1);
		graphics::disable_vehicle_distantlights(0);
		vehicle::set_all_vehicle_generators_active();
		pathfind::set_roads_back_to_original(-10000f, -10000f, -200f, 10000f, 10000f, 1000f, 1);
		vehicle::set_random_trains(1);
		vehicle::set_random_boats(1);
	}
	if (iLocal_9747 != 0)
	{
		ped::remove_scenario_blocking_area(iLocal_9747, 0);
		iLocal_9747 = 0;
	}
	if (iParam1 == 0 && iParam0 == 0)
	{
		iLocal_9747 = ped::add_scenario_blocking_area(vLocal_9748, vLocal_9751, 0, 1, 1, 1);
	}
	else if (iParam1 == 0)
	{
		iLocal_9747 = ped::add_scenario_blocking_area(vLocal_9748, vLocal_9751, 0, 1, 0, 1);
	}
	else if (iParam0 == 0)
	{
		iLocal_9747 = ped::add_scenario_blocking_area(vLocal_9748, vLocal_9751, 0, 1, 1, 0);
	}
	if (iParam0 == 0)
	{
		gameplay::clear_area_of_peds(entity::get_entity_coords(player::player_ped_id(), 1), 1000f, 0);
	}
	else
	{
		if (iLocal_7550[3] != 0)
		{
			gameplay::clear_area_of_peds(entity::get_entity_coords(player::player_ped_id(), 1), 1000f, 0);
		}
		ped::_0x4759CC730F947C81();
	}
	if (iParam1 == 0)
	{
		gameplay::clear_area_of_vehicles(entity::get_entity_coords(player::player_ped_id(), 1), 1000f, 0, 0, 0, 0, false);
		audio::start_audio_scene("Director_Mode_No_Cars_Scene");
		audio::set_ambient_zone_list_state("AZL_VEHICLE_RADIO_EMITTER_ZONES", 0, 1);
	}
	else
	{
		vehicle::_0x48ADC8A773564670();
		iLocal_7570 = 1;
		audio::stop_audio_scene("Director_Mode_No_Cars_Scene");
		audio::set_ambient_zone_list_state("AZL_VEHICLE_RADIO_EMITTER_ZONES", 1, 1);
	}
	iLocal_7550[3] = iLocal_7550[3];
	if (iParam1 > 0)
	{
	}
}

void func_67()//Position - 0x4CCB
{
	int iVar0;
	
	iVar0 = func_70(0);
	if (iLocal_7595 == 0 || !controls::_is_input_disabled(2))
	{
		return;
	}
	if (func_69())
	{
		Global_2566788 = gameplay::get_game_timer() + 300;
	}
	else if (func_68() && gameplay::get_game_timer() > Global_2566788)
	{
		if (Global_2566787 > -1)
		{
			if (iVar0 == -1)
			{
				controls::_set_control_normal(2, iLocal_7655, 1f);
			}
			if (iVar0 == 1)
			{
				controls::_set_control_normal(2, iLocal_7656, 1f);
			}
		}
		else if (Global_2566787 == -2)
		{
			controls::_set_control_normal(2, iLocal_7657, 1f);
			Global_2566788 = gameplay::get_game_timer() + 150;
			return;
		}
		else if (Global_2566787 == -3)
		{
			controls::_set_control_normal(2, iLocal_7658, 1f);
			Global_2566788 = gameplay::get_game_timer() + 150;
			return;
		}
		Global_2566788 = gameplay::get_game_timer() + 300;
	}
}

int func_68()//Position - 0x4D96
{
	if (controls::_is_input_disabled(2))
	{
		return controls::is_disabled_control_pressed(2, 237);
	}
	return false;
}

int func_69()//Position - 0x4DB1
{
	if (controls::_is_input_disabled(2))
	{
		return controls::is_disabled_control_just_pressed(2, 237);
	}
	return false;
}

int func_70(float fParam0)//Position - 0x4DCC
{
	float fVar0;
	float fVar1;
	float fVar2;
	float fVar3;
	float fVar4;
	float fVar5;
	float fVar6;
	
	fVar6 = 0.02f;
	fVar0 = 0.05f;
	fVar2 = (fVar0 + Global_17256);
	fVar1 = (Global_17257.f_5600 - (IntToFloat(Global_17257.f_5602) * 0.034722f));
	fVar5 = (fVar0 + fParam0);
	graphics::_set_screen_draw_position(76, 84);
	graphics::_0xF5A2C681787E579D(-0.05f, -0.05f, 0f, 0f);
	graphics::_0x6DD8F5AA635EB4B2(fVar0, fVar1, &fVar0, &fVar1);
	graphics::_0x6DD8F5AA635EB4B2(fVar2, fVar3, &fVar2, &fVar3);
	graphics::_0xE3A3DB414A373DAB();
	fVar4 = (fVar2 - fVar6);
	if (fParam0 > 0f)
	{
		if (Global_2566781 >= fVar0 && Global_2566781 < fVar5)
		{
			return -999;
		}
	}
	if (Global_2566781 >= fVar0 && Global_2566781 < fVar4)
	{
		return -1;
	}
	if (Global_2566781 >= fVar4 && Global_2566781 <= fVar2)
	{
		return 1;
	}
	return 0;
}

void func_71()//Position - 0x4E99
{
	if (iLocal_7699)
	{
		if (iLocal_7596 && iLocal_6555 == 5)
		{
			func_83();
		}
		iLocal_7699 = 0;
	}
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		if (audio::is_ambient_speech_playing(player::player_ped_id()))
		{
			if (iLocal_7700 || cam::is_aim_cam_active())
			{
				ped::set_ped_can_play_gesture_anims(player::player_ped_id(), 0);
			}
			else
			{
				ped::set_ped_can_play_gesture_anims(player::player_ped_id(), 1);
			}
		}
		func_81();
	}
	if (func_80() == 5)
	{
		if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
		{
			if (!vehicle::is_this_model_a_bike(entity::get_entity_model(ped::get_vehicle_ped_is_using(player::player_ped_id()))))
			{
				if (!func_79())
				{
					func_75(1);
				}
			}
		}
		else if (func_79())
		{
			func_75(0);
		}
		if (func_73())
		{
			func_72();
		}
	}
}

void func_72()//Position - 0x4F4E
{
	gameplay::set_bit(&Global_2284, 4);
}

bool func_73()//Position - 0x4F5E
{
	switch (entity::get_entity_model(player::player_ped_id()))
	{
		case joaat("ig_maude"):
		case joaat("g_m_y_korlieut_01"):
		case joaat("a_f_m_fatcult_01"):
		case joaat("s_m_y_construct_01"):
		case joaat("s_m_y_construct_02"):
		case joaat("s_m_y_garbage"):
		case joaat("s_m_y_factory_01"):
		case joaat("s_m_m_gardener_01"):
		case joaat("s_m_m_dockwork_01"):
		case joaat("s_m_y_xmech_02"):
		case joaat("s_f_y_migrant_01"):
		case joaat("u_m_m_griff_01"):
		case joaat("u_m_y_imporage"):
		case joaat("a_f_m_fatbla_01"):
		case joaat("u_m_y_hippie_01"):
			return true;
			break;
		
		case joaat("s_m_m_doctor_01"):
			if (func_74(player::player_ped_id(), 8, 1) || func_74(player::player_ped_id(), 8, 2))
			{
				return true;
			}
			break;
	}
	return false;
}

bool func_74(int iParam0, int iParam1, int iParam2)//Position - 0x5001
{
	if (ped::get_ped_drawable_variation(iParam0, iParam1) == iParam2)
	{
		return true;
	}
	return false;
}

void func_75(int iParam0)//Position - 0x501B
{
	if (iParam0)
	{
		switch (entity::get_entity_model(player::player_ped_id()))
		{
			case joaat("s_m_y_fireman_01"):
				if (ped::get_ped_drawable_variation(player::player_ped_id(), 8) > 0)
				{
					func_78(8, 0);
				}
				break;
			
			case joaat("hc_gunman"):
				if (ped::get_ped_drawable_variation(player::player_ped_id(), 8) == 3 || ped::get_ped_drawable_variation(player::player_ped_id(), 8) == 4)
				{
					func_78(8, 0);
				}
				if (ped::get_ped_prop_index(player::player_ped_id(), 0) == 1)
				{
					func_77(0, 1);
				}
				break;
			
			case joaat("s_m_y_factory_01"):
				if (ped::get_ped_drawable_variation(player::player_ped_id(), 8) == 0)
				{
					func_78(8, 1);
				}
				break;
			
			case joaat("s_m_m_linecook"):
				if (ped::get_ped_drawable_variation(player::player_ped_id(), 8) < 2)
				{
					func_78(8, 2);
				}
				break;
			
			case joaat("s_m_y_chef_01"):
				if (ped::get_ped_drawable_variation(player::player_ped_id(), 8) == 1)
				{
					func_78(8, 0);
				}
				break;
		}
	}
	else
	{
		func_76();
	}
}

void func_76()//Position - 0x50F8
{
	if (Local_9754)
	{
		ped::set_ped_component_variation(player::player_ped_id(), Local_9754.f_3, Local_9754.f_6, Local_9754.f_7, 0);
		Local_9754 = 0;
	}
	if (Local_9754.f_1)
	{
		ped::set_ped_prop_index(player::player_ped_id(), Local_9754.f_4, Local_9754.f_5, 0, false);
		Local_9754.f_1 = 0;
	}
}

void func_77(int iParam0, int iParam1)//Position - 0x5144
{
	Local_9754.f_1 = 1;
	Local_9754.f_2 = entity::get_entity_model(player::player_ped_id());
	Local_9754.f_4 = iParam0;
	Local_9754.f_5 = iParam1;
	ped::clear_ped_prop(player::player_ped_id(), iParam0);
}

void func_78(int iParam0, int iParam1)//Position - 0x5177
{
	Local_9754 = 1;
	Local_9754.f_2 = entity::get_entity_model(player::player_ped_id());
	Local_9754.f_3 = iParam0;
	Local_9754.f_6 = ped::get_ped_drawable_variation(player::player_ped_id(), iParam0);
	Local_9754.f_7 = ped::get_ped_texture_variation(player::player_ped_id(), iParam0);
	ped::set_ped_component_variation(player::player_ped_id(), iParam0, iParam1, 0, 0);
}

bool func_79()//Position - 0x51C3
{
	if (Local_9754 || Local_9754.f_1)
	{
		return true;
	}
	return false;
}

int func_80()//Position - 0x51E1
{
	return iLocal_6555;
}

void func_81()//Position - 0x51EC
{
	iLocal_7588 = false;
	player::set_player_can_use_cover(player::player_id(), 1);
	if (func_82())
	{
		iLocal_7588 = true;
	}
	switch (entity::get_entity_model(player::player_ped_id()))
	{
		case joaat("s_m_y_factory_01"):
		case joaat("s_m_y_xmech_01"):
		case joaat("s_f_y_factory_01"):
		case joaat("s_f_m_maid_01"):
		case joaat("u_m_m_griff_01"):
		case joaat("s_m_m_linecook"):
		case joaat("s_m_m_doctor_01"):
		case joaat("s_m_m_scientist_01"):
		case joaat("s_f_y_airhostess_01"):
		case joaat("a_f_y_hipster_02"):
		case joaat("a_f_m_bevhills_02"):
		case joaat("u_f_y_spyactress"):
		case joaat("s_f_m_shop_high"):
		case joaat("s_f_y_hooker_01"):
		case joaat("u_f_o_moviestar"):
		case joaat("ig_mrs_thornhill"):
		case joaat("s_m_m_postal_02"):
		case joaat("s_m_y_chef_01"):
		case joaat("a_f_m_business_02"):
		case joaat("a_f_y_tennis_01"):
		case joaat("a_f_y_bevhills_03"):
			iLocal_7588 = true;
			break;
		
		case joaat("a_m_y_beach_02"):
		case joaat("a_m_m_genfat_01"):
		case joaat("a_f_y_eastsa_02"):
		case joaat("s_m_y_construct_02"):
		case joaat("a_f_y_business_01"):
		case joaat("a_f_y_business_02"):
		case joaat("a_f_y_golfer_01"):
		case joaat("a_f_y_hipster_01"):
		case joaat("a_f_y_bevhills_01"):
		case joaat("a_f_y_vinewood_04"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 4) == 0)
			{
				iLocal_7588 = true;
			}
			break;
		
		case joaat("g_m_y_ballaeast_01"):
		case joaat("g_m_m_mexboss_02"):
		case joaat("g_f_y_lost_01"):
		case joaat("a_m_m_tranvest_01"):
		case joaat("s_f_m_fembarber"):
		case joaat("a_f_y_business_03"):
		case joaat("a_f_y_hipster_04"):
		case joaat("a_f_m_bevhills_01"):
		case joaat("a_m_y_golfer_01"):
		case joaat("s_m_y_airworker"):
		case joaat("s_m_m_ups_01"):
		case joaat("s_m_m_ups_02"):
		case joaat("a_f_y_business_04"):
		case joaat("g_m_y_famdnf_01"):
		case joaat("a_f_y_bevhills_02"):
		case joaat("a_f_y_hipster_03"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 4) == 1)
			{
				iLocal_7588 = true;
			}
			break;
		
		case joaat("hc_hacker"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 4) == 3)
			{
				iLocal_7588 = true;
			}
			break;
		
		case joaat("g_m_m_armboss_01"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 3) == 2)
			{
				iLocal_7588 = true;
			}
			break;
		
		case joaat("a_f_y_indian_01"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 3) == 1)
			{
				iLocal_7588 = true;
			}
			break;
		
		case joaat("s_m_y_waiter_01"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 8) == 0)
			{
				iLocal_7588 = true;
			}
			break;
		
		case joaat("ig_amandatownley"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 3) == 7)
			{
				iLocal_7588 = true;
			}
			break;
		
		case joaat("ig_tracydisanto"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 4) == 1 || ped::get_ped_drawable_variation(player::player_ped_id(), 4) == 2)
			{
				iLocal_7588 = true;
			}
			break;
		
		default:
			player::set_player_can_use_cover(player::player_id(), 1);
			break;
	}
	if (iLocal_7588)
	{
		player::set_player_can_use_cover(player::player_id(), 0);
	}
}

bool func_82()//Position - 0x542C
{
	switch (entity::get_entity_model(player::player_ped_id()))
	{
		case joaat("hc_gunman"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 9) == 1)
			{
				return true;
			}
			break;
		
		case joaat("player_zero"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 8) == 5)
			{
				return true;
			}
			break;
		
		case joaat("player_two"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 8) == 2)
			{
				return true;
			}
			break;
	}
	return false;
}

void func_83()//Position - 0x5493
{
	func_172();
	func_170(-1);
	func_169(0, 1, 0, 0, 0);
	func_168(1, 1, 0, 0, 0);
	func_167(1, 2, 1, 1, 1);
	func_166(7);
	switch (iLocal_5754)
	{
		case 0:
			func_162();
			break;
		
		case 1:
			func_157();
			break;
		
		case 2:
			func_148();
			break;
		
		case 3:
			func_123();
			break;
	}
	func_122(Local_5662.f_90, 1, 1);
	func_121("", 0, 0);
	func_100();
	func_84();
}

void func_84()//Position - 0x551D
{
	int iVar0;
	vector3 vVar1;
	int iVar4;
	
	if (iLocal_5754 == 0 && Local_5662.f_90 == 1)
	{
		if (!func_96(5) || unk1::_is_recording())
		{
			if (iLocal_9773)
			{
				func_94(1);
			}
		}
		else
		{
			if (!iLocal_9773)
			{
				if (!unk1::_is_recording())
				{
					if (func_96(5))
					{
						func_88();
					}
				}
			}
			iVar0 = iLocal_9639[iLocal_7676[1]];
			vVar1 = { Local_9128[iVar0 /*17*/] };
			iVar4 = 0;
			while (iVar4 <= (30 - 1))
			{
				if (iVar4 != 29)
				{
					if (ui::does_blip_exist(Local_9128[iVar4 /*17*/].f_12))
					{
						if (iVar4 == iVar0)
						{
							ui::set_blip_scale(Local_9128[iVar4 /*17*/].f_12, 1f);
							ui::set_blip_alpha(Local_9128[iVar4 /*17*/].f_12, 255);
						}
						else
						{
							ui::set_blip_scale(Local_9128[iVar4 /*17*/].f_12, 0.66f);
							ui::set_blip_alpha(Local_9128[iVar4 /*17*/].f_12, 156);
						}
					}
				}
				iVar4++;
			}
			if (!func_87(vVar1))
			{
				ui::lock_minimap_position(vVar1.x, vVar1.y);
				ui::lock_minimap_angle(func_85(vVar1));
			}
			else
			{
				ui::unlock_minimap_position();
				ui::unlock_minimap_angle();
			}
		}
	}
	else if (iLocal_5754 == 0 && Local_5662.f_91 == 1)
	{
		func_94(1);
	}
}

int func_85(vector3 vParam0)//Position - 0x564C
{
	int iVar0;
	
	iVar0 = func_86(vParam0);
	iVar0 += 8;
	if (iVar0 < 0)
	{
		iVar0 = (iVar0 * -1);
	}
	else
	{
		iVar0 = (360 - iVar0);
	}
	if (iVar0 > 360)
	{
		while (iVar0 > 360)
		{
			iVar0 = (iVar0 - 360);
		}
	}
	else if (iVar0 < 0)
	{
		while (iVar0 < 0)
		{
			iVar0 += 360;
		}
	}
	return iVar0;
}

int func_86(struct<2> Param0, var uParam2)//Position - 0x56B1
{
	int iVar0;
	vector3 vVar1;
	float fVar4;
	float fVar5;
	float fVar6;
	int iVar7;
	
	iVar0 = unk_0x3F0CF9CB7E589B88();
	vVar1 = { ui::get_blip_coords(iVar0) };
	fVar4 = (vVar1.x - Param0);
	fVar5 = (vVar1.y - Param0.f_1);
	fVar6 = gameplay::atan((fVar4 / fVar5));
	iVar7 = system::round(fVar6);
	return iVar7;
}

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

void func_88()//Position - 0x571A
{
	int iVar0;
	var uVar1;
	vector3 vVar2;
	vector3 vVar5;
	
	if (iLocal_5754 == 0)
	{
		if (Local_5662.f_90 == 1)
		{
			if ((!unk1::_is_recording() && !func_93()) && !func_92())
			{
				if (func_96(5))
				{
					ui::display_radar(true);
					ui::_set_radar_bigmap_enabled(1, 0);
					ui::set_blip_alpha(unk_0x3F0CF9CB7E589B88(), 0);
					unk_0x32888337579A5970();
					iVar0 = 0;
					while (iVar0 <= (30 - 1))
					{
						if (iVar0 != 29)
						{
							if (!ui::does_blip_exist(Local_9128[iVar0 /*17*/].f_12) && !func_87(Local_9128[iVar0 /*17*/]))
							{
								Local_9128[iVar0 /*17*/].f_12 = func_90(Local_9128[iVar0 /*17*/], 0);
								ui::set_blip_scale(Local_9128[iVar0 /*17*/].f_12, 0.66f);
								ui::set_blip_alpha(Local_9128[iVar0 /*17*/].f_12, 156);
								if (iVar0 == 0 || iVar0 == 1)
								{
									ui::set_blip_colour(Local_9128[iVar0 /*17*/].f_12, 2);
								}
								else if (func_89(iVar0))
								{
									ui::_0x74513EA3E505181E(Local_9128[iVar0 /*17*/].f_12, 1);
								}
								else
								{
									ui::_0x74513EA3E505181E(Local_9128[iVar0 /*17*/].f_12, 0);
								}
								ui::set_blip_as_short_range(Local_9128[iVar0 /*17*/].f_12, true);
								ui::set_blip_name_from_text_file(Local_9128[iVar0 /*17*/].f_12, &(Local_9128[iVar0 /*17*/].f_13));
								ui::_0x75A16C3DA34F1245(Local_9128[iVar0 /*17*/].f_12, false);
							}
						}
						iVar0++;
					}
					uVar1 = iLocal_9639[iLocal_7676[1]];
					vVar2 = { Local_9128[uVar1 /*17*/] };
					if (ui::does_blip_exist(Local_9128[uVar1 /*17*/].f_12))
					{
						ui::set_blip_scale(Local_9128[uVar1 /*17*/].f_12, 1f);
						ui::set_blip_alpha(Local_9128[uVar1 /*17*/].f_12, 255);
					}
					if (func_87(vVar2))
					{
						vVar5 = { entity::get_entity_coords(player::player_ped_id(), 1) };
						ui::lock_minimap_position(vVar5.x, vVar5.y);
					}
					else
					{
						ui::lock_minimap_position(vVar2.x, vVar2.y);
						ui::lock_minimap_angle(func_85(vVar2));
					}
					iLocal_9773 = true;
				}
			}
		}
	}
}

int func_89(int iParam0)//Position - 0x58E8
{
	if (iParam0 != -1 && iParam0 != 30)
	{
		return gameplay::is_bit_set(Global_101186.f_31035.f_4, iParam0);
	}
	return false;
}

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

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

bool func_92()//Position - 0x595A
{
	if (((Global_91310 == 13 || Global_91310 == 10) || Global_91310 == 11) || Global_91310 == 12)
	{
		return false;
	}
	return true;
}

int func_93()//Position - 0x5998
{
	return gameplay::is_bit_set(Global_91310.f_20, 13);
}

void func_94(int iParam0)//Position - 0x59AC
{
	int iVar0;
	
	if (iParam0)
	{
	}
	if (func_46(func_95()))
	{
		ui::display_radar(false);
	}
	ui::_set_radar_bigmap_enabled(0, 0);
	ui::set_blip_alpha(unk_0x3F0CF9CB7E589B88(), 255);
	ui::unlock_minimap_position();
	ui::unlock_minimap_angle();
	unk_0x15CFA549788D35EF();
	if (iParam0)
	{
		iVar0 = 0;
		while (iVar0 <= (30 - 1))
		{
			if (ui::does_blip_exist(Local_9128[iVar0 /*17*/].f_12))
			{
				ui::remove_blip(&(Local_9128[iVar0 /*17*/].f_12));
			}
			iVar0++;
		}
	}
	iLocal_9773 = false;
}

int func_95()//Position - 0x5A20
{
	return entity::get_entity_model(player::player_ped_id());
}

bool func_96(int iParam0)//Position - 0x5A30
{
	int iVar0;
	int iVar1;
	
	switch (iParam0)
	{
		case 0:
			if (((((((((gameplay::is_bit_set(iLocal_9771, 3) || gameplay::is_bit_set(iLocal_9771, 4)) || gameplay::is_bit_set(iLocal_9771, 5)) || gameplay::is_bit_set(iLocal_9771, 6)) || gameplay::is_bit_set(iLocal_9771, 7)) || gameplay::is_bit_set(iLocal_9771, 10)) || gameplay::is_bit_set(iLocal_9771, 11)) || gameplay::is_bit_set(iLocal_9771, 13)) || gameplay::is_bit_set(iLocal_9771, 12)) || gameplay::is_bit_set(iLocal_9771, 14))
			{
				return false;
			}
			break;
		
		case 1:
			if ((((((((gameplay::is_bit_set(iLocal_9771, 1) || gameplay::is_bit_set(iLocal_9771, 3)) || gameplay::is_bit_set(iLocal_9771, 4)) || gameplay::is_bit_set(iLocal_9771, 5)) || gameplay::is_bit_set(iLocal_9771, 7)) || gameplay::is_bit_set(iLocal_9771, 9)) || gameplay::is_bit_set(iLocal_9771, 10)) || gameplay::is_bit_set(iLocal_9771, 11)) || gameplay::is_bit_set(iLocal_9771, 14))
			{
				return false;
			}
			break;
		
		case 2:
			if ((((gameplay::is_bit_set(iLocal_9771, 4) || gameplay::is_bit_set(iLocal_9771, 5)) || gameplay::is_bit_set(iLocal_9771, 7)) || gameplay::is_bit_set(iLocal_9771, 8)) || gameplay::is_bit_set(iLocal_9771, 14))
			{
				return false;
			}
			break;
		
		case 3:
			if (!func_99())
			{
				return false;
			}
			if (((((((gameplay::is_bit_set(iLocal_9771, 1) || gameplay::is_bit_set(iLocal_9771, 4)) || gameplay::is_bit_set(iLocal_9771, 5)) || gameplay::is_bit_set(iLocal_9771, 7)) || gameplay::is_bit_set(iLocal_9771, 8)) || gameplay::is_bit_set(iLocal_9771, 10)) || gameplay::is_bit_set(iLocal_9771, 13)) || gameplay::is_bit_set(iLocal_9771, 14))
			{
				return false;
			}
			break;
		
		case 4:
			if ((((((((((gameplay::is_bit_set(iLocal_9771, 1) || gameplay::is_bit_set(iLocal_9771, 3)) || gameplay::is_bit_set(iLocal_9771, 4)) || gameplay::is_bit_set(iLocal_9771, 5)) || gameplay::is_bit_set(iLocal_9771, 6)) || gameplay::is_bit_set(iLocal_9771, 7)) || gameplay::is_bit_set(iLocal_9771, 10)) || gameplay::is_bit_set(iLocal_9771, 13)) || gameplay::is_bit_set(iLocal_9771, 14)) || gameplay::is_bit_set(iLocal_9771, 12)) || gameplay::is_bit_set(iLocal_9771, 9))
			{
				return false;
			}
			break;
		
		case 5:
			if (((((gameplay::is_bit_set(iLocal_9771, 7) || gameplay::is_bit_set(iLocal_9771, 9)) || gameplay::is_bit_set(iLocal_9771, 5)) || gameplay::is_bit_set(iLocal_9771, 14)) || gameplay::is_bit_set(iLocal_9771, 2)) || gameplay::is_bit_set(iLocal_9771, 15))
			{
				return false;
			}
			break;
		
		case 6:
			if ((gameplay::is_bit_set(iLocal_9771, 4) || gameplay::is_bit_set(iLocal_9771, 8)) || !func_98(player::player_ped_id()))
			{
				return false;
			}
			break;
		
		case 7:
			if (vehicle::is_vehicle_driveable(ped::set_exclusive_phone_relationships(player::player_ped_id()), 0))
			{
				iVar0 = ped::set_exclusive_phone_relationships(player::player_ped_id());
				if (func_97(iVar0) == 0)
				{
					return false;
				}
			}
			if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
			{
				iVar1 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 1);
				if (func_97(iVar1) == 0)
				{
					return false;
				}
			}
			if (func_46(entity::get_entity_model(player::player_ped_id())))
			{
				return false;
			}
			if (ped::get_ped_parachute_state(player::player_ped_id()) > -1)
			{
				return false;
			}
			break;
	}
	return true;
}

bool func_97(int iParam0)//Position - 0x5DFC
{
	if ((vehicle::is_this_model_a_car(entity::get_entity_model(iParam0)) || vehicle::is_this_model_a_bike(entity::get_entity_model(iParam0))) || vehicle::is_this_model_a_boat(entity::get_entity_model(iParam0)))
	{
		if (entity::get_entity_model(iParam0) == joaat("rhino") || entity::get_entity_model(iParam0) == joaat("taxi"))
		{
			return false;
		}
		if (vehicle::is_this_model_a_bicycle(entity::get_entity_model(iParam0)))
		{
			return false;
		}
	}
	else
	{
		return false;
	}
	return true;
}

bool func_98(int iParam0)//Position - 0x5E6F
{
	if (!ped::is_ped_injured(iParam0))
	{
		if (func_82())
		{
			return false;
		}
		switch (entity::get_entity_model(iParam0))
		{
			case joaat("u_m_y_pogo_01"):
			case joaat("u_m_y_mani"):
			case joaat("s_m_m_movspace_01"):
			case joaat("u_m_y_rsranger_01"):
			case joaat("s_m_m_movalien_01"):
			case joaat("a_m_m_tranvest_01"):
				return false;
				break;
			}
	}
	return true;
}

bool func_99()//Position - 0x5EC3
{
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		switch (entity::get_entity_model(player::player_ped_id()))
		{
			case joaat("s_m_m_movalien_01"):
			case joaat("u_m_y_pogo_01"):
			case joaat("u_m_y_rsranger_01"):
			case joaat("a_m_m_genfat_01"):
			case joaat("a_m_m_genfat_02"):
			case joaat("a_m_m_fatlatin_01"):
			case joaat("a_f_m_fatwhite_01"):
			case joaat("a_f_m_fatbla_01"):
			case joaat("a_f_m_fatcult_01"):
				return false;
				break;
			
			default:
				return true;
				break;
			}
	}
	return true;
}

void func_100()//Position - 0x5F29
{
	vector3 vVar0;
	vector3 vVar3;
	int iVar6;
	vector3 vVar7;
	
	func_120(iLocal_7660, "PIM_CEXI", -1, iLocal_9745);
	switch (iLocal_5754)
	{
		case 0:
			switch (Local_5662.f_90)
			{
				case 0:
				case 7:
				case 8:
				case 9:
					func_120(iLocal_7659, "CM_BUTPREOPEN", -1, iLocal_9745);
					break;
				
				case 1:
					vVar0 = { Local_9128[iLocal_9639[iLocal_7676[1]] /*17*/] };
					vVar3 = { func_119(player::player_id()) };
					iVar6 = ui::is_waypoint_active();
					if (iVar6)
					{
						vVar7 = { ui::get_blip_coords(ui::get_first_blip_info_id(ui::_get_blip_info_id_iterator())) };
					}
					else
					{
						iLocal_9737 = -1;
					}
					if (func_96(5))
					{
						func_118(5, "CM_CHNGLOC", -1);
					}
					if (iLocal_9639[iLocal_7676[1]] == 0 || iLocal_9639[iLocal_7676[1]] == 1)
					{
						if (func_96(5))
						{
							if (!func_87(Local_9128[iLocal_9639[iLocal_7676[1]] /*17*/]))
							{
								func_120(iLocal_7659, "CM_BUTPREL", -1, iLocal_9745);
								if (iLocal_9737 != iLocal_7676[1] || (iVar6 && !func_9(vVar0, vVar7, 0.5f, 1)))
								{
									if (system::vdist2(vVar0, vVar3) > (50f * 50f))
									{
										func_120(iLocal_7661, "CM_BUTPRELW", -1, iLocal_9745);
									}
								}
								else if (iVar6 && (iLocal_9737 == iLocal_7676[1] || func_9(vVar0, vVar7, 0.5f, 1)))
								{
									func_120(iLocal_7661, "CM_BUTDELW", -1, iLocal_9745);
								}
							}
							if (func_96(4))
							{
								func_120(204, "CM_BUTPRELS", -1, iLocal_9745);
							}
						}
					}
					else if (iLocal_9639[iLocal_7676[1]] == 29)
					{
						if (func_96(5))
						{
							func_120(iLocal_7659, "CM_BUTPREL", -1, iLocal_9745);
							func_120(iLocal_7661, "CM_BUTDELW", -1, iLocal_9745);
						}
					}
					else if (func_96(5))
					{
						func_120(iLocal_7659, "CM_BUTPREL", -1, iLocal_9745);
						if ((iLocal_9737 != iLocal_7676[1] && !func_9(vVar0, vVar7, 0.5f, 1)) && system::vdist2(vVar0, vVar3) > (50f * 50f))
						{
							func_120(iLocal_7661, "CM_BUTPRELW", -1, iLocal_9745);
						}
						else if (iVar6 && (iLocal_9737 == iLocal_7676[1] || func_9(vVar0, vVar7, 0.5f, 1)))
						{
							func_120(iLocal_7661, "CM_BUTDELW", -1, iLocal_9745);
						}
					}
					break;
				
				case 2:
					if (func_96(3))
					{
						if (!controls::_is_input_disabled(2))
						{
							func_120(iLocal_7659, "CM_BUTPREG", -1, iLocal_9745);
						}
						else
						{
							func_120(176, "CM_BUTPREG", -1, iLocal_9745);
						}
						func_118(5, "CM_CHNGACTN", -1);
					}
					break;
				
				case 3:
					if (func_96(2))
					{
						if (iLocal_7676[3] > 0)
						{
							if (!controls::_is_input_disabled(2))
							{
								func_120(iLocal_7659, "CM_BUTPRES", -1, iLocal_9745);
							}
							else
							{
								func_120(176, "CM_BUTPRES", -1, iLocal_9745);
							}
						}
						if (iLocal_7921 > 1)
						{
							func_118(5, "CM_CHNGDIALG", -1);
						}
					}
					break;
				
				case 5:
					if (func_111() > 0 && func_96(6))
					{
						func_120(iLocal_7659, "CM_BUTPREOPEN", -1, iLocal_9745);
					}
					break;
				
				case 4:
					if (func_108())
					{
						if (func_105(func_106(iLocal_7676[Local_5662.f_90])) && !func_104(func_106(iLocal_7676[Local_5662.f_90]), iLocal_7716))
						{
							func_120(iLocal_7659, "CM_BUTSWAP", -1, iLocal_9745);
						}
						func_118(5, "CM_CHNGACTR", -1);
					}
					break;
				
				case 6:
					if (func_96(7))
					{
						func_120(iLocal_7659, "CM_BUTPREOPEN", -1, iLocal_9745);
					}
					break;
			}
			break;
		
		case 1:
			func_120(iLocal_7659, "CM_BUTVEH", -1, iLocal_9745);
			break;
		
		case 2:
			if (func_27(Local_5662.f_90))
			{
				func_118(5, "CM_CHNGSET", -1);
			}
			if (iLocal_7565)
			{
				func_120(203, "CM_BUTAPPLY", -1, iLocal_9745);
			}
			switch (Local_5662.f_90)
			{
				case 0:
					if (iLocal_7568)
					{
						func_120(23, "CM_BUTUNFRZ", -1, iLocal_9745);
					}
					else
					{
						func_120(23, "CM_BUTFRZ", -1, iLocal_9745);
					}
					func_103("CM_BUTSCRUB", controls::_get_control_action_name(0, 44, true), controls::_get_control_action_name(0, 37, true), 0, 0);
					break;
			}
			break;
		
		case 3:
			func_102(Local_5662.f_90, iLocal_9745);
			break;
	}
	if (controls::_is_input_disabled(0) && !iLocal_9745)
	{
		func_101(iLocal_7663, "CM_BUTMOUSECAM", -1);
	}
}

void func_101(int iParam0, char* sParam1, int iParam2)//Position - 0x63D1
{
	char* sVar0;
	
	sVar0 = controls::_get_control_action_name(2, iParam0, true);
	if (Global_17257.f_4639 >= 12)
	{
		StringCopy(&Global_2566711, sVar0, 64);
		StringCopy(&(Global_2566711.f_16), sParam1, 16);
		Global_2566711.f_20 = iParam2;
		return;
		return;
	}
	gameplay::clear_bit(&(Global_17257.f_4922), Global_17257.f_4639);
	StringCopy(&(Global_17257.f_4641[Global_17257.f_4639 /*16*/]), sVar0, 64);
	StringCopy(&(Global_17257.f_4834[Global_17257.f_4639 /*4*/]), sParam1, 16);
	Global_17257.f_4883[Global_17257.f_4639] = iParam2;
	Global_17257.f_4896[Global_17257.f_4639] = iParam0;
	Global_17257.f_4909[Global_17257.f_4639] = 32;
	Global_17257.f_4639++;
}

void func_102(int iParam0, int iParam1)//Position - 0x6480
{
	iParam0 = iParam0;
	if (iLocal_220 == 0)
	{
		if (iLocal_4056 != iParam0)
		{
			func_120(iLocal_5638, "CM_BUTLOADSCENE", -1, iParam1);
		}
		else
		{
			func_120(iLocal_5638, "CM_BUTCNTEDIT", -1, iParam1);
			func_120(iLocal_5639, "CM_BUTRLDSCENE", -1, iParam1);
		}
		if (!iLocal_5631)
		{
			func_120(205, "CM_BUTSCENEINFO", -1, iParam1);
		}
	}
	else if (iLocal_220 == 1)
	{
		if ((iParam0 == 1 || iParam0 == 4) && iLocal_4045 == 0)
		{
		}
		else if (iParam0 == 3 && iLocal_4056 == iLocal_4055)
		{
		}
		else
		{
			func_120(iLocal_5638, "ITEM_SELECT", -1, iParam1);
		}
	}
	else if (iLocal_220 == 2)
	{
		func_120(iLocal_5638, "CM_BUTADDPROP", -1, iParam1);
		if (iLocal_3539[0] != 14)
		{
			func_103("DMPP_CHEIGHT", controls::_get_control_action_name(2, iLocal_5636, true), controls::_get_control_action_name(2, iLocal_5637, true), 0, 0);
		}
		if (!ped::is_ped_injured(player::player_ped_id()))
		{
			if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
			{
				func_103("DMPP_CPOSITION", controls::_get_control_action_name(2, iLocal_5641, true), controls::_get_control_action_name(2, iLocal_5640, true), 0, 0);
			}
		}
		func_103("DMPP_PROPROT", controls::_get_control_action_name(2, iLocal_5642, true), controls::_get_control_action_name(2, iLocal_5643, true), 0, 0);
	}
	else if (iLocal_220 == 3)
	{
		func_120(iLocal_5638, "CM_BUTEDITPROP", -1, iParam1);
		func_120(iLocal_5639, "CM_BUTDELPROP", -1, iParam1);
		if (!ped::is_ped_injured(player::player_ped_id()))
		{
			if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
			{
				func_120(204, "CM_BUTWARPTOPRP", -1, iParam1);
			}
		}
	}
}

void func_103(char* sParam0, char* sParam1, char* sParam2, char* sParam3, char* sParam4)//Position - 0x6600
{
	if (Global_17257.f_4639 >= 12)
	{
		return;
	}
	StringCopy(&(Global_17257.f_4641[Global_17257.f_4639 /*16*/]), sParam1, 64);
	StringCopy(&(Global_17257.f_4834[Global_17257.f_4639 /*4*/]), sParam0, 16);
	Global_17257.f_4639++;
	StringCopy(&(Global_17257.f_4641[Global_17257.f_4639 /*16*/]), sParam2, 64);
	StringCopy(&(Global_17257.f_4834[Global_17257.f_4639 /*4*/]), "PREV", 16);
	Global_17257.f_4639++;
	if (!gameplay::is_string_null_or_empty(sParam3))
	{
		StringCopy(&(Global_17257.f_4641[Global_17257.f_4639 /*16*/]), sParam3, 64);
		StringCopy(&(Global_17257.f_4834[Global_17257.f_4639 /*4*/]), "PREV", 16);
		Global_17257.f_4639++;
	}
	if (!gameplay::is_string_null_or_empty(sParam4))
	{
		StringCopy(&(Global_17257.f_4641[Global_17257.f_4639 /*16*/]), sParam4, 64);
		StringCopy(&(Global_17257.f_4834[Global_17257.f_4639 /*4*/]), "PREV", 16);
		Global_17257.f_4639++;
	}
}

bool func_104(int iParam0, int iParam1)//Position - 0x66F8
{
	int iVar0;
	
	if (Local_6878[iParam0 /*32*/] == 327 && Local_6878[iParam1 /*32*/] == 327)
	{
		return true;
	}
	if (Local_6878[iParam0 /*32*/] == 328 && Local_6878[iParam1 /*32*/] == 328)
	{
		return true;
	}
	if (Local_6878[iParam0 /*32*/].f_27 != Local_6878[iParam1 /*32*/].f_27)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 <= 12)
	{
		if (Local_6878[iParam0 /*32*/].f_1[iVar0] != Local_6878[iParam1 /*32*/].f_1[iVar0])
		{
			return false;
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= 10)
	{
		if (Local_6878[iParam0 /*32*/].f_15[iVar0] != Local_6878[iParam1 /*32*/].f_15[iVar0])
		{
			return false;
		}
		iVar0++;
	}
	return true;
}

bool func_105(int iParam0)//Position - 0x67C6
{
	if (iParam0 < 0)
	{
		iParam0 = 0;
	}
	if (Local_6878[iParam0 /*32*/].f_27 != entity::get_entity_model(player::player_ped_id()))
	{
		return true;
	}
	if (((((((((((((((((((((((Local_6878[iParam0 /*32*/].f_1[0] == ped::get_ped_drawable_variation(player::player_ped_id(), 0) && Local_6878[iParam0 /*32*/].f_1[1] == ped::get_ped_drawable_variation(player::player_ped_id(), 1)) && Local_6878[iParam0 /*32*/].f_1[2] == ped::get_ped_drawable_variation(player::player_ped_id(), 2)) && Local_6878[iParam0 /*32*/].f_1[3] == ped::get_ped_drawable_variation(player::player_ped_id(), 3)) && Local_6878[iParam0 /*32*/].f_1[4] == ped::get_ped_drawable_variation(player::player_ped_id(), 4)) && Local_6878[iParam0 /*32*/].f_1[5] == ped::get_ped_drawable_variation(player::player_ped_id(), 5)) && Local_6878[iParam0 /*32*/].f_1[6] == ped::get_ped_drawable_variation(player::player_ped_id(), 6)) && Local_6878[iParam0 /*32*/].f_1[7] == ped::get_ped_drawable_variation(player::player_ped_id(), 8)) && Local_6878[iParam0 /*32*/].f_1[8] == ped::get_ped_drawable_variation(player::player_ped_id(), 9)) && Local_6878[iParam0 /*32*/].f_1[9] == ped::get_ped_drawable_variation(player::player_ped_id(), 10)) && Local_6878[iParam0 /*32*/].f_1[10] == ped::get_ped_drawable_variation(player::player_ped_id(), 11)) && Local_6878[iParam0 /*32*/].f_1[11] == ped::get_ped_prop_index(player::player_ped_id(), 0)) && Local_6878[iParam0 /*32*/].f_1[12] == ped::get_ped_prop_index(player::player_ped_id(), 1)) && Local_6878[iParam0 /*32*/].f_15[0] == ped::get_ped_texture_variation(player::player_ped_id(), 0)) && Local_6878[iParam0 /*32*/].f_15[1] == ped::get_ped_texture_variation(player::player_ped_id(), 1)) && Local_6878[iParam0 /*32*/].f_15[2] == ped::get_ped_texture_variation(player::player_ped_id(), 2)) && Local_6878[iParam0 /*32*/].f_15[3] == ped::get_ped_texture_variation(player::player_ped_id(), 3)) && Local_6878[iParam0 /*32*/].f_15[4] == ped::get_ped_texture_variation(player::player_ped_id(), 4)) && Local_6878[iParam0 /*32*/].f_15[5] == ped::get_ped_texture_variation(player::player_ped_id(), 5)) && Local_6878[iParam0 /*32*/].f_15[6] == ped::get_ped_texture_variation(player::player_ped_id(), 6)) && Local_6878[iParam0 /*32*/].f_15[7] == ped::get_ped_texture_variation(player::player_ped_id(), 8)) && Local_6878[iParam0 /*32*/].f_15[8] == ped::get_ped_texture_variation(player::player_ped_id(), 9)) && Local_6878[iParam0 /*32*/].f_15[9] == ped::get_ped_texture_variation(player::player_ped_id(), 10)) && Local_6878[iParam0 /*32*/].f_15[10] == ped::get_ped_texture_variation(player::player_ped_id(), 11))
	{
		return false;
	}
	return true;
}

int func_106(int iParam0)//Position - 0x6A8A
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < Local_6878)
	{
		if (Local_6878[iVar0 /*32*/].f_27 != 0)
		{
			if (iVar0 < 10 || !func_107(iVar0))
			{
				iParam0 = (iParam0 - 1);
				if (iParam0 < 0)
				{
					return iVar0;
				}
			}
		}
		iVar0++;
	}
	return 0;
}

bool func_107(int iParam0)//Position - 0x6ADA
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		if (func_104(iParam0, iVar0))
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_108()//Position - 0x6B05
{
	if (!func_96(1))
	{
		return false;
	}
	if ((func_109(0) + func_109(1)) < 2)
	{
		return false;
	}
	if ((func_109(0) + func_109(1)) == 2 && func_107(func_106(1)))
	{
		return false;
	}
	return true;
}

int func_109(int iParam0)//Position - 0x6B50
{
	int iVar0;
	
	iVar0 = func_110(iParam0);
	if (iVar0 == -1)
	{
		iVar0 = 10;
	}
	else if (iParam0)
	{
		iVar0 = (iVar0 - 10);
	}
	return iVar0;
}

int func_110(int iParam0)//Position - 0x6B7B
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (iParam0)
	{
		iVar0 = 10;
		iVar1 = 19;
	}
	else
	{
		iVar0 = 0;
		iVar1 = 9;
	}
	iVar2 = iVar0;
	while (iVar2 <= iVar1)
	{
		if (Local_6878[iVar2 /*32*/].f_27 == 0)
		{
			return iVar2;
		}
		iVar2++;
	}
	return -1;
}

int func_111()//Position - 0x6BC1
{
	int iVar0;
	struct<67> Var1;
	
	iVar0 = 0;
	Var1.f_9 = 49;
	Var1.f_59 = 2;
	if (func_112(&Var1, 21) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 22) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 23) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 26) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 29) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 32) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 27) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 30) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 33) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 28) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 31) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 34) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 13) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 12) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 14) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 19) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 18) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 20) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 16) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 15) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	if (func_112(&Var1, 17) && Var1.f_66 != 0)
	{
		iVar0++;
	}
	return iVar0;
}

bool func_112(var uParam0, int iParam1)//Position - 0x6E2A
{
	if (iParam1 == -1)
	{
		return false;
	}
	if (!func_114(&(Global_68350.f_555[0 /*21*/]), iParam1))
	{
		return false;
	}
	else
	{
		func_113(&(Global_101186.f_18883.f_69[Global_68350.f_555[0 /*21*/].f_14 /*78*/]), uParam0);
	}
	return true;
}

void func_113(var uParam0, var uParam1)//Position - 0x6E75
{
	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;
}

int func_114(var uParam0, int iParam1)//Position - 0x6F41
{
	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_116(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_116(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_116(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_116(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_116(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_116(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_116(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_116(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_116(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_48())
			{
				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_48())
			{
				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_101186.f_18883.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_115(Global_101186.f_18883.f_1864[uParam0->f_14 /*3*/], 0f, 0f, 0f, 0))
		{
			*uParam0 = { Global_101186.f_18883.f_1864[uParam0->f_14 /*3*/] };
		}
		if (Global_101186.f_18883.f_1934[uParam0->f_14] != -1f)
		{
			uParam0->f_3 = Global_101186.f_18883.f_1934[uParam0->f_14];
		}
	}
	if (gameplay::is_bit_set(uParam0->f_9, 19))
	{
		if (!func_115(Global_101186.f_1902.f_539.f_2816[1 /*10*/][uParam0->f_12 /*3*/], 0f, 0f, 0f, 0))
		{
			*uParam0 = { Global_101186.f_1902.f_539.f_2816[1 /*10*/][uParam0->f_12 /*3*/] };
			uParam0->f_3 = Global_101186.f_1902.f_539.f_2837[1 /*4*/][uParam0->f_12];
		}
	}
	else if (gameplay::is_bit_set(uParam0->f_9, 20))
	{
		if (!func_115(Global_101186.f_1902.f_539.f_2816[0 /*10*/][uParam0->f_12 /*3*/], 0f, 0f, 0f, 0))
		{
			*uParam0 = { Global_101186.f_1902.f_539.f_2816[0 /*10*/][uParam0->f_12 /*3*/] };
			uParam0->f_3 = Global_101186.f_1902.f_539.f_2837[0 /*4*/][uParam0->f_12];
		}
	}
	return iVar0;
}

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

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

void func_117(int iParam0, var uParam1, int iParam2)//Position - 0x86C3
{
	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_101186.f_7851.f_99.f_58[128] && !Global_101186.f_7851.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_101186.f_7851.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_101186.f_7851.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_118(int iParam0, char* sParam1, int iParam2)//Position - 0x891F
{
	char* sVar0;
	
	sVar0 = controls::_0x80C2FD58D720C801(2, iParam0, true);
	if (Global_17257.f_4639 >= 12)
	{
		StringCopy(&Global_2566711, sVar0, 64);
		StringCopy(&(Global_2566711.f_16), sParam1, 16);
		Global_2566711.f_20 = iParam2;
		return;
		return;
	}
	gameplay::clear_bit(&(Global_17257.f_4922), Global_17257.f_4639);
	StringCopy(&(Global_17257.f_4641[Global_17257.f_4639 /*16*/]), sVar0, 64);
	StringCopy(&(Global_17257.f_4834[Global_17257.f_4639 /*4*/]), sParam1, 16);
	Global_17257.f_4883[Global_17257.f_4639] = iParam2;
	Global_17257.f_4896[Global_17257.f_4639] = 345;
	Global_17257.f_4909[Global_17257.f_4639] = iParam0;
	Global_17257.f_4639++;
}

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

void func_120(int iParam0, char* sParam1, int iParam2, int iParam3)//Position - 0x89E2
{
	char* sVar0;
	
	sVar0 = controls::_get_control_action_name(2, iParam0, true);
	if (Global_17257.f_4639 >= 12)
	{
		StringCopy(&Global_2566711, sVar0, 64);
		StringCopy(&(Global_2566711.f_16), sParam1, 16);
		Global_2566711.f_20 = iParam2;
		return;
		return;
	}
	if (!iParam3)
	{
		gameplay::set_bit(&(Global_17257.f_4922), Global_17257.f_4639);
	}
	StringCopy(&(Global_17257.f_4641[Global_17257.f_4639 /*16*/]), sVar0, 64);
	StringCopy(&(Global_17257.f_4834[Global_17257.f_4639 /*4*/]), sParam1, 16);
	Global_17257.f_4883[Global_17257.f_4639] = iParam2;
	Global_17257.f_4896[Global_17257.f_4639] = iParam0;
	Global_17257.f_4909[Global_17257.f_4639] = 32;
	Global_17257.f_4639++;
}

void func_121(char* sParam0, int iParam1, int iParam2)//Position - 0x8A97
{
	int iVar0;
	
	StringCopy(&(Global_17257.f_4562), sParam0, 16);
	Global_17257.f_4632 = 0;
	Global_17257.f_4633 = 0;
	Global_17257.f_4634 = 0;
	Global_17257.f_4635 = 0;
	Global_17257.f_4636 = iParam1;
	Global_17257.f_4637 = gameplay::get_game_timer();
	Global_17257.f_4638 = iParam2;
	iVar0 = 0;
	while (iVar0 < 4)
	{
		Global_17257.f_4566[iVar0] = 0;
		iVar0++;
	}
}

void func_122(int iParam0, int iParam1, int iParam2)//Position - 0x8AFC
{
	int iVar0;
	int iVar1;
	
	Global_17257.f_5606 = iParam0;
	Global_17257.f_5741 = iParam2;
	if (Global_17257.f_5606 < Global_17257.f_5605)
	{
		Global_17257.f_5605 = Global_17257.f_5606;
	}
	else if ((Global_17257.f_5599 && Global_17257.f_5606 > Global_17257.f_5607) || (!Global_17257.f_5599 && Global_17257.f_5606 >= (Global_17257.f_5605 + Global_17257.f_5095)))
	{
		iVar0 = Global_17257.f_5605;
		while (iVar0 <= Global_17257.f_5606)
		{
			if (iVar0 >= 0 && iVar0 < 127)
			{
				if (Global_17257.f_4959[iVar0] != 0)
				{
					iVar1++;
				}
			}
			iVar0++;
		}
		while (iVar1 > Global_17257.f_5095 && Global_17257.f_5605 < 128)
		{
			Global_17257.f_5605++;
			iVar1 = 0;
			iVar0 = Global_17257.f_5605;
			while (iVar0 <= Global_17257.f_5606)
			{
				if (iVar0 >= 0 && iVar0 < 127)
				{
					if (Global_17257.f_4959[iVar0] != 0)
					{
						iVar1++;
					}
				}
				iVar0++;
			}
		}
	}
	Global_17257.f_5598 = 0;
	Global_17257.f_5599 = 0;
	if (iParam1)
	{
		StringCopy(&(Global_17257.f_4562), "", 16);
		StringCopy(&(Global_2566711.f_21), "", 16);
	}
}

void func_123()//Position - 0x8C4E
{
	struct<4> Var0;
	struct<2> Var4;
	int iVar8;
	int iVar9;
	
	iVar8 = 0;
	func_168(1, 1, 4, 0, 0);
	func_167(1, 2, 2, 1, 1);
	if (iLocal_220 != 0)
	{
		StringCopy(&Var4, "CM_PROPEDSC", 16);
		StringIntConCat(&Var4, iLocal_4056 + 1, 16);
		func_147(&Var4);
	}
	switch (iLocal_220)
	{
		case 0:
			func_147("CM_PROPEDCH");
			iVar8 = 0;
			while (iVar8 < 4)
			{
				StringCopy(&Var4, "CM_PROPEDSC", 16);
				StringIntConCat(&Var4, iVar8 + 1, 16);
				func_143(iVar8, &Var4, 0, 1, 0, 0);
				if (iVar8 == iLocal_4056)
				{
					if (iLocal_5552)
					{
						func_142(iLocal_4056, 28, 0);
					}
					else
					{
						func_142(iLocal_4056, 5, 0);
					}
				}
				iVar8++;
			}
			break;
		
		case 1:
			func_147(&Var4);
			func_143(0, "CM_PROPPLACE", 0, 1, 0, 0);
			func_143(1, "CM_PROPLIST", 0, func_141() > 0, 0, 0);
			func_143(2, "CM_BUTSAVESCENE", 0, 1, 0, 0);
			if (iLocal_5552)
			{
				func_142(2, 28, 0);
			}
			func_143(3, "CM_BUTOVRWSCENE", 0, 1, 0, 0);
			func_143(3, "DMPP_PROPLIST", 1, iLocal_4056 != iLocal_4055, 0, 0);
			func_130(iLocal_4055 + 1, 0);
			if (func_141() > 0)
			{
				func_143(4, "CM_BUTCLRSCENE", 0, 1, 0, 0);
			}
			else
			{
				func_143(4, "CM_BUTCLRSCENE", 0, 0, 0, 0);
			}
			break;
		
		case 2:
			func_147(&Var4);
			func_143(0, "DMPP_CATG", 0, 1, 0, 0);
			func_143(0, &(Local_222[iLocal_3539[0] /*4*/]), 0, 1, 0, 0);
			func_143(1, "DMPP_TYPE", 0, 1, 0, 0);
			Var0 = { func_128(iLocal_3539[0], iLocal_3539[1]) };
			func_143(1, &Var0, 0, 1, 0, 0);
			break;
		
		case 3:
			func_147(&Var4);
			iVar9 = func_141();
			iVar8 = 0;
			while (iVar8 < iVar9)
			{
				func_143(iVar8, func_124(iVar8), 0, 1, 0, 0);
				iVar8++;
			}
			break;
	}
}

char* func_124(int iParam0)//Position - 0x8E1D
{
	struct<10> Var0;
	
	Var0 = { func_126(iParam0) };
	if (entity::does_entity_exist(Var0.f_8) || Var0.f_7 != 0)
	{
		return func_125(Var0.f_7);
	}
	return "ERROR";
}

char* func_125(int iParam0)//Position - 0x8E56
{
	char* sVar0;
	int iVar1;
	
	sVar0 = "";
	iVar1 = 0;
	while (iVar1 <= 230)
	{
		if (Local_304[iVar1 /*14*/].f_5 == iParam0)
		{
			sVar0 = unk_0x98C3CF913D895111(&(Local_304[iVar1 /*14*/]), ui::get_length_of_literal_string(&(Local_304[iVar1 /*14*/])));
			return sVar0;
		}
		iVar1++;
	}
	return "";
}

struct<10> func_126(int iParam0)//Position - 0x8EA6
{
	int iVar0;
	
	iVar0 = func_127(iParam0);
	if (iVar0 >= 0)
	{
		return Local_3544[iVar0 /*10*/];
	}
	return Local_3544[0 /*10*/];
}

int func_127(int iParam0)//Position - 0x8ED2
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 50)
	{
		if (entity::does_entity_exist(Local_3544[iVar0 /*10*/].f_8) || Local_3544[iVar0 /*10*/].f_7 != 0)
		{
			if (iParam0 == 0)
			{
				return iVar0;
			}
			else
			{
				iParam0 = (iParam0 - 1);
			}
		}
		iVar0++;
	}
	return -1;
}

struct<4> func_128(int iParam0, int iParam1)//Position - 0x8F26
{
	struct<4> Var0;
	int iVar4;
	struct<4> Var5;
	
	if (iLocal_5613 == 1)
	{
		Var0 = { Local_304[iLocal_3542 /*14*/] };
		return Var0;
	}
	iVar4 = 0;
	StringCopy(&Var5, "", 16);
	while (iParam1 >= 0)
	{
		if (Local_304[iVar4 /*14*/].f_4 == iParam0)
		{
			iParam1 = (iParam1 - 1);
			if (iParam1 < 0)
			{
				iLocal_3542 = iVar4;
				if (Local_304[iVar4 /*14*/].f_6)
				{
					if (iLocal_4045 == 50)
					{
						func_129(1, 6, 6, 1);
					}
					else
					{
						func_129(1, 11, 9, 1);
					}
				}
				else if (iLocal_4046 == 25 || iLocal_4045 == 50)
				{
					func_129(1, 6, 6, 1);
				}
				else
				{
					func_129(1, 20, 18, 1);
				}
				Var5 = { Local_304[iVar4 /*14*/] };
				return Var5;
			}
		}
		iVar4++;
		if (iVar4 >= 231)
		{
			iVar4 = 0;
		}
	}
	return Var5;
}

void func_129(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x8FF9
{
	Global_17257.f_7890 = iParam3;
	Global_17257.f_7887[0] = iParam1;
	Global_17257.f_7887[1] = iParam2;
	Global_17257.f_7891 = iParam0;
}

void func_130(int iParam0, int iParam1)//Position - 0x9027
{
	float fVar0;
	float fVar1;
	var uVar2;
	float fVar3;
	
	if (Global_17257.f_5092 >= 256)
	{
		return;
	}
	if (Global_17257.f_5610 >= 4)
	{
		return;
	}
	if (Global_17257.f_5611 != 1)
	{
		return;
	}
	if (Global_17257.f_5610 >= Global_17257.f_5608)
	{
		return;
	}
	Global_17257.f_3918[Global_17257.f_5092] = iParam0;
	Global_17257.f_5092++;
	Global_17257.f_2124[Global_17257.f_5609 /*5*/][Global_17257.f_5610] = 2;
	Global_17257.f_5610++;
	if (Global_17257.f_5610 >= Global_17257.f_5608)
	{
		fVar0 = func_138();
		if (Global_17257.f_4945[Global_17257.f_5089] && Global_17257.f_5610 == Global_17257.f_5608)
		{
			func_132(26, 1, 0, &fVar1, &uVar2, 0);
			fVar0 = (fVar0 + (fVar1 * 2f));
		}
		if (fVar0 > Global_17257.f_4938[(Global_17257.f_5089 - 1)])
		{
			Global_17257.f_4938[(Global_17257.f_5089 - 1)] = fVar0;
		}
	}
	if (iParam1)
	{
		if (Global_17257.f_5610 >= Global_17257.f_5608)
		{
			fVar3 = func_131();
			if (fVar3 > Global_17257.f_5612[Global_17257.f_5088])
			{
				Global_17257.f_5612[Global_17257.f_5088] = fVar3;
			}
		}
	}
}

float func_131()//Position - 0x9162
{
	int iVar0;
	int iVar1;
	float fVar2;
	var uVar3;
	float fVar4;
	
	iVar0 = 0;
	while (iVar0 < Global_17257.f_5610)
	{
		if (Global_17257.f_2124[Global_17257.f_5609 /*5*/][iVar0] == 4)
		{
			iVar1++;
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < iVar1)
	{
		if (Global_17257.f_4433[((Global_17257.f_5094 - iVar1) + iVar0)] != 0)
		{
			if (func_132(Global_17257.f_4433[((Global_17257.f_5094 - iVar1) + iVar0)], 1, 0, &uVar3, &fVar4, 0))
			{
				if (fVar4 > fVar2)
				{
					fVar2 = fVar4;
				}
			}
		}
		iVar0++;
	}
	if (fVar2 > ui::_get_text_scale_height(0.35f, 0))
	{
		return fVar2;
	}
	return ui::_get_text_scale_height(0.35f, 0);
}

bool func_132(int iParam0, int iParam1, int iParam2, float fParam3, float fParam4, int iParam5)//Position - 0x9215
{
	char* sVar0;
	char* sVar1;
	int iVar2;
	int iVar3;
	float fVar4;
	float fVar5;
	float fVar6;
	vector3 vVar7;
	
	sVar0 = func_137(iParam0);
	sVar1 = func_135(iParam0, iParam1);
	if (gameplay::get_hash_key(sVar1) != 0)
	{
		fVar4 = 1f;
		if (iParam5)
		{
			graphics::_get_screen_active_resolution(&iVar2, &iVar3);
			fVar5 = graphics::_get_screen_aspect_ratio(0);
			if (func_134())
			{
				iVar2 = system::round((system::to_float(iVar3) * fVar5));
			}
			fVar6 = (system::to_float(iVar2) / system::to_float(iVar3));
			fVar4 = (fVar6 / fVar5);
			if (func_134())
			{
				fVar4 = 1f;
			}
			if (script::_get_number_of_instances_of_streamed_script(joaat("director_mode")) > 0)
			{
				graphics::get_screen_resolution(&iVar2, &iVar3);
			}
			iVar2 = system::round((system::to_float(iVar2) / fVar4));
			iVar3 = system::round((system::to_float(iVar3) / fVar4));
		}
		else
		{
			graphics::get_screen_resolution(&iVar2, &iVar3);
		}
		vVar7 = { graphics::get_texture_resolution(sVar0, sVar1) };
		vVar7.x = (vVar7.x * (func_133(iParam0) / fVar4));
		vVar7.y = (vVar7.y * (func_133(iParam0) / fVar4));
		if (!iParam2)
		{
			vVar7.x = (vVar7.x - 2f);
			vVar7.y = (vVar7.y - 2f);
		}
		if (iParam0 == 30)
		{
			vVar7.x = 288f;
			vVar7.y = 106f;
		}
		*fParam3 = ((vVar7.x / IntToFloat(iVar2)) * IntToFloat((iVar2 / iVar3)));
		*fParam4 = (((vVar7.y / IntToFloat(iVar3)) / (vVar7.x / IntToFloat(iVar2))) * *fParam3);
		if (!iParam5)
		{
			if (!graphics::get_is_widescreen() && iParam0 != 30)
			{
				*fParam3 = (*fParam3 * 1.33f);
			}
		}
		if (iParam0 == 29)
		{
			if (*fParam3 > Global_17256)
			{
				*fParam4 = (*fParam4 * (Global_17256 / *fParam3));
				*fParam3 = Global_17256;
			}
		}
		return true;
	}
	return false;
}

float func_133(int iParam0)//Position - 0x9391
{
	switch (iParam0)
	{
		case 33:
		case 4:
		case 11:
		case 31:
		case 20:
		case 15:
		case 10:
		case 12:
		case 13:
		case 32:
		case 9:
		case 5:
		case 6:
		case 7:
		case 14:
		case 18:
		case 19:
		case 17:
		case 28:
		case 26:
		case 27:
		case 49:
			return 0.5f;
			break;
	}
	return 1f;
}

bool func_134()//Position - 0x9430
{
	int iVar0;
	int iVar1;
	float fVar2;
	
	graphics::_get_screen_active_resolution(&iVar0, &iVar1);
	fVar2 = (system::to_float(iVar0) / system::to_float(iVar1));
	if (fVar2 > 3.5f)
	{
		return true;
	}
	return false;
}

var func_135(int iParam0, int iParam1)//Position - 0x9462
{
	char* sVar0[2];
	
	if (!gameplay::is_string_null_or_empty(&(Global_17257.f_6703[iParam0 /*16*/])))
	{
		return func_136(&(Global_17257.f_6703[iParam0 /*16*/]));
	}
	switch (iParam0)
	{
		case 3:
			sVar0[0] = "MP_hostCrown";
			sVar0[1] = "MP_hostCrown";
			break;
		
		case 21:
			sVar0[0] = "MP_SpecItem_Coke";
			sVar0[1] = "MP_SpecItem_Coke";
			break;
		
		case 22:
			sVar0[0] = "MP_SpecItem_Heroin";
			sVar0[1] = "MP_SpecItem_Heroin";
			break;
		
		case 23:
			sVar0[0] = "MP_SpecItem_Weed";
			sVar0[1] = "MP_SpecItem_Weed";
			break;
		
		case 24:
			sVar0[0] = "MP_SpecItem_Meth";
			sVar0[1] = "MP_SpecItem_Meth";
			break;
		
		case 25:
			sVar0[0] = "MP_SpecItem_Cash";
			sVar0[1] = "MP_SpecItem_Cash";
			break;
		
		case 1:
			sVar0[0] = "shop_NEW_Star";
			sVar0[1] = "shop_NEW_Star";
			break;
		
		case 2:
			sVar0[0] = "shop_NEW_Star";
			sVar0[1] = "shop_NEW_Star";
			break;
		
		case 4:
			sVar0[0] = "Shop_Tick_Icon";
			sVar0[1] = "Shop_Tick_Icon";
			break;
		
		case 6:
			sVar0[0] = "Shop_Box_CrossB";
			sVar0[1] = "Shop_Box_Cross";
			break;
		
		case 7:
			sVar0[0] = "Shop_Box_BlankB";
			sVar0[1] = "Shop_Box_Blank";
			break;
		
		case 5:
			sVar0[0] = "Shop_Box_TickB";
			sVar0[1] = "Shop_Box_Tick";
			break;
		
		case 8:
			sVar0[0] = "shop_NEW_Star";
			sVar0[1] = "shop_NEW_Star";
			break;
		
		case 9:
			sVar0[0] = "Shop_Clothing_Icon_B";
			sVar0[1] = "Shop_Clothing_Icon_A";
			break;
		
		case 10:
			sVar0[0] = "Shop_GunClub_Icon_B";
			sVar0[1] = "Shop_GunClub_Icon_A";
			break;
		
		case 17:
			sVar0[0] = "Shop_Ammo_Icon_B";
			sVar0[1] = "Shop_Ammo_Icon_A";
			break;
		
		case 18:
			sVar0[0] = "Shop_Armour_Icon_B";
			sVar0[1] = "Shop_Armour_Icon_A";
			break;
		
		case 19:
			sVar0[0] = "Shop_Health_Icon_B";
			sVar0[1] = "Shop_Health_Icon_A";
			break;
		
		case 20:
			sVar0[0] = "Shop_MakeUp_Icon_B";
			sVar0[1] = "Shop_MakeUp_Icon_A";
			break;
		
		case 11:
			sVar0[0] = "Shop_Tattoos_Icon_B";
			sVar0[1] = "Shop_Tattoos_Icon_A";
			break;
		
		case 12:
			sVar0[0] = "Shop_Garage_Icon_B";
			sVar0[1] = "Shop_Garage_Icon_A";
			break;
		
		case 13:
			sVar0[0] = "Shop_Garage_Bike_Icon_B";
			sVar0[1] = "Shop_Garage_Bike_Icon_A";
			break;
		
		case 14:
			sVar0[0] = "Shop_Barber_Icon_B";
			sVar0[1] = "Shop_Barber_Icon_A";
			break;
		
		case 15:
			sVar0[0] = "shop_Lock";
			sVar0[1] = "shop_Lock";
			break;
		
		case 16:
			sVar0[0] = "Shop_Tick_Icon";
			sVar0[1] = "Shop_Tick_Icon";
			break;
		
		case 26:
			sVar0[0] = "arrowleft";
			sVar0[1] = "arrowleft";
			break;
		
		case 27:
			sVar0[0] = "arrowright";
			sVar0[1] = "arrowright";
			break;
		
		case 28:
			sVar0[0] = "MP_AlertTriangle";
			sVar0[1] = "MP_AlertTriangle";
			break;
		
		case 29:
			sVar0[0] = "shop_NEW_Star";
			sVar0[1] = "shop_NEW_Star";
			break;
		
		case 31:
			sVar0[0] = "Shop_Michael_Icon_B";
			sVar0[1] = "Shop_Michael_Icon_A";
			break;
		
		case 32:
			sVar0[0] = "Shop_Franklin_Icon_B";
			sVar0[1] = "Shop_Franklin_Icon_A";
			break;
		
		case 33:
			sVar0[0] = "Shop_Trevor_Icon_B";
			sVar0[1] = "Shop_Trevor_Icon_A";
			break;
		
		case 48:
			sVar0[0] = "SaleIcon";
			sVar0[1] = "SaleIcon";
			break;
		
		case 49:
			sVar0[0] = "Shop_Tick_Icon";
			sVar0[1] = "Shop_Tick_Icon";
			break;
		
		case 0:
			sVar0[0] = "";
			sVar0[1] = "";
			break;
	}
	if (iParam1)
	{
		return sVar0[0];
	}
	return sVar0[1];
}

var func_136(var uParam0)//Position - 0x985F
{
	return uParam0;
}

char* func_137(int iParam0)//Position - 0x9869
{
	if (!gameplay::is_string_null_or_empty(&(Global_17257.f_5886[iParam0 /*16*/])))
	{
		return func_136(&(Global_17257.f_5886[iParam0 /*16*/]));
	}
	if (iParam0 == 48)
	{
		return "MPShopSale";
	}
	return "CommonMenu";
}

float func_138()//Position - 0x98A6
{
	float fVar0;
	float fVar1;
	var uVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	
	iVar7 = 0;
	while (iVar7 < Global_17257.f_5610)
	{
		if (Global_17257.f_2124[Global_17257.f_5609 /*5*/][iVar7] == 1)
		{
		}
		else if (Global_17257.f_2124[Global_17257.f_5609 /*5*/][iVar7] == 8)
		{
		}
		else if (Global_17257.f_2124[Global_17257.f_5609 /*5*/][iVar7] == 2)
		{
			iVar3++;
		}
		else if (Global_17257.f_2124[Global_17257.f_5609 /*5*/][iVar7] == 3)
		{
			iVar4++;
		}
		else if (Global_17257.f_2124[Global_17257.f_5609 /*5*/][iVar7] == 4)
		{
			iVar5++;
		}
		else if (Global_17257.f_2124[Global_17257.f_5609 /*5*/][iVar7] == 5)
		{
			iVar6++;
		}
		else if (Global_17257.f_2124[Global_17257.f_5609 /*5*/][iVar7] == 6)
		{
			iVar6++;
		}
		else if (Global_17257.f_2124[Global_17257.f_5609 /*5*/][iVar7] == 7)
		{
			iVar6++;
		}
		iVar7++;
	}
	func_139(0, 1, 0, 0, 0, iVar6 > 0);
	if (gameplay::get_hash_key(&(Global_17257.f_73[Global_17257.f_5609 /*6*/])) != 0)
	{
		ui::_set_text_entry_for_width(&(Global_17257.f_73[Global_17257.f_5609 /*6*/]));
	}
	iVar7 = 0;
	while (iVar7 < Global_17257.f_5610)
	{
		if (Global_17257.f_2124[Global_17257.f_5609 /*5*/][iVar7] == 1)
		{
			iVar8++;
			if (gameplay::get_hash_key(&(Global_17257.f_73[Global_17257.f_5609 /*6*/])) != 0)
			{
				ui::_add_text_component_item_string(&(Global_17257.f_73[(Global_17257.f_5609 + iVar8) /*6*/]));
			}
		}
		else if (Global_17257.f_2124[Global_17257.f_5609 /*5*/][iVar7] == 8)
		{
			iVar8++;
			if (gameplay::get_hash_key(&(Global_17257.f_73[Global_17257.f_5609 /*6*/])) != 0)
			{
				ui::_add_text_component_item_string(&(Global_17257.f_73[(Global_17257.f_5609 + iVar8) /*6*/]));
			}
		}
		else if (Global_17257.f_2124[Global_17257.f_5609 /*5*/][iVar7] == 2)
		{
			if (gameplay::get_hash_key(&(Global_17257.f_73[Global_17257.f_5609 /*6*/])) != 0)
			{
				ui::add_text_component_integer(Global_17257.f_3918[((Global_17257.f_5092 - iVar3) + iVar9)]);
			}
			iVar9++;
		}
		else if (Global_17257.f_2124[Global_17257.f_5609 /*5*/][iVar7] == 3)
		{
			if (gameplay::get_hash_key(&(Global_17257.f_73[Global_17257.f_5609 /*6*/])) != 0)
			{
				ui::add_text_component_float(Global_17257.f_4175[((Global_17257.f_5093 - iVar4) + iVar10)], Global_17257.f_4304[((Global_17257.f_5093 - iVar4) + iVar10)]);
			}
			iVar10++;
		}
		else if (Global_17257.f_2124[Global_17257.f_5609 /*5*/][iVar7] == 5)
		{
			if (gameplay::get_hash_key(&(Global_17257.f_73[Global_17257.f_5609 /*6*/])) != 0)
			{
				ui::add_text_component_substring_player_name(&(Global_2444596[((Global_17257.f_5091 - iVar6) + iVar11) /*16*/]));
			}
			iVar11++;
		}
		else if (Global_17257.f_2124[Global_17257.f_5609 /*5*/][iVar7] == 6)
		{
			if (gameplay::get_hash_key(&(Global_17257.f_73[Global_17257.f_5609 /*6*/])) != 0)
			{
				ui::_add_text_component_item_string(&(Global_2444596[((Global_17257.f_5091 - iVar6) + iVar11) /*16*/]));
			}
			iVar11++;
		}
		else if (Global_17257.f_2124[Global_17257.f_5609 /*5*/][iVar7] == 7)
		{
			if (gameplay::get_hash_key(&(Global_17257.f_73[Global_17257.f_5609 /*6*/])) != 0)
			{
				ui::add_text_component_substring_player_name(&(Global_2444596[((Global_17257.f_5091 - iVar6) + iVar11) /*16*/]));
			}
			iVar11++;
		}
		iVar7++;
	}
	if (gameplay::get_hash_key(&(Global_17257.f_73[Global_17257.f_5609 /*6*/])) != 0)
	{
		fVar0 = ui::_get_text_screen_width(1);
	}
	iVar7 = 0;
	while (iVar7 < iVar5)
	{
		if (Global_17257.f_4433[((Global_17257.f_5094 - iVar5) + iVar7)] != 0)
		{
			func_132(Global_17257.f_4433[((Global_17257.f_5094 - iVar5) + iVar7)], 1, 0, &fVar1, &uVar2, 0);
			fVar0 = (fVar0 + fVar1);
		}
		iVar7++;
	}
	return fVar0;
}

void func_139(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0x9C81
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	if (iParam2)
	{
		if (iParam3)
		{
			func_140(Global_17257.f_5878[iParam4], &iVar0, &iVar1, &iVar2);
			if ((iVar0 < 20 && iVar1 < 20) && iVar2 < 20)
			{
				if (iParam0 == 0)
				{
					ui::get_hud_colour(1, &iVar0, &iVar1, &iVar2, &iVar3);
				}
			}
			else if ((iVar0 > 230 && iVar1 > 230) && iVar2 > 230)
			{
				if (iParam0)
				{
					iVar0 = 0;
					iVar1 = 0;
					iVar2 = 0;
				}
			}
			ui::set_text_colour(iVar0, iVar1, iVar2, 255);
		}
		else if (iParam1)
		{
			if (iParam0)
			{
				ui::get_hud_colour(14, &iVar0, &iVar1, &iVar2, &iVar3);
				ui::set_text_colour(iVar0, iVar1, iVar2, 255);
			}
			else
			{
				ui::get_hud_colour(12, &iVar0, &iVar1, &iVar2, &iVar3);
				ui::set_text_colour(iVar0, iVar1, iVar2, 255);
			}
		}
		else if (iParam0)
		{
			ui::set_text_colour(155, 155, 155, 255);
		}
		else
		{
			ui::set_text_colour(155, 155, 155, 255);
		}
	}
	else if (iParam1)
	{
		if (iParam0)
		{
			ui::set_text_colour(0, 0, 0, system::floor((255f * 0.8f)));
		}
		else
		{
			ui::get_hud_colour(1, &iVar0, &iVar1, &iVar2, &iVar3);
			ui::set_text_colour(iVar0, iVar1, iVar2, iVar3);
		}
	}
	else if (iParam0)
	{
		ui::set_text_colour(155, 155, 155, 255);
	}
	else
	{
		ui::set_text_colour(155, 155, 155, 255);
	}
	ui::set_text_scale(0f, 0.35f);
	ui::set_text_justification(1);
	if (iParam5)
	{
		ui::set_text_scale(0f, 0.425f);
		ui::set_text_font(4);
	}
	else
	{
		ui::set_text_font(0);
	}
	ui::set_text_wrap(0f, 1f);
	ui::set_text_centre(0);
	ui::set_text_dropshadow(0, 0, 0, 0, 0);
	ui::set_text_edge(0, 0, 0, 0, 0);
}

void func_140(int iParam0, var uParam1, var uParam2, var uParam3)//Position - 0x9E18
{
	switch (iParam0)
	{
		case 0:
			*uParam1 = 8;
			*uParam2 = 8;
			*uParam3 = 8;
			break;
		
		case 1:
			*uParam1 = 37;
			*uParam2 = 37;
			*uParam3 = 39;
			break;
		
		case 22:
			*uParam1 = 140;
			*uParam2 = 146;
			*uParam3 = 154;
			break;
		
		case 23:
			*uParam1 = 91;
			*uParam2 = 93;
			*uParam3 = 94;
			break;
		
		case 6:
			*uParam1 = 81;
			*uParam2 = 84;
			*uParam3 = 89;
			break;
		
		case 111:
			*uParam1 = 240;
			*uParam2 = 240;
			*uParam3 = 240;
			break;
		
		case 28:
			*uParam1 = 150;
			*uParam2 = 8;
			*uParam3 = 0;
			break;
		
		case 34:
			*uParam1 = 38;
			*uParam2 = 3;
			*uParam3 = 6;
			break;
		
		case 88:
			*uParam1 = 245;
			*uParam2 = 137;
			*uParam3 = 15;
			break;
		
		case 45:
			*uParam1 = 74;
			*uParam2 = 22;
			*uParam3 = 7;
			break;
		
		case 56:
			*uParam1 = 45;
			*uParam2 = 58;
			*uParam3 = 53;
			break;
		
		case 58:
			*uParam1 = 71;
			*uParam2 = 120;
			*uParam3 = 60;
			break;
		
		case 54:
			*uParam1 = 77;
			*uParam2 = 98;
			*uParam3 = 104;
			break;
		
		case 73:
			*uParam1 = 14;
			*uParam2 = 49;
			*uParam3 = 109;
			break;
		
		case 68:
			*uParam1 = 22;
			*uParam2 = 34;
			*uParam3 = 72;
			break;
		
		case 140:
			*uParam1 = 0;
			*uParam2 = 174;
			*uParam3 = 239;
			break;
		
		case 131:
			*uParam1 = 255;
			*uParam2 = 183;
			*uParam3 = 0;
			break;
		
		case 90:
			*uParam1 = 142;
			*uParam2 = 140;
			*uParam3 = 70;
			break;
		
		case 97:
			*uParam1 = 156;
			*uParam2 = 141;
			*uParam3 = 113;
			break;
		
		case 89:
			*uParam1 = 145;
			*uParam2 = 115;
			*uParam3 = 71;
			break;
		
		case 105:
			*uParam1 = 98;
			*uParam2 = 68;
			*uParam3 = 40;
			break;
		
		case 100:
			*uParam1 = 124;
			*uParam2 = 27;
			*uParam3 = 68;
			break;
		
		case 99:
			*uParam1 = 114;
			*uParam2 = 42;
			*uParam3 = 63;
			break;
		
		case 136:
			*uParam1 = 246;
			*uParam2 = 151;
			*uParam3 = 153;
			break;
		
		case 49:
			*uParam1 = 32;
			*uParam2 = 32;
			*uParam3 = 44;
			break;
		
		case 146:
			*uParam1 = 26;
			*uParam2 = 1;
			*uParam3 = 23;
			break;
		
		default:
			*uParam1 = 255;
			*uParam2 = 255;
			*uParam3 = 255;
			break;
	}
}

int func_141()//Position - 0xA0A2
{
	return iLocal_4045;
}

void func_142(int iParam0, int iParam1, int iParam2)//Position - 0xA0AD
{
	int iVar0;
	float fVar1;
	float fVar2;
	float fVar3;
	float fVar4;
	
	if (Global_17257.f_5088 > iParam0)
	{
		return;
	}
	if (Global_17257.f_5088 >= 128)
	{
		return;
	}
	if (Global_17257.f_5094 >= 128)
	{
		return;
	}
	if (Global_17257.f_5610 < Global_17257.f_5608)
	{
		return;
	}
	if (Global_17257.f_5088 != iParam0)
	{
		Global_17257.f_5088 = iParam0;
		Global_17257.f_5089 = 0;
	}
	iVar0 = Global_17257.f_4926[Global_17257.f_5089];
	if (iVar0 != 4)
	{
		while (Global_17257.f_5089 < 4 && iVar0 != 4)
		{
			Global_17257.f_5089++;
			iVar0 = Global_17257.f_4926[Global_17257.f_5089];
		}
		if (iVar0 != 4)
		{
			return;
		}
	}
	Global_17257.f_4433[Global_17257.f_5094] = iParam1;
	Global_17257.f_5094++;
	if (iParam1 != 0)
	{
		func_132(iParam1, 1, 0, &fVar1, &fVar2, 0);
		if (Global_17257.f_4945[Global_17257.f_5089])
		{
			func_132(26, 1, 0, &fVar3, &fVar4, 0);
			fVar1 = (fVar1 + (fVar3 * 2f));
		}
		if (fVar1 > Global_17257.f_4938[Global_17257.f_5089])
		{
			Global_17257.f_4938[Global_17257.f_5089] = fVar1;
		}
		if (iParam2)
		{
			if (fVar2 > Global_17257.f_5612[iParam0])
			{
				Global_17257.f_5612[iParam0] = fVar2;
			}
		}
	}
	gameplay::set_bit(&(Global_17257.f_4959[iParam0]), Global_17257.f_5089);
	Global_17257.f_5089++;
	Global_17257.f_5611 = 4;
}

void func_143(int iParam0, char* sParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0xA227
{
	int iVar0;
	float fVar1;
	float fVar2;
	var uVar3;
	float fVar4;
	
	if (Global_17257.f_5088 > iParam0)
	{
		return;
	}
	if (Global_17257.f_5088 >= 128)
	{
		return;
	}
	if (Global_17257.f_5090 >= 256)
	{
		return;
	}
	if (Global_17257.f_5610 < Global_17257.f_5608)
	{
		return;
	}
	if (Global_17257.f_5088 != iParam0)
	{
		Global_17257.f_5088 = iParam0;
		Global_17257.f_5089 = 0;
	}
	iVar0 = Global_17257.f_4926[Global_17257.f_5089];
	if (iVar0 != 1)
	{
		while (Global_17257.f_5089 < 4 && iVar0 != 1)
		{
			Global_17257.f_5089++;
			iVar0 = Global_17257.f_4926[Global_17257.f_5089];
		}
		if (iVar0 != 1)
		{
			return;
		}
	}
	StringCopy(&(Global_17257.f_73[Global_17257.f_5090 /*6*/]), sParam1, 24);
	if (!gameplay::is_string_null_or_empty(sParam1) && !ui::does_text_label_exist(sParam1))
	{
	}
	Global_17257.f_1610[Global_17257.f_5090] = iParam3;
	Global_17257.f_1867[Global_17257.f_5090] = iParam4;
	Global_17257.f_5090++;
	if (!iParam3)
	{
		func_146(Global_17257.f_5088, 1);
	}
	else
	{
		func_146(Global_17257.f_5088, 0);
	}
	if (iParam2 == 0)
	{
		fVar1 = func_145(&(Global_17257.f_73[Global_17257.f_5090 /*6*/]));
		if (Global_17257.f_4945[Global_17257.f_5089])
		{
			func_132(26, 1, 0, &fVar2, &uVar3, 0);
			fVar1 = (fVar1 + (fVar2 * 2f));
		}
		if (fVar1 > Global_17257.f_4938[Global_17257.f_5089])
		{
			Global_17257.f_4938[Global_17257.f_5089] = fVar1;
		}
	}
	if (iParam5)
	{
		if (iParam2 == 0)
		{
			fVar4 = func_144(&(Global_17257.f_73[Global_17257.f_5090 /*6*/]));
			if (fVar4 > Global_17257.f_5612[iParam0])
			{
				Global_17257.f_5612[iParam0] = fVar4;
			}
		}
	}
	gameplay::set_bit(&(Global_17257.f_4959[iParam0]), Global_17257.f_5089);
	Global_17257.f_5089++;
	Global_17257.f_5611 = 1;
	Global_17257.f_5609 = (Global_17257.f_5090 - 1);
	Global_17257.f_5610 = 0;
	Global_17257.f_5608 = iParam2;
}

float func_144(char* sParam0)//Position - 0xA433
{
	if (!ui::does_text_label_exist(sParam0))
	{
	}
	return ui::_get_text_scale_height(0.35f, 0);
}

float func_145(char* sParam0)//Position - 0xA44F
{
	if (!gameplay::is_string_null(sParam0))
	{
		if (gameplay::get_hash_key(sParam0) == 0)
		{
			return 0f;
		}
	}
	else
	{
		return 0f;
	}
	func_139(0, 1, 0, 0, 0, 0);
	ui::_set_text_entry_for_width(sParam0);
	return ui::_get_text_screen_width(1);
}

void func_146(int iParam0, int iParam1)//Position - 0xA48B
{
	int iVar0;
	
	iVar0 = system::floor((system::to_float(iParam0) / 32f));
	if (iParam1)
	{
		gameplay::set_bit(&(Global_17257.f_5881[iVar0]), (iParam0 - iVar0 * 32));
	}
	else
	{
		gameplay::clear_bit(&(Global_17257.f_5881[iVar0]), (iParam0 - iVar0 * 32));
	}
}

void func_147(char* sParam0)//Position - 0xA4D7
{
	int iVar0;
	
	StringCopy(&(Global_17257.f_1), sParam0, 16);
	Global_17257.f_68 = 0;
	Global_17257.f_69 = 0;
	Global_17257.f_70 = 0;
	Global_17257.f_71 = 0;
	Global_17257.f_72 = 0;
	iVar0 = 0;
	while (iVar0 < 4)
	{
		Global_17257.f_5[iVar0] = 0;
		iVar0++;
	}
}

void func_148()//Position - 0xA522
{
	func_147("CM_IN_SET");
	func_149(1);
}

void func_149(int iParam0)//Position - 0xA537
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= 13)
	{
		if (iParam0)
		{
			func_150(iVar0, &(iLocal_7535[iVar0]), func_156(iVar0), func_155(iVar0), func_154(iVar0), func_27(iVar0));
		}
		else
		{
			func_150(iVar0, &(iLocal_7520[iVar0]), func_156(iVar0), func_155(iVar0), func_154(iVar0), func_27(iVar0));
		}
		iVar0++;
	}
}

void func_150(int iParam0, var uParam1, char* sParam2, int iParam3, char* sParam4, int iParam5)//Position - 0xA5A4
{
	struct<8> Var0;
	int iVar8;
	int iVar9;
	struct<8> Var10;
	char cVar18[32];
	int iVar26;
	int iVar27;
	int iVar28;
	char cVar29[64];
	char cVar45[64];
	
	StringCopy(&Var0, sParam4, 32);
	if (!((iParam0 == 4 && iLocal_6810 == 1) && iLocal_5754 == 0))
	{
		if (*uParam1 >= iParam3)
		{
			*uParam1 = (*uParam1 - iParam3);
		}
		if (*uParam1 < 0)
		{
			*uParam1 = (*uParam1 + iParam3);
		}
	}
	iVar8 = *uParam1 + 1;
	StringIntConCat(&Var0, iVar8, 32);
	if (!((iParam0 == 4 && iLocal_6810 == 1) && iLocal_5754 == 0))
	{
		func_143(iParam0, sParam2, 0, iParam5, 0, 0);
	}
	if ((iParam0 == 4 && iLocal_6810 == 1) && iLocal_5754 == 0)
	{
		iVar26 = func_106(iLocal_7676[4]);
		if (iVar26 < 0)
		{
			iVar26 = 0;
		}
		StringCopy(&Var0, func_153(Local_6878[iVar26 /*32*/]), 32);
		Var10 = { Var0 };
		StringConCat(&Var10, "f", 32);
		if (ui::does_text_label_exist(&Var10) && !Local_6878[iVar26 /*32*/].f_29)
		{
			StringConCat(&Var0, "F", 32);
		}
		iVar27 = 0;
		while (iVar27 <= iLocal_7676[4])
		{
			iVar28 = func_106(iVar27);
			if (iVar28 >= 0)
			{
				StringCopy(&Var10, func_153(Local_6878[iVar28 /*32*/]), 32);
				cVar18 = { Var10 };
				StringConCat(&cVar18, "F", 32);
				if (!Local_6878[iVar28 /*32*/].f_29)
				{
					if (ui::does_text_label_exist(&cVar18))
					{
						StringCopy(&cVar29, ui::_get_label_text(&cVar18), 64);
					}
					else
					{
						StringCopy(&cVar29, ui::_get_label_text(&Var10), 64);
					}
				}
				else
				{
					StringCopy(&cVar29, ui::_get_label_text(&Var10), 64);
				}
				StringCopy(&cVar45, ui::_get_label_text(&Var0), 64);
				if (gameplay::are_strings_equal(&cVar29, &cVar45))
				{
					iVar9++;
				}
			}
			iVar27++;
		}
	}
	if ((iParam0 == 4 && iLocal_6810 == 1) && iLocal_5754 == 0)
	{
		if (iVar9 > 1)
		{
			Var0 = { func_152(Var0) };
			func_143(iParam0, sParam2, 0, iParam5, 0, 0);
			func_143(iParam0, "CM_GENSELB", 2, iParam5, 0, 0);
			func_151(&Var0, 0);
			func_130(iVar9, 0);
		}
		else
		{
			Var0 = { func_152(Var0) };
			func_143(iParam0, sParam2, 0, iParam5, 0, 0);
			func_143(iParam0, &Var0, 0, iParam5, 0, 0);
		}
	}
	else
	{
		func_143(iParam0, &Var0, 0, iParam5, 0, 0);
	}
}

void func_151(char* sParam0, int iParam1)//Position - 0xA7C5
{
	float fVar0;
	float fVar1;
	var uVar2;
	float fVar3;
	
	if (Global_17257.f_5090 >= 256)
	{
		return;
	}
	if (Global_17257.f_5610 >= 4)
	{
		return;
	}
	if (Global_17257.f_5611 != 1)
	{
		return;
	}
	if (Global_17257.f_5610 >= Global_17257.f_5608)
	{
		return;
	}
	StringCopy(&(Global_17257.f_73[Global_17257.f_5090 /*6*/]), sParam0, 24);
	Global_17257.f_5090++;
	Global_17257.f_2124[Global_17257.f_5609 /*5*/][Global_17257.f_5610] = 1;
	Global_17257.f_5610++;
	if (Global_17257.f_5610 >= Global_17257.f_5608)
	{
		fVar0 = func_138();
		if (Global_17257.f_4945[Global_17257.f_5089] && Global_17257.f_5610 == Global_17257.f_5608)
		{
			func_132(26, 1, 0, &fVar1, &uVar2, 0);
			fVar0 = (fVar0 + (fVar1 * 2f));
		}
		if (fVar0 > Global_17257.f_4938[(Global_17257.f_5089 - 1)])
		{
			Global_17257.f_4938[(Global_17257.f_5089 - 1)] = fVar0;
		}
	}
	if (iParam1)
	{
		if (Global_17257.f_5610 >= Global_17257.f_5608)
		{
			fVar3 = func_131();
			if (fVar3 > Global_17257.f_5612[Global_17257.f_5088])
			{
				Global_17257.f_5612[Global_17257.f_5088] = fVar3;
			}
		}
	}
}

struct<8> func_152(char[32] cParam0)//Position - 0xA901
{
	char cVar0[32];
	struct<8> Var8;
	
	StringCopy(&cVar0, "", 32);
	Var8 = { cParam0 };
	switch (unk::_get_ui_language_id())
	{
		case 0:
			StringCopy(&cVar0, "_ENG", 32);
			break;
		
		case 1:
			StringCopy(&cVar0, "_FRE", 32);
			break;
		
		case 2:
			StringCopy(&cVar0, "_GER", 32);
			break;
		
		case 3:
			StringCopy(&cVar0, "_ITA", 32);
			break;
		
		case 4:
			StringCopy(&cVar0, "_SPA", 32);
			break;
		
		case 5:
			StringCopy(&cVar0, "_POR", 32);
			break;
		
		case 6:
			StringCopy(&cVar0, "_POL", 32);
			break;
		
		case 7:
			StringCopy(&cVar0, "_RUS", 32);
			break;
		
		case 8:
			StringCopy(&cVar0, "_KOR", 32);
			break;
		
		case 9:
			StringCopy(&cVar0, "_CHI", 32);
			break;
		
		case 10:
			StringCopy(&cVar0, "_JAP", 32);
			break;
		
		case 11:
			StringCopy(&cVar0, "_MEX", 32);
			break;
	}
	StringConCat(&Var8, &cVar0, 32);
	if (!gameplay::are_strings_equal(&Var8, &cVar0))
	{
		if (ui::does_text_label_exist(&Var8))
		{
			return Var8;
		}
	}
	return cParam0;
}

char* func_153(int iParam0)//Position - 0xAA18
{
	switch (iParam0)
	{
		case 4:
			return "CM_TOP1";
			break;
		
		case 5:
			return "CM_TOP2";
			break;
		
		case 7:
			return "CM_TOP3";
			break;
		
		case 8:
			return "CM_TOP4";
			break;
		
		case 9:
			return "CM_TOP5";
			break;
		
		case 10:
			return "CM_TOP6";
			break;
		
		case 11:
			return "CM_TOP7";
			break;
		
		case 33:
			return "CM_LISANI";
			break;
		
		case 34:
			return "CM_LISBEA";
			break;
		
		case 35:
			return "CM_LISCOS";
			break;
		
		case 36:
			return "CM_LISDOW";
			break;
		
		case 37:
			return "CM_LISEME";
			break;
		
		case 38:
			return "CM_LISGAN";
			break;
		
		case 39:
			return "CM_LISHEI";
			break;
		
		case 40:
			return "CM_LISLAB";
			break;
		
		case 41:
			return "CM_LISMIL";
			break;
		
		case 42:
			return "CM_LISONL";
			break;
		
		case 43:
			return "CM_LISPRO";
			break;
		
		case 44:
			return "CM_LISSPE";
			break;
		
		case 45:
			return "CM_LISSPO";
			break;
		
		case 46:
			return "CM_LISSTO";
			break;
		
		case 47:
			return "CM_LISTRA";
			break;
		
		case 48:
			return "CM_LISUPT";
			break;
		
		case 49:
			return "CM_LISVAG";
			break;
		
		case 82:
			return "CM_PROAIR";
			break;
		
		case 83:
			return "CM_PROBAR";
			break;
		
		case 84:
			return "CM_PROBOU";
			break;
		
		case 85:
			return "CM_PROCEO";
			break;
		
		case 86:
			return "CM_PROCHE";
			break;
		
		case 87:
			return "CM_PROCOO";
			break;
		
		case 88:
			return "CM_PRODOC";
			break;
		
		case 89:
			return "CM_PRODOR";
			break;
		
		case 90:
			return "CM_PRODRA";
			break;
		
		case 91:
			return "CM_PROIT";
			break;
		
		case 92:
			return "CM_PROMAI";
			break;
		
		case 93:
			return "CM_PROMAR";
			break;
		
		case 94:
			return "CM_PROOFF";
			break;
		
		case 95:
			return "CM_PROSCI";
			break;
		
		case 96:
			return "CM_PROSTY";
			break;
		
		case 97:
			return "CM_PROVAL";
			break;
		
		case 98:
			return "CM_PROVEN";
			break;
		
		case 99:
			return "CM_PROWAI";
			break;
		
		case 100:
			return "CM_PROAIH";
			break;
		
		case 101:
			return "CM_PROAUP";
			break;
		
		case 102:
			return "CM_PROBIN";
			break;
		
		case 103:
			return "CM_PROFAS";
			break;
		
		case 104:
			return "CM_PROHAI";
			break;
		
		case 105:
			return "CM_PROINT";
			break;
		
		case 106:
			return "CM_PROLAW";
			break;
		
		case 107:
			return "CM_PROPON";
			break;
		
		case 108:
			return "CM_PROREL";
			break;
		
		case 109:
			return "CM_PROSTR";
			break;
		
		case 110:
			return "CM_PROTEA";
			break;
		
		case 111:
			return "CM_UPTEAS";
			break;
		
		case 112:
			return "CM_UPTECC";
			break;
		
		case 113:
			return "CM_UPTHAW";
			break;
		
		case 114:
			return "CM_UPTMIR";
			break;
		
		case 117:
			return "CM_UPTHIP";
			break;
		
		case 118:
			return "CM_UPTCOU";
			break;
		
		case 115:
			return "CM_UPTROC";
			break;
		
		case 116:
			return "CM_UPTVIN";
			break;
		
		case 119:
			return "CM_UPTART";
			break;
		
		case 120:
			return "CM_UPTBOH";
			break;
		
		case 121:
			return "CM_UPTPOR";
			break;
		
		case 122:
			return "CM_UPTRIC";
			break;
		
		case 123:
			return "CM_UPTROH";
			break;
		
		case 124:
			return "CM_UPTVIB";
			break;
		
		case 125:
			return "CM_UPTWAN";
			break;
		
		case 126:
			return "CM_DOWSOU";
			break;
		
		case 127:
			return "CM_DOWEL1";
			break;
		
		case 128:
			return "CM_DOWDAD";
			break;
		
		case 129:
			return "CM_DOWEL2";
			break;
		
		case 130:
			return "CM_DOWSTM";
			break;
		
		case 131:
			return "CM_DOWCOU";
			break;
		
		case 132:
			return "CM_DOWCO2";
			break;
		
		case 133:
			return "CM_DOWSTR";
			break;
		
		case 134:
			return "CM_DOWEMO";
			break;
		
		case 135:
			return "CM_DOWEM2";
			break;
		
		case 136:
			return "CM_DOWTEE";
			break;
		
		case 137:
			return "CM_DOWCOL";
			break;
		
		case 138:
			return "CM_DOWSOC";
			break;
		
		case 139:
			return "CM_DOWDAV";
			break;
		
		case 140:
			return "CM_VAGMIS";
			break;
		
		case 141:
			return "CM_VAGDO1";
			break;
		
		case 142:
			return "CM_VAGDO2";
			break;
		
		case 143:
			return "CM_VAGMET";
			break;
		
		case 144:
			return "CM_VAGSAN";
			break;
		
		case 145:
			return "CM_VAGME2";
			break;
		
		case 146:
			return "CM_VAGOLD";
			break;
		
		case 147:
			return "CM_VAGYOU";
			break;
		
		case 148:
			return "CM_VAGPR1";
			break;
		
		case 149:
			return "CM_VAGPR2";
			break;
		
		case 151:
			return "CM_BEALOA";
			break;
		
		case 152:
			return "CM_BEAOLD";
			break;
		
		case 153:
			return "CM_BEAVES";
			break;
		
		case 154:
			return "CM_BEADEL";
			break;
		
		case 155:
			return "CM_BEASUN";
			break;
		
		case 156:
			return "CM_BEABEA";
			break;
		
		case 157:
			return "CM_BEAMU1";
			break;
		
		case 158:
			return "CM_BEAMU2";
			break;
		
		case 150:
			return "CM_BEATOU";
			break;
		
		case 159:
			return "CM_BEAMUS";
			break;
		
		case 160:
			return "CM_SPOYOG";
			break;
		
		case 161:
			return "CM_SPOSUR";
			break;
		
		case 162:
			return "CM_SPOSKA";
			break;
		
		case 163:
			return "CM_SPOSK1";
			break;
		
		case 164:
			return "CM_SPOSK2";
			break;
		
		case 165:
			return "CM_SPOSK3";
			break;
		
		case 166:
			return "CM_SPOSK4";
			break;
		
		case 167:
			return "CM_SPOSK5";
			break;
		
		case 168:
			return "CM_SPORU1";
			break;
		
		case 169:
			return "CM_SPORU2";
			break;
		
		case 170:
			return "CM_SPORUN";
			break;
		
		case 171:
			return "CM_SPOCYC";
			break;
		
		case 172:
			return "CM_SPOROC";
			break;
		
		case 173:
			return "CM_SPOMO1";
			break;
		
		case 174:
			return "CM_SPOMO2";
			break;
		
		case 175:
			return "CM_SPOTEN";
			break;
		
		case 176:
			return "CM_SPOGO1";
			break;
		
		case 177:
			return "CM_SPOGO2";
			break;
		
		case 178:
			return "CM_SPOGOF";
			break;
	}
	switch (iParam0)
	{
		case 179:
			return "CM_GANTRB";
			break;
		
		case 180:
			return "CM_GANTG1";
			break;
		
		case 181:
			return "CM_GANTG2";
			break;
		
		case 182:
			return "CM_GANKOB";
			break;
		
		case 183:
			return "CM_GANKOL";
			break;
		
		case 184:
			return "CM_GANKOG";
			break;
		
		case 185:
			return "CM_GANCHO";
			break;
		
		case 186:
			return "CM_GANEPS1";
			break;
		
		case 187:
			return "CM_GANEPS2";
			break;
		
		case 188:
			return "CM_GANEPSF";
			break;
		
		case 189:
			return "CM_GANSTR";
			break;
		
		case 190:
			return "CM_GANAZB";
			break;
		
		case 191:
			return "CM_GANVAB";
			break;
		
		case 192:
			return "CM_GANAZG";
			break;
		
		case 193:
			return "CM_GANVAG";
			break;
		
		case 194:
			return "CM_GANMGB";
			break;
		
		case 195:
			return "CM_GANMGG";
			break;
		
		case 196:
			return "CM_GANMGL";
			break;
		
		case 197:
			return "CM_GANMOB";
			break;
		
		case 198:
			return "CM_GANMOG";
			break;
		
		case 199:
			return "CM_GANMOL";
			break;
		
		case 200:
			return "CM_GANLOO";
			break;
		
		case 201:
			return "CM_GANLOM";
			break;
		
		case 202:
			return "CM_GANLOS";
			break;
		
		case 203:
			return "CM_GANLOH";
			break;
		
		case 204:
			return "CM_GANBAE";
			break;
		
		case 205:
			return "CM_GANBLO";
			break;
		
		case 206:
			return "CM_GANOGB";
			break;
		
		case 207:
			return "CM_GANBAS";
			break;
		
		case 208:
			return "CM_GANCHA";
			break;
		
		case 209:
			return "CM_GANDAV";
			break;
		
		case 210:
			return "CM_GANFOR";
			break;
		
		case 211:
			return "CM_GANALT";
			break;
		
		case 212:
			return "CM_GANAL1";
			break;
		
		case 213:
			return "CM_GANAL2";
			break;
		
		case 214:
			return "CM_GANAL3";
			break;
		
		case 218:
			return "CM_COSAST";
			break;
		
		case 219:
			return "CM_COSSPY";
			break;
		
		case 220:
			return "CM_COSCOR";
			break;
		
		case 221:
			return "CM_COSPOG";
			break;
		
		case 222:
			return "CM_COSSPA";
			break;
		
		case 223:
			return "CM_COSALI";
			break;
		
		case 224:
			return "CM_COSCLO";
			break;
		
		case 225:
			return "CM_COSMIM";
			break;
		
		case 226:
			return "CM_COSSTR";
			break;
		
		case 227:
			return "CM_MILPL1";
			break;
		
		case 228:
			return "CM_MILPL2";
			break;
		
		case 229:
			return "CM_MILMIG";
			break;
		
		case 230:
			return "CM_MILSRG";
			break;
		
		case 231:
			return "CM_MILCOR";
			break;
		
		case 232:
			return "CM_MILPRI";
			break;
		
		case 233:
			return "CM_MILBAT";
			break;
		
		case 234:
			return "CM_MILMIM";
			break;
		
		case 235:
			return "CM_MILMEP";
			break;
		
		case 236:
			return "CM_MILMEC";
			break;
		
		case 237:
			return "CM_MILMEL";
			break;
		
		case 238:
			return "CM_LABFAR";
			break;
		
		case 239:
			return "CM_LABMIG";
			break;
		
		case 240:
			return "CM_LABCN1";
			break;
		
		case 241:
			return "CM_LABCN2";
			break;
		
		case 242:
			return "CM_LABCN3";
			break;
		
		case 243:
			return "CM_LABGAB";
			break;
		
		case 244:
			return "CM_LABFAC";
			break;
		
		case 245:
			return "CM_LABGAR";
			break;
		
		case 246:
			return "CM_LABJAN";
			break;
		
		case 247:
			return "CM_LABSAD";
			break;
		
		case 248:
			return "CM_LABDOC";
			break;
		
		case 249:
			return "CM_LABME1";
			break;
		
		case 250:
			return "CM_LABME2";
			break;
		
		case 251:
			return "CM_LABBUG";
			break;
		
		case 252:
			return "CM_EMEFIR";
			break;
		
		case 253:
			return "CM_EMEPOL";
			break;
		
		case 254:
			return "CM_EMEFIB";
			break;
		
		case 255:
			return "CM_EMENOO";
			break;
		
		case 256:
			return "CM_EMEDOA";
			break;
		
		case 257:
			return "CM_EMEIAA";
			break;
		
		case 258:
			return "CM_EMEHIG";
			break;
		
		case 259:
			return "CM_EMEPAR";
			break;
		
		case 260:
			return "CM_EMECOA";
			break;
		
		case 261:
			return "CM_EMERAN";
			break;
		
		case 262:
			return "CM_EMEBAY";
			break;
		
		case 263:
			return "CM_EMESHE";
			break;
		
		case 264:
			return "CM_TRAAR1";
			break;
		
		case 265:
			return "CM_TRAAR2";
			break;
		
		case 266:
			return "CM_TRAAIR";
			break;
		
		case 267:
			return "CM_TRAPO1";
			break;
		
		case 268:
			return "CM_TRAPO2";
			break;
		
		case 269:
			return "CM_TRAPO3";
			break;
		
		case 270:
			return "CM_TRAPO4";
			break;
		
		case 271:
			return "CM_TRATRA";
			break;
		
		case 272:
			return "CM_TRATRU";
			break;
		
		case 327:
			return "CM_ONLINE1";
			break;
		
		case 328:
			return "CM_ONLINE2";
			break;
	}
	switch (iParam0)
	{
		case 273:
			return "CM_STOFRA";
			break;
		
		case 274:
			return "CM_STOTRE";
			break;
		
		case 275:
			return "CM_STOMIC";
			break;
		
		case 276:
			return "CM_STOAMA";
			break;
		
		case 277:
			return "CM_STOBEV";
			break;
		
		case 278:
			return "CM_STOBRA";
			break;
		
		case 279:
			return "CM_STOCHR";
			break;
		
		case 280:
			return "CM_STODAV";
			break;
		
		case 281:
			return "CM_STODEV";
			break;
		
		case 282:
			return "CM_STODRF";
			break;
		
		case 283:
			return "CM_STOFAB";
			break;
		
		case 284:
			return "CM_STOFLO";
			break;
		
		case 285:
			return "CM_STOJIM";
			break;
		
		case 286:
			return "CM_STOLAM";
			break;
		
		case 287:
			return "CM_STOLAZ";
			break;
		
		case 288:
			return "CM_STOLES";
			break;
		
		case 289:
			return "CM_STOMAU";
			break;
		
		case 290:
			return "CM_STOTHO";
			break;
		
		case 291:
			return "CM_STONER";
			break;
		
		case 292:
			return "CM_STOPAT";
			break;
		
		case 293:
			return "CM_STOSIM";
			break;
		
		case 294:
			return "CM_STOSOL";
			break;
		
		case 295:
			return "CM_STOSTE";
			break;
		
		case 296:
			return "CM_STOSTR";
			break;
		
		case 297:
			return "CM_STOTAN";
			break;
		
		case 298:
			return "CM_STOTAO";
			break;
		
		case 299:
			return "CM_STOTRA";
			break;
		
		case 300:
			return "CM_STOWAD";
			break;
		
		case 301:
			return "CM_SPEAND";
			break;
		
		case 302:
			return "CM_SPEBAY";
			break;
		
		case 303:
			return "CM_SPEBIL";
			break;
		
		case 304:
			return "CM_SPECLI";
			break;
		
		case 305:
			return "CM_SPEGRI";
			break;
		
		case 306:
			return "CM_SPEJAN";
			break;
		
		case 307:
			return "CM_SPEJER";
			break;
		
		case 308:
			return "CM_SPEJES";
			break;
		
		case 309:
			return "CM_SPEMAN";
			break;
		
		case 310:
			return "CM_SPEMIM";
			break;
		
		case 311:
			return "CM_SPEPAM";
			break;
		
		case 312:
			return "CM_SPEIMP";
			break;
		
		case 313:
			return "CM_SPEZOM";
			break;
		
		case 314:
			return "CM_HSTGUS";
			break;
		
		case 315:
			return "CM_HSTKAR";
			break;
		
		case 316:
			return "CM_HSTPAC";
			break;
		
		case 317:
			return "CM_HSTCHE";
			break;
		
		case 318:
			return "CM_HSTHUG";
			break;
		
		case 319:
			return "CM_HSTNOR";
			break;
		
		case 320:
			return "CM_HSTDAR";
			break;
		
		case 321:
			return "CM_HSTPAI";
			break;
		
		case 322:
			return "CM_HSTCHR";
			break;
		
		case 323:
			return "CM_HSTRIC";
			break;
		
		case 324:
			return "CM_HSTEDD";
			break;
		
		case 325:
			return "CM_HSTTAL";
			break;
		
		case 326:
			return "CM_HSTKRM";
			break;
		
		case 430:
			return "CM_ANIBOAR";
			break;
		
		case 431:
			return "CM_ANICAT";
			break;
		
		case 432:
			return "CM_ANICOW";
			break;
		
		case 433:
			return "CM_ANICOY";
			break;
		
		case 434:
			return "CM_ANIDEE";
			break;
		
		case 435:
			return "CM_ANIHUS";
			break;
		
		case 436:
			return "CM_ANIMOU";
			break;
		
		case 437:
			return "CM_ANIPIG";
			break;
		
		case 438:
			return "CM_ANIPOO";
			break;
		
		case 439:
			return "CM_ANIPUG";
			break;
		
		case 440:
			return "CM_ANIRAB";
			break;
		
		case 441:
			return "CM_ANIRET";
			break;
		
		case 442:
			return "CM_ANIROT";
			break;
		
		case 443:
			return "CM_ANISHE";
			break;
		
		case 444:
			return "CM_ANIWES";
			break;
		
		case 445:
			return "CM_ANICHI";
			break;
		
		case 446:
			return "CM_ANICOR";
			break;
		
		case 447:
			return "CM_ANICRO";
			break;
		
		case 448:
			return "CM_ANIHEN";
			break;
		
		case 449:
			return "CM_ANIPGN";
			break;
		
		case 450:
			return "CM_ANISEA";
			break;
		
		case 451:
			return "HAIR_GROUP_E0";
			break;
	}
	return "";
}

char* func_154(int iParam0)//Position - 0xBC59
{
	switch (iParam0)
	{
		case 0:
			return "CM_TI_";
			break;
		
		case 1:
			return "CM_WE_";
			break;
		
		case 2:
			return "CM_CR_";
			break;
		
		case 3:
			return "CM_DE_";
			break;
		
		case 4:
			return "CM_DE_";
			break;
		
		case 5:
			return "CM_RES_";
			break;
		
		case 6:
			return "CM_RES_";
			break;
		
		case 7:
			return "CM_RES_";
			break;
		
		case 12:
			return "CM_RES_";
			break;
		
		case 11:
			return "CM_RES_";
			break;
		
		case 10:
			return "CM_RES_";
			break;
		
		case 8:
			return "CM_RES_";
			break;
		
		case 9:
			return "CM_RES_";
			break;
		
		case 13:
			return "CM_RES_";
			break;
	}
	return "ERROR";
}

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

char* func_156(int iParam0)//Position - 0xBE14
{
	switch (iParam0)
	{
		case 0:
			return "CM_IN_TI";
			break;
		
		case 1:
			return "CM_IN_WE";
			break;
		
		case 2:
			return "CM_IN_WAN";
			break;
		
		case 3:
			return "CM_IN_PED";
			break;
		
		case 4:
			return "CM_IN_VED";
			break;
		
		case 5:
			return "CM_IN_RES";
			break;
		
		case 6:
			return "CM_IN_INV";
			break;
		
		case 7:
			return "CM_IN_FIREB";
			break;
		
		case 12:
			return "CM_IN_LOWG";
			break;
		
		case 11:
			return "CM_IN_SLIDE";
			break;
		
		case 10:
			return "CM_IN_SUPERJ";
			break;
		
		case 8:
			return "CM_IN_XPBUL";
			break;
		
		case 9:
			return "CM_IN_XPPUN";
			break;
		
		case 13:
			return "CM_IN_CLR";
			break;
	}
	return "ERROR";
}

void func_157()//Position - 0xBF07
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	func_147("CM_IN_VEH");
	iLocal_6230[0] = 21;
	iLocal_6230[1] = 22;
	iLocal_6230[2] = 23;
	iLocal_6230[3] = 26;
	iLocal_6230[4] = 29;
	iLocal_6230[5] = 32;
	iLocal_6230[6] = 27;
	iLocal_6230[7] = 30;
	iLocal_6230[8] = 33;
	iLocal_6230[9] = 28;
	iLocal_6230[10] = 31;
	iLocal_6230[11] = 34;
	iLocal_6230[12] = 13;
	iLocal_6230[13] = 12;
	iLocal_6230[14] = 14;
	iLocal_6230[15] = 19;
	iLocal_6230[16] = 18;
	iLocal_6230[17] = 20;
	iLocal_6230[18] = 16;
	iLocal_6230[19] = 15;
	iLocal_6230[20] = 17;
	func_161();
	iVar0 = 0;
	while (iVar0 < 21)
	{
		if (func_112(&Local_5761, iLocal_6230[iVar0]) && Local_5761.f_66 != 0)
		{
			if (func_160(Local_5761.f_66, iVar0))
			{
				func_143(iLocal_5661, vehicle::get_display_name_from_vehicle_model(Local_5761.f_66), 0, 1, 0, 0);
				iLocal_5661++;
			}
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 282)
	{
		iVar1 = iVar0;
		iVar2 = func_159(iVar1, -1);
		if (iVar2 != 0)
		{
			if ((func_158(iVar1, 0) || func_158(iVar1, 1)) || func_158(iVar1, 2))
			{
				if (func_160(iVar2, -1))
				{
					func_143(iLocal_5661, vehicle::get_display_name_from_vehicle_model(func_159(iVar1, -1)), 0, 1, 0, 0);
					iLocal_5661++;
				}
			}
		}
		iVar0++;
	}
}

int func_158(int iParam0, int iParam1)//Position - 0xC093
{
	int iVar0;
	
	iVar0 = iParam1;
	if (iVar0 < 0 || iVar0 > 2)
	{
		return false;
	}
	return gameplay::is_bit_set(Global_101186.f_29783[iParam0], iVar0);
}

int func_159(int iParam0, int iParam1)//Position - 0xC0C5
{
	switch (iParam0)
	{
		case 0:
			return joaat("ztype");
		
		case 1:
			return joaat("stinger");
		
		case 2:
			return joaat("jb700");
		
		case 3:
			return joaat("cheetah");
		
		case 4:
			return joaat("entityxf");
		
		case 5:
			return joaat("adder");
		
		case 6:
			return joaat("monroe");
		
		case 7:
			return joaat("cogcabrio");
		
		case 10:
			return joaat("shamal");
		
		case 11:
			return joaat("stunt");
		
		case 12:
			return joaat("cuban800");
		
		case 13:
			return joaat("duster");
		
		case 14:
			return joaat("luxor");
		
		case 15:
			return joaat("frogger");
		
		case 16:
			return joaat("maverick");
		
		case 17:
			return joaat("rhino");
		
		case 18:
			return joaat("titan");
		
		case 19:
			return joaat("cargobob");
		
		case 20:
			return joaat("buzzard");
		
		case 21:
			return joaat("crusader");
		
		case 22:
			return joaat("barracks");
		
		case 24:
			return joaat("marquis");
		
		case 25:
			return joaat("jetmax");
		
		case 27:
			return joaat("squalo");
		
		case 29:
			return joaat("tropic");
		
		case 30:
			return joaat("seashark");
		
		case 31:
			return joaat("submersible");
		
		case 32:
			return joaat("suntrap");
		
		case 258:
			return joaat("tug");
		
		case 33:
			return joaat("bmx");
		
		case 34:
			return joaat("scorcher");
		
		case 35:
			return joaat("tribike");
		
		case 36:
			return joaat("tribike2");
		
		case 37:
			return joaat("tribike3");
		
		case 38:
			return joaat("cruiser");
		
		case 39:
			return joaat("schwarzer");
		
		case 40:
			return joaat("zion");
		
		case 41:
			return joaat("gauntlet");
		
		case 42:
			return joaat("vigero");
		
		case 43:
			return joaat("issi2");
		
		case 44:
			return joaat("infernus");
		
		case 45:
			return joaat("surano");
		
		case 46:
			return joaat("vacca");
		
		case 47:
			return joaat("ninef");
		
		case 48:
			return joaat("comet2");
		
		case 49:
			return joaat("banshee");
		
		case 50:
			return joaat("feltzer2");
		
		case 51:
			return joaat("bfinjection");
		
		case 52:
			return joaat("sandking");
		
		case 53:
			return joaat("fugitive");
		
		case 54:
			return joaat("dilettante");
		
		case 55:
			return joaat("superd");
		
		case 56:
			return joaat("exemplar");
		
		case 57:
			return joaat("baller2");
		
		case 58:
			return joaat("cavalcade");
		
		case 59:
			return joaat("rocoto");
		
		case 60:
			return joaat("felon");
		
		case 61:
			return joaat("oracle2");
		
		case 62:
			return joaat("bati");
		
		case 63:
			return joaat("akuma");
		
		case 64:
			return joaat("ruffian");
		
		case 65:
			return joaat("vader");
		
		case 66:
			return joaat("blazer");
		
		case 67:
			return joaat("pcj");
		
		case 68:
			return joaat("sanchez");
		
		case 69:
			return joaat("faggio2");
		
		case 70:
			return joaat("bullet");
		
		case 71:
			return joaat("carbonizzare");
		
		case 72:
			return joaat("coquette");
		
		case 73:
			return joaat("ninef2");
		
		case 74:
			return joaat("rapidgt");
		
		case 75:
			return joaat("rapidgt2");
		
		case 76:
			return joaat("stingergt");
		
		case 77:
			return joaat("voltic");
		
		case 78:
			return joaat("annihilator");
		
		case 79:
			return joaat("mammatus");
		
		case 80:
			return joaat("velum");
		
		case 81:
			return joaat("dump");
		
		case 82:
			return joaat("airbus");
		
		case 83:
			return joaat("bus");
		
		case 84:
			return joaat("coach");
		
		case 85:
			return joaat("journey");
		
		case 86:
			return joaat("mule");
		
		case 87:
			return joaat("rentalbus");
		
		case 88:
			return joaat("stretch");
		
		case 89:
			return joaat("bison");
		
		case 90:
			return joaat("double");
		
		case 91:
			return joaat("felon2");
		
		case 92:
			return joaat("hexer");
		
		case 93:
			return joaat("zion2");
		
		case 94:
			return joaat("bati2");
		
		case 95:
			return joaat("elegy2");
		
		case 96:
			return joaat("khamelion");
		
		case 97:
			return joaat("hotknife");
		
		case 98:
			return joaat("carbonrs");
		
		default:
	}
	switch (iParam0)
	{
		case 99:
			return joaat("bifta");
		
		case 100:
			return joaat("kalahari");
		
		case 101:
			return joaat("paradise");
		
		case 102:
			return joaat("speeder");
		
		case 103:
			return joaat("bodhi2");
		
		case 104:
			return joaat("dune");
		
		case 105:
			return joaat("rebel");
		
		case 106:
			return joaat("sadler");
		
		case 107:
			return joaat("sanchez2");
		
		case 108:
			return joaat("sandking2");
		
		case 109:
			return joaat("btype");
		
		case 111:
			return joaat("jester");
		
		case 114:
			return joaat("massacro");
		
		case 112:
			return joaat("turismor");
		
		case 115:
			return joaat("zentorno");
		
		case 116:
			return joaat("huntley");
		
		case 110:
			return joaat("alpha");
		
		case 113:
			return joaat("vestra");
		
		case 117:
			return joaat("coquette");
		
		case 118:
			return joaat("banshee");
		
		case 119:
			return joaat("stinger");
		
		case 120:
			return joaat("voltic");
		
		case 121:
			return joaat("thrust");
		
		case 128:
			return joaat("asea");
		
		case 129:
			return joaat("asterope");
		
		case 130:
			return joaat("bobcatxl");
		
		case 131:
			return joaat("cavalcade2");
		
		case 132:
			return joaat("granger");
		
		case 133:
			return joaat("ingot");
		
		case 134:
			return joaat("intruder");
		
		case 135:
			return joaat("minivan");
		
		case 136:
			return joaat("premier");
		
		case 137:
			return joaat("radi");
		
		case 138:
			return joaat("rancherxl");
		
		case 139:
			return joaat("ratloader");
		
		case 140:
			return joaat("stanier");
		
		case 141:
			return joaat("stratum");
		
		case 142:
			return joaat("washington");
		
		case 122:
			return joaat("dominator");
		
		case 123:
			return joaat("f620");
		
		case 124:
			return joaat("fusilade");
		
		case 125:
			return joaat("penumbra");
		
		case 126:
			return joaat("sentinel");
		
		case 127:
			return joaat("sentinel2");
		
		default:
	}
	switch (iParam0)
	{
		case 143:
			return joaat("blade");
		
		case 144:
			return joaat("warrener");
		
		case 145:
			return joaat("glendale");
		
		case 146:
			return joaat("rhapsody");
		
		case 147:
			return joaat("panto");
		
		case 148:
			return joaat("dubsta3");
		
		case 149:
			return joaat("pigalle");
		
		case 150:
			return joaat("picador");
		
		case 151:
			return joaat("regina");
		
		case 152:
			return joaat("surfer");
		
		case 153:
			return joaat("youga");
		
		case 154:
			return joaat("blazer3");
		
		case 155:
			return joaat("rebel2");
		
		case 156:
			return joaat("primo");
		
		case 157:
			return joaat("buffalo");
		
		case 158:
			return joaat("buffalo2");
		
		case 159:
			return joaat("tailgater");
		
		case 160:
			return joaat("monster");
		
		case 161:
			return joaat("sovereign");
		
		case 162:
			return joaat("miljet");
		
		case 163:
			return joaat("besra");
		
		case 164:
			return joaat("swift");
		
		case 165:
			return joaat("coquette2");
		
		case 166:
			return joaat("coquette2");
		
		case 167:
			return joaat("innovation");
		
		case 168:
			return joaat("hakuchou");
		
		case 169:
			return joaat("furoregt");
		
		case 170:
			return joaat("kalahari");
		
		case 187:
			return joaat("valkyrie");
		
		case 177:
			return joaat("hydra");
		
		case 185:
			return joaat("savage");
		
		case 174:
			return joaat("enduro");
		
		case 171:
			return joaat("boxville4");
		
		case 172:
			return joaat("casco");
		
		case 173:
			return joaat("dinghy3");
		
		case 175:
			return joaat("gburrito2");
		
		case 176:
			return joaat("guardian");
		
		case 178:
			return joaat("insurgent");
		
		case 179:
			return joaat("insurgent2");
		
		case 183:
			return joaat("mule3");
		
		case 180:
			return joaat("kuruma");
		
		case 181:
			return joaat("kuruma2");
		
		case 182:
			return joaat("lectro");
		
		case 184:
			return joaat("pbus");
		
		case 186:
			return joaat("technical");
		
		case 188:
			return joaat("velum2");
		
		case 189:
			return joaat("gresley");
		
		case 190:
			return joaat("jackal");
		
		case 191:
			return joaat("landstalker");
		
		case 192:
			return joaat("mesa3");
		
		case 193:
			return joaat("nemesis");
		
		case 194:
			return joaat("oracle");
		
		case 195:
			return joaat("rumpo");
		
		case 196:
			return joaat("schafter2");
		
		case 197:
			return joaat("seminole");
		
		case 198:
			return joaat("surge");
		
		case 199:
			return joaat("dodo");
		
		case 200:
			return joaat("marshall");
		
		case 201:
			return joaat("submersible2");
		
		case 202:
			return joaat("blista2");
		
		case 203:
			return joaat("stalion");
		
		case 204:
			return joaat("dukes");
		
		case 205:
			return joaat("dukes2");
		
		case 206:
			return joaat("stalion2");
		
		case 207:
			return joaat("dominator2");
		
		case 208:
			return joaat("gauntlet2");
		
		case 209:
			return joaat("buffalo3");
		
		case 210:
			return joaat("slamvan");
		
		case 211:
			return joaat("ratloader2");
		
		case 212:
			return joaat("jester2");
		
		case 213:
			return joaat("massacro2");
		
		case 214:
			return joaat("feltzer3");
		
		case 215:
			return joaat("luxor2");
		
		case 216:
			return joaat("osiris");
		
		case 217:
			return joaat("swift2");
		
		case 218:
			return joaat("virgo");
		
		case 219:
			return joaat("windsor");
		
		case 220:
			return joaat("brawler");
		
		case 221:
			return joaat("chino");
		
		case 222:
			return joaat("coquette3");
		
		case 223:
			return joaat("t20");
		
		case 224:
			return joaat("toro");
		
		case 225:
			return joaat("vindicator");
		
		case 229:
			return joaat("primo");
		
		case 228:
			return joaat("moonbeam");
		
		case 227:
			return joaat("faction");
		
		case 226:
			return joaat("buccaneer");
		
		case 230:
			return joaat("voodoo2");
		
		case 263:
			if (iParam1 == 0)
			{
				return joaat("xls");
			}
			else if (iParam1 == 1)
			{
				return joaat("xls2");
			}
			else
			{
				return joaat("xls");
			}
			break;
		
		case 264:
			return joaat("seven70");
		
		case 259:
			return joaat("windsor2");
		
		case 260:
			return joaat("prototipo");
		
		case 261:
			return joaat("fmj");
		
		case 262:
			return joaat("bestiagts");
		
		case 265:
			return joaat("pfister811");
		
		case 266:
			return joaat("reaper");
		
		case 231:
			return joaat("btype2");
		
		case 232:
			return joaat("lurcher");
		
		case 233:
			if (iParam1 == 0)
			{
				return joaat("baller3");
			}
			else if (iParam1 == 1)
			{
				return joaat("baller5");
			}
			else
			{
				return joaat("baller3");
			}
			break;
		
		case 234:
			if (iParam1 == 0)
			{
				return joaat("baller4");
			}
			else if (iParam1 == 1)
			{
				return joaat("baller6");
			}
			else
			{
				return joaat("baller4");
			}
			break;
		
		case 235:
			if (iParam1 == 0)
			{
				return joaat("cog55");
			}
			else if (iParam1 == 1)
			{
				return joaat("cog552");
			}
			else
			{
				return joaat("cog55");
			}
			break;
		
		case 236:
			if (iParam1 == 0)
			{
				return joaat("cognoscenti");
			}
			else if (iParam1 == 1)
			{
				return joaat("cognoscenti2");
			}
			else
			{
				return joaat("cognoscenti");
			}
			break;
		
		case 237:
			return joaat("limo2");
		
		case 238:
			return joaat("mamba");
		
		case 239:
			return joaat("nightshade");
		
		case 240:
			if (iParam1 == 0)
			{
				return joaat("schafter3");
			}
			else if (iParam1 == 1)
			{
				return joaat("schafter5");
			}
			else
			{
				return joaat("schafter3");
			}
			break;
		
		case 241:
			if (iParam1 == 0)
			{
				return joaat("schafter4");
			}
			else if (iParam1 == 1)
			{
				return joaat("schafter6");
			}
			else
			{
				return joaat("schafter4");
			}
			break;
		
		case 242:
			return joaat("verlierer2");
		
		case 243:
			return joaat("supervolito");
		
		case 244:
			return joaat("supervolito2");
		
		case 245:
			return Global_68072;
		
		case 251:
			return joaat("virgo3");
		
		case 250:
			return joaat("tornado");
		
		case 249:
			return joaat("sabregt");
		
		case 252:
			return joaat("faction");
		
		case 246:
			return joaat("tampa");
		
		case 247:
			return joaat("sultan");
		
		case 49:
			return joaat("banshee");
		
		case 248:
			return joaat("btype3");
		
		case 253:
			return joaat("volatus");
		
		case 254:
			return joaat("cargobob2");
		
		case 255:
			return joaat("rumpo3");
		
		case 256:
			return joaat("brickade");
		
		case 257:
			return joaat("nimbus");
		
		case 267:
			return joaat("le7b");
		
		case 268:
			return joaat("omnis");
		
		case 269:
			return joaat("tropos");
		
		case 270:
			return joaat("brioso");
		
		case 271:
			return joaat("trophytruck");
		
		case 272:
			return joaat("trophytruck2");
		
		case 273:
			return joaat("contender");
		
		case 274:
			return joaat("cliffhanger");
		
		case 275:
			return joaat("bf400");
		
		case 279:
			return joaat("tyrus");
		
		case 280:
			return joaat("lynx");
		
		case 281:
			return joaat("sheava");
		
		case 276:
			return joaat("rallytruck");
		
		case 277:
			return joaat("tampa2");
		
		case 278:
			return joaat("gargoyle");
	}
	return 0;
}

bool func_160(int iParam0, int iParam1)//Position - 0xD117
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 282)
	{
		if (iLocal_5947[iVar0] == 0)
		{
			iLocal_5947[iVar0] = iParam0;
			iLocal_6252[iVar0] = iParam1;
			return true;
		}
		else if (iLocal_5947[iVar0] == iParam0 && iParam1 == -1)
		{
			return false;
		}
		iVar0++;
	}
	return false;
}

void func_161()//Position - 0xD172
{
	int iVar0;
	
	iLocal_5661 = 0;
	iVar0 = 0;
	while (iVar0 < 282)
	{
		iLocal_6252[iVar0] = -1;
		iLocal_5947[iVar0] = 0;
		iVar0++;
	}
}

void func_162()//Position - 0xD1A2
{
	int iVar0;
	int iVar1;
	struct<16> Var2;
	
	func_147("CM_IN_MAIN");
	func_143(0, "CM_TOP2", 0, 1, 0, 0);
	iVar0 = 0;
	while (iVar0 < 30)
	{
		iLocal_9639[iVar0] = -1;
		iVar0++;
	}
	iLocal_5760 = 0;
	iVar0 = 0;
	while (iVar0 < 30)
	{
		if (iVar0 != -1 && iVar0 != 30)
		{
			if (ui::is_waypoint_active() || iVar0 != 29)
			{
				iLocal_9639[iLocal_5760] = iVar0;
				iLocal_5760++;
			}
			if (iVar0 == 29 && ui::is_waypoint_active())
			{
				Local_9128[29 /*17*/] = { ui::get_blip_coords(ui::get_first_blip_info_id(ui::_get_blip_info_id_iterator())) };
				Local_9128[29 /*17*/].f_3 = 0f;
				Local_9128[29 /*17*/].f_4 = 0f;
				Local_9128[29 /*17*/].f_5 = 0f;
			}
		}
		iVar0++;
	}
	if (iLocal_7676[1] >= iLocal_5760 || iLocal_7676[1] < 0)
	{
		iLocal_7676[1] = 0;
	}
	if (func_96(5))
	{
		func_143(1, "CM_IN_LO", 0, 1, 0, 0);
		func_143(1, func_165(iLocal_9639[iLocal_7676[1]]), 0, 1, 0, 0);
	}
	else
	{
		func_143(1, "CM_IN_LO", 0, 0, 0, 0);
		func_143(1, func_165(iLocal_9639[iLocal_7676[1]]), 0, 0, 0, 0);
		if (Local_5662.f_90 == 1)
		{
			func_169(0, 0, 0, 0, 0);
		}
	}
	iVar1 = func_106(iLocal_7676[4]);
	if (iVar1 < 0)
	{
		iVar1 = 0;
	}
	if (func_96(3))
	{
		func_143(2, "CM_IN_GES", 0, 1, 0, 0);
		func_143(2, func_164(2, iLocal_7676[2]), 0, 1, 0, 0);
	}
	else
	{
		func_143(2, "CM_IN_GES", 0, 0, 0, 0);
		func_143(2, "CM_DI_1", 0, 0, 0, 0);
		if (Local_5662.f_90 == 2)
		{
			func_169(0, 0, 0, 0, 0);
		}
	}
	if (iLocal_7676[3] >= iLocal_7921)
	{
		iLocal_7676[3] = 0;
	}
	if (iLocal_7676[3] < 0)
	{
		iLocal_7676[3] = (iLocal_7921 - 1);
	}
	if (iLocal_7921 > 1)
	{
		Var2 = { func_163(iLocal_7902[iLocal_7676[3]]) };
	}
	if (func_96(2) && iLocal_7921 > 1)
	{
		func_143(3, "CM_IN_DIA", 0, 1, 0, 0);
		func_143(3, &Var2, 0, 1, 0, 0);
	}
	else
	{
		func_143(3, "CM_IN_DIA", 0, 0, 0, 0);
		func_143(3, "CM_DI_1", 0, 0, 0, 0);
		if (Local_5662.f_90 == 3)
		{
			func_169(0, 0, 0, 0, 0);
		}
	}
	if (func_108())
	{
		func_150(4, &(iLocal_7676[4]), "CM_BOOD", func_109(0), "CM_DI_", 1);
	}
	else
	{
		func_150(4, &(iLocal_7676[4]), "CM_BOOD", func_109(0), "CM_DI_", 0);
		if (Local_5662.f_90 == 4)
		{
			func_169(0, 0, 0, 0, 0);
		}
	}
	if (func_111() > 0 && func_96(6))
	{
		func_143(5, "CM_VEHOPT", 0, 1, 0, 0);
	}
	else
	{
		func_143(5, "CM_VEHOPT", 0, 0, 0, 0);
	}
	func_143(6, "CM_PROPEDIT", 0, func_96(7), 0, 0);
	func_143(7, "PM_PANE_MOV", 0, 1, 0, 0);
	func_143(8, "CM_IN_RET", 0, 1, 0, 0);
	func_143(9, "CM_IN_EXI", 0, 1, 0, 0);
	if (func_46(Local_6878[iVar1 /*32*/].f_27))
	{
		if (Local_5662.f_90 == 2 || Local_5662.f_90 == 3)
		{
			func_122(Local_5662.f_90, 1, 0);
		}
		else
		{
			func_122(Local_5662.f_90, 1, 1);
		}
	}
	else
	{
		func_122(Local_5662.f_90, 1, 1);
	}
}

struct<16> func_163(int iParam0)//Position - 0xD502
{
	struct<16> Var0;
	
	StringCopy(&Var0, "CM_DI_", 64);
	StringIntConCat(&Var0, iParam0 + 1, 64);
	return Var0;
}

char* func_164(int iParam0, int iParam1)//Position - 0xD51F
{
	switch (iParam0)
	{
		case 0:
			switch (iParam1)
			{
				case 0:
					return "IAP_NONE";
				
				case 1:
					return "IAPS_SMOK";
				
				case 2:
					return "IAPS_FING";
				
				case 3:
					return "IAPS_DANCE";
				
				case 4:
					return "IAPS_ROCK";
				
				case 5:
					return "IAPS_WANK";
				
				case 7:
					return "IAP_DLC37";
				
				case 8:
					return "IAP_DLC12";
				
				case 9:
					return "IAP_DLC18";
				
				case 10:
					return "IAP_DLC23";
				
				case 6:
					return "IAP_DLC1";
				
				case 11:
					return "IAP_DLC42";
				
				case 12:
					return "IAP_DLC5";
				
				case 13:
					return "IAP_DLC4";
				
				case 14:
					return "IAP_DLC35";
				
				case 15:
					return "IAP_DLC2";
				
				case 17:
					return "D_IAP_DLC44";
				
				case 16:
					return "D_IAP_DLC29";
				
				case 18:
					return "D_IAP_DLC45";
				
				case 19:
					return "D_IAP_DLC46";
				
				case 20:
					return "D_IAP_DLC47";
				
				case 21:
					return "D_IAP_DLC48";
				
				case 22:
					return "D_IAP_DLC49";
				
				case 23:
					return "D_IAP_DLC20";
				
				case 25:
					return "D_IAP_DLC9";
				
				case 24:
					return "D_IAP_DLC30";
				
				case 28:
					return "D_IAP_DLC28";
				
				case 27:
					return "D_IAP_DLC21";
				
				case 26:
					return "D_IAP_DLC32";
				
				case 29:
					return "D_IAP_DLC34";
				
				case 30:
					return "D_IAP_DLC3";
				
				default:
			}
			break;
		
		case 1:
			switch (iParam1)
			{
				case 0:
					return "IAC_BROL";
				
				case 1:
					return "IAC_FING";
				
				case 2:
					return "IAC_WANK";
				
				case 3:
					return "IAC_UPYO";
				
				default:
			}
			break;
		
		case 2:
			switch (iParam1)
			{
				case 0:
					return "IAP_NONE";
				
				case 1:
					return "IAP_FING";
				
				case 2:
					return "IAP_ROCK";
				
				case 3:
					return "IAP_SALU";
				
				case 4:
					return "IAP_WANK";
				
				case 29:
					return "IAP_SMOKE";
				
				case 30:
					return "IAP_DRINK1";
				
				case 31:
					return "IAP_DRINK2";
				
				case 32:
					return "IAP_EAT1";
				
				case 33:
					return "IAP_EAT2";
				
				case 34:
					return "IAP_EAT3";
				
				case 6:
					return "IAP_DLC37";
				
				case 7:
					return "IAP_DLC12";
				
				case 8:
					return "IAP_DLC18";
				
				case 5:
					return "IAP_DLC1";
				
				case 9:
					return "IAP_DLC42";
				
				case 10:
					return "IAP_DLC5";
				
				case 11:
					return "IAP_DLC4";
				
				case 12:
					return "IAP_DLC35";
				
				case 13:
					return "IAP_DLC2";
				
				case 15:
					return "D_IAP_DLC44";
				
				case 14:
					return "D_IAP_DLC29";
				
				case 16:
					return "D_IAP_DLC45";
				
				case 17:
					return "D_IAP_DLC46";
				
				case 18:
					return "D_IAP_DLC47";
				
				case 19:
					return "D_IAP_DLC48";
				
				case 20:
					return "D_IAP_DLC49";
				
				case 21:
					return "D_IAP_DLC20";
				
				case 23:
					return "D_IAP_DLC9";
				
				case 22:
					return "D_IAP_DLC30";
				
				case 24:
					return "D_IAP_DLC32";
				
				case 25:
					return "D_IAP_DLC21";
				
				case 26:
					return "D_IAP_DLC28";
				
				case 27:
					return "D_IAP_DLC34";
				
				case 28:
					return "D_IAP_DLC3";
				
				default:
			}
			break;
	}
	return "";
}

char* func_165(int iParam0)//Position - 0xD8F0
{
	switch (iParam0)
	{
		case 0:
			return "CM_LOC_0";
			break;
		
		case 1:
			return "CM_LOC_1";
			break;
		
		case 2:
			return "CM_LOC_2";
			break;
		
		case 3:
			return "CM_LOC_3";
			break;
		
		case 4:
			return "CM_LOC_4";
			break;
		
		case 5:
			return "CM_LOC_5";
			break;
		
		case 6:
			return "CM_LOC_6";
			break;
		
		case 7:
			return "CM_LOC_7";
			break;
		
		case 8:
			return "CM_LOC_8";
			break;
		
		case 9:
			return "CM_LOC_9";
			break;
		
		case 10:
			return "CM_LOC_10";
			break;
		
		case 11:
			return "CM_LOC_11";
			break;
		
		case 12:
			return "CM_LOC_12";
			break;
		
		case 13:
			return "CM_LOC_13";
			break;
		
		case 14:
			return "CM_LOC_14";
			break;
		
		case 15:
			return "CM_LOC_15";
			break;
		
		case 16:
			return "CM_LOC_16";
			break;
		
		case 17:
			return "CM_LOC_17";
			break;
		
		case 18:
			return "CM_LOC_18";
			break;
		
		case 19:
			return "CM_LOC_19";
			break;
		
		case 20:
			return "CM_LOC_20";
			break;
		
		case 21:
			return "CM_LOC_21";
			break;
		
		case 22:
			return "CM_LOC_22";
			break;
		
		case 23:
			return "CM_LOC_23";
			break;
		
		case 24:
			return "CM_LOC_24";
			break;
		
		case 25:
			return "CM_LOC_25";
			break;
		
		case 26:
			return "CM_LOC_26";
			break;
		
		case 27:
			return "CM_LOC_27";
			break;
		
		case 28:
			return "CM_LOC_28";
			break;
		
		case 29:
			return "CM_LOC_WP";
			break;
	}
	return "INVALID!";
}

void func_166(int iParam0)//Position - 0xDAE3
{
	Global_17257.f_5095 = iParam0;
}

void func_167(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0xDAF3
{
	Global_17257.f_4953[0] = iParam0;
	Global_17257.f_4953[1] = iParam1;
	Global_17257.f_4953[2] = iParam2;
	Global_17257.f_4953[3] = iParam3;
	Global_17257.f_4953[4] = iParam4;
}

void func_168(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0xDB32
{
	Global_17257.f_4926[0] = iParam0;
	Global_17257.f_4926[1] = iParam1;
	Global_17257.f_4926[2] = iParam2;
	Global_17257.f_4926[3] = iParam3;
	Global_17257.f_4926[4] = iParam4;
	Global_17257.f_5096 = 0;
	if (iParam0 != 0)
	{
		Global_17257.f_5096++;
	}
	if (iParam1 != 0)
	{
		Global_17257.f_5096++;
	}
	if (iParam2 != 0)
	{
		Global_17257.f_5096++;
	}
	if (iParam3 != 0)
	{
		Global_17257.f_5096++;
	}
	if (iParam4 != 0)
	{
		Global_17257.f_5096++;
	}
}

void func_169(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0xDBDC
{
	Global_17257.f_4945[0] = iParam0;
	Global_17257.f_4945[1] = iParam1;
	Global_17257.f_4945[2] = iParam2;
	Global_17257.f_4945[3] = iParam3;
	Global_17257.f_4945[4] = iParam4;
}

void func_170(int iParam0)//Position - 0xDC1B
{
	int iVar0;
	var uVar1;
	
	Global_17257.f_4639 = 0;
	Global_17257.f_4640 = 0;
	iVar0 = 0;
	while (iVar0 < 12)
	{
		StringCopy(&(Global_17257.f_4834[iVar0 /*4*/]), "", 16);
		Global_17257.f_4883[iVar0] = -1;
		Global_17257.f_4896[iVar0] = 345;
		Global_17257.f_4909[iVar0] = 32;
		iVar0++;
	}
	Global_17257.f_4922 = 0;
	StringCopy(&(Global_2566711.f_16), "", 16);
	Global_2566711.f_20 = -1;
	if (gameplay::is_pc_version())
	{
		if (!func_171(&uVar1, 0, iParam0))
		{
			return;
		}
		graphics::_push_scaleform_movie_function(Global_17257.f_5530[uVar1 /*10*/], "TOGGLE_MOUSE_BUTTONS");
		graphics::_push_scaleform_movie_function_parameter_bool(false);
		graphics::_pop_scaleform_movie_function_void();
	}
}

bool func_171(var uParam0, int iParam1, int iParam2)//Position - 0xDCC5
{
	char cVar0[64];
	int iVar16;
	int iVar17;
	int iVar18;
	
	if (iParam2 == -1)
	{
		if (network::network_is_game_in_progress() && network::network_get_this_script_is_network_script())
		{
			iParam2 = network::_0x638A3A81733086DB();
		}
	}
	StringCopy(&cVar0, script::get_this_script_name(), 64);
	StringIntConCat(&cVar0, iParam2, 64);
	iVar16 = gameplay::get_hash_key(&cVar0);
	iVar18 = -1;
	iVar17 = 0;
	while (iVar17 < 6)
	{
		if (Global_17257.f_5591[iVar17] == iVar16)
		{
			*uParam0 = iVar17;
			return true;
		}
		else if (Global_17257.f_5591[iVar17] == 0)
		{
			iVar18 = iVar17;
		}
		iVar17++;
	}
	if (iParam1)
	{
		if (iVar18 != -1)
		{
			Global_17257.f_5591[iVar18] = iVar16;
			*uParam0 = iVar18;
			return true;
		}
	}
	return false;
}

void func_172()//Position - 0xDD62
{
	func_173(1);
}

void func_173(int iParam0)//Position - 0xDD6F
{
	int iVar0;
	int iVar1;
	float fVar2;
	
	iVar0 = 0;
	while (iVar0 < 256)
	{
		StringCopy(&(Global_17257.f_73[iVar0 /*6*/]), "", 24);
		iVar1 = 0;
		while (iVar1 < 4)
		{
			Global_17257.f_2124[iVar0 /*5*/][iVar1] = 0;
			iVar1++;
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 32)
	{
		StringCopy(&(Global_2444596[iVar0 /*16*/]), "", 64);
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 256)
	{
		Global_17257.f_3918[iVar0] = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 128)
	{
		Global_17257.f_4175[iVar0] = 0f;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 128)
	{
		Global_17257.f_4433[iVar0] = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 128)
	{
		Global_17257.f_4959[iVar0] = 0;
		Global_17257.f_5097[iVar0] = 0;
		Global_17257.f_5226[iVar0] = 0;
		Global_17257.f_5746[iVar0] = 0f;
		Global_17257.f_5355[iVar0] = 0;
		Global_17257.f_5612[iVar0] = 0f;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 5)
	{
		Global_17257.f_4926[iVar0] = 0;
		Global_17257.f_4938[iVar0] = 0f;
		Global_17257.f_4932[iVar0] = -1f;
		Global_17257.f_4945[iVar0] = 0;
		Global_17257.f_4953[iVar0] = 1;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 12)
	{
		StringCopy(&(Global_17257.f_4834[iVar0 /*4*/]), "", 16);
		Global_17257.f_4883[iVar0] = -1;
		Global_17257.f_4896[iVar0] = 345;
		Global_17257.f_4909[iVar0] = 32;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 51)
	{
		StringCopy(&(Global_17257.f_5886[iVar0 /*16*/]), "", 64);
		StringCopy(&(Global_17257.f_6703[iVar0 /*16*/]), "", 64);
		iVar0++;
	}
	StringCopy(&(Global_2566711.f_16), "", 16);
	Global_2566711.f_20 = -1;
	Global_17257 = 0;
	Global_17257.f_5088 = 0;
	Global_17257.f_5089 = 0;
	Global_17257.f_5090 = 0;
	Global_17257.f_5092 = 0;
	Global_17257.f_5093 = 0;
	Global_17257.f_5094 = 0;
	Global_17257.f_5091 = 0;
	Global_17257.f_5741 = 0;
	Global_17257.f_5606 = 0;
	Global_17257.f_5605 = 0;
	Global_17257.f_5607 = 0;
	StringCopy(&(Global_17257.f_4562), "", 16);
	Global_17257.f_4632 = 0;
	Global_17257.f_4633 = 0;
	Global_17257.f_4634 = 0;
	Global_17257.f_4635 = 0;
	Global_17257.f_4636 = 0;
	Global_17257.f_4637 = 0;
	iVar0 = 0;
	while (iVar0 < 4)
	{
		Global_17257.f_4566[iVar0] = 0;
		iVar0++;
	}
	Global_17257.f_4638 = 0;
	StringCopy(&(Global_2566711.f_21), "", 16);
	Global_2566711.f_61 = 0;
	Global_2566711.f_62 = 0;
	Global_2566711.f_63 = 0;
	Global_2566711.f_64 = 0;
	Global_2566711.f_65 = 0;
	Global_2566711.f_66 = 0;
	iVar0 = 0;
	while (iVar0 < 4)
	{
		Global_2566711.f_25[iVar0] = 0;
		iVar0++;
	}
	Global_2566711.f_67 = 0;
	StringCopy(&(Global_17257.f_1), "", 16);
	Global_17257.f_4944 = 0f;
	Global_17257.f_68 = 0;
	Global_17257.f_69 = 0;
	Global_17257.f_70 = 0;
	Global_17257.f_71 = 0;
	Global_17257.f_72 = 0;
	iVar0 = 0;
	while (iVar0 < 4)
	{
		Global_17257.f_5[iVar0] = 0;
		iVar0++;
	}
	Global_17257.f_5611 = 0;
	Global_17257.f_5610 = 0;
	Global_17257.f_5608 = 0;
	Global_17257.f_5609 = 0;
	Global_17257.f_4639 = 0;
	Global_17257.f_4640 = 0;
	Global_17257.f_5095 = 10;
	Global_17257.f_5096 = 0;
	Global_17257.f_5743 = 0f;
	Global_17257.f_5744 = 0f;
	Global_17257.f_5598 = 0;
	Global_17257.f_5599 = 0;
	Global_17257.f_5600 = 0f;
	Global_17257.f_5601 = 0;
	Global_17257.f_5603 = 0;
	Global_17257.f_5602 = 0;
	Global_17257.f_5604 = 0;
	Global_17257.f_7890 = 0;
	iVar0 = 0;
	while (iVar0 < 2)
	{
		Global_17257.f_5875[iVar0] = -1;
		Global_17257.f_5878[iVar0] = -1;
		iVar0++;
	}
	Global_17257.f_4951 = 0f;
	Global_17257.f_4922 = 0;
	Global_17257.f_4952 = 0;
	iVar0 = 0;
	while (iVar0 < Global_17257.f_5881)
	{
		Global_17257.f_5881[iVar0] = 0;
		iVar0++;
	}
	Global_17257.f_7869 = 0;
	Global_17257.f_7864 = 0;
	Global_17257.f_7874 = 0;
	Global_17257.f_7879 = 0;
	Global_17257.f_7884 = 0;
	Global_17257.f_7886 = 0;
	Global_17257.f_7892 = 0;
	Global_17254 = 0.05f;
	Global_17255 = 0.05f;
	Global_17256 = 0.225f;
	fVar2 = graphics::_get_screen_aspect_ratio(0);
	if (iParam0)
	{
		Global_17256 = (0.225f * ((16f / 9f) / fVar2));
	}
	else if (fVar2 < 1.77777f)
	{
		Global_17256 = (0.225f * ((16f / 9f) / fVar2));
	}
	else
	{
		Global_17256 = 0.225f;
	}
}

void func_174()//Position - 0xE22D
{
	var uVar0[1];
	
	if (iLocal_6555 == 5)
	{
		if (iLocal_9776)
		{
			if (Global_101186.f_31035.f_5 < 3)
			{
				func_176("CM_WHLP02", -1);
				Global_101186.f_31035.f_5++;
				iLocal_9776 = 0;
			}
		}
		if (controls::is_disabled_control_just_pressed(0, 23))
		{
			if (iLocal_9777)
			{
				if (!func_98(player::player_ped_id()))
				{
					if (ped::get_ped_nearby_vehicles(player::player_ped_id(), &uVar0) > 0)
					{
						if (func_175(player::player_ped_id(), uVar0[0], 1) < 10f)
						{
							func_176("CM_WHLP01", -1);
							iLocal_9777 = 0;
							iLocal_9779 = entity::get_entity_model(player::player_ped_id());
						}
					}
				}
			}
		}
		if (!iLocal_9777)
		{
			if (!ped::is_ped_injured(player::player_ped_id()))
			{
				if (entity::get_entity_model(player::player_ped_id()) != iLocal_9779)
				{
					iLocal_9777 = 1;
				}
			}
		}
		if (iLocal_7588)
		{
			if (!iLocal_7589)
			{
				if (controls::is_disabled_control_just_pressed(0, 44) && !ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
				{
					iLocal_7589 = 1;
					func_176("CM_CHLP01", -1);
					iLocal_9779 = entity::get_entity_model(player::player_ped_id());
				}
			}
			else if (entity::get_entity_model(player::player_ped_id()) != iLocal_9779)
			{
				iLocal_7589 = 0;
			}
		}
		else if (iLocal_7589)
		{
			iLocal_7589 = 0;
		}
		if (controls::is_disabled_control_just_pressed(0, 37) && (gameplay::get_game_timer() - iLocal_9780) > 5000)
		{
			if (func_62(0))
			{
				if ((!iLocal_9778 && !ui::is_help_message_on_screen()) && Global_101186.f_31035.f_5 < 3)
				{
					func_176("CM_WHLP03", 3000);
					iLocal_9778 = 1;
				}
			}
			else
			{
				func_176("CM_WHLP01WPN", 3000);
			}
		}
	}
}

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

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

void func_177()//Position - 0xE429
{
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		func_179();
		if (func_178())
		{
			ped::set_ped_can_play_gesture_anims(player::player_ped_id(), 0);
		}
	}
}

bool func_178()//Position - 0xE451
{
	if (Global_2557205.f_770 == 1)
	{
		return true;
	}
	return false;
}

void func_179()//Position - 0xE469
{
	if (!ai::is_ped_still(player::player_ped_id()))
	{
		Global_2557205.f_790 = gameplay::get_game_timer();
	}
	if (!func_353(player::player_ped_id()))
	{
		Global_2557205.f_791 = gameplay::get_game_timer();
	}
	func_185(&Global_2498229, &Global_2557205, player::player_ped_id(), 0);
	if ((Global_2557205.f_775 || Global_2557205.f_778) && Global_2557205.f_770)
	{
		func_180(player::player_ped_id(), 0);
	}
	if (Global_2557205.f_770)
	{
		if ((!Global_2557205.f_8 && !Global_2557205.f_21.f_8) && !Global_2557205.f_42.f_8)
		{
			Global_2557205.f_770 = 0;
			Global_2557205.f_771 = -1;
			Global_2557205.f_772 = -1;
		}
	}
}

void func_180(int iParam0, int iParam1)//Position - 0xE524
{
	if (func_184(iParam0))
	{
		controls::disable_control_action(0, 36, 1);
		controls::disable_control_action(0, 21, 1);
		controls::disable_control_action(0, 22, 1);
		controls::disable_control_action(0, 37, 1);
		controls::disable_control_action(0, 14, 1);
		controls::disable_control_action(0, 15, 1);
		controls::disable_control_action(0, 16, 1);
		controls::disable_control_action(0, 17, 1);
		controls::disable_control_action(0, 45, 1);
		if (((Global_2557205.f_775 || Global_2557205.f_778) || func_183(1)) || func_5())
		{
			controls::disable_control_action(0, 26, 1);
			controls::disable_control_action(0, 79, 1);
		}
		controls::disable_control_action(0, 24, 1);
		controls::disable_control_action(0, 44, 1);
		controls::disable_control_action(0, 45, 1);
		controls::disable_control_action(0, 47, 1);
		controls::disable_control_action(0, 48, 1);
		controls::disable_control_action(0, 49, 1);
		controls::disable_control_action(0, 51, 1);
		controls::disable_control_action(0, 19, 1);
		controls::disable_control_action(0, 27, 1);
		controls::disable_control_action(0, 140, 1);
		controls::disable_control_action(0, 141, 1);
		controls::disable_control_action(0, 143, 1);
		controls::disable_control_action(0, 157, 1);
		controls::disable_control_action(0, 158, 1);
		controls::disable_control_action(0, 159, 1);
		controls::disable_control_action(0, 160, 1);
		controls::disable_control_action(0, 161, 1);
		controls::disable_control_action(0, 162, 1);
		controls::disable_control_action(0, 163, 1);
		controls::disable_control_action(0, 164, 1);
		controls::disable_control_action(0, 165, 1);
		controls::disable_control_action(0, 257, 1);
		controls::disable_control_action(0, 86, 1);
		controls::disable_control_action(0, 25, 1);
		controls::disable_control_action(0, 50, 1);
		controls::disable_control_action(0, 0, 1);
		if (Global_2557205.f_775)
		{
			controls::disable_control_action(0, 71, 1);
			controls::disable_control_action(0, 72, 1);
			controls::disable_control_action(0, 91, 1);
			controls::disable_control_action(0, 92, 1);
			controls::disable_control_action(0, 68, 1);
			controls::disable_control_action(0, 69, 1);
			controls::disable_control_action(0, 70, 1);
			controls::disable_control_action(0, 75, 1);
			controls::disable_control_action(0, 73, 1);
		}
		if (iParam1)
		{
			controls::disable_control_action(0, 30, 1);
			controls::disable_control_action(0, 31, 1);
			controls::disable_control_action(0, 32, 1);
			controls::disable_control_action(0, 33, 1);
			controls::disable_control_action(0, 34, 1);
			controls::disable_control_action(0, 35, 1);
		}
	}
	if (entity::does_entity_exist(iParam0))
	{
		if (!entity::is_entity_dead(iParam0, 0))
		{
			if (ped::is_ped_ducking(iParam0))
			{
				ped::set_ped_ducking(iParam0, 0);
			}
			if (ped::get_ped_stealth_movement(iParam0))
			{
				ped::set_ped_stealth_movement(iParam0, 0, 0);
			}
			if (!ped::get_ped_combat_movement(iParam0) == 0)
			{
				ped::set_ped_combat_movement(iParam0, 0);
			}
			if (ped::is_ped_using_action_mode(iParam0))
			{
				ped::set_ped_using_action_mode(iParam0, false, -1, 0);
			}
		}
		ped::set_ped_reset_flag(iParam0, 200, true);
		ped::set_ped_reset_flag(iParam0, 313, true);
		if (func_184(iParam0) && !func_182())
		{
			func_181();
		}
	}
}

void func_181()//Position - 0xE794
{
	if (!Global_14413.f_1 == 1)
	{
		if (func_42(0))
		{
			func_39(0);
		}
		gameplay::set_bit(&Global_2284, 2);
	}
}

bool func_182()//Position - 0xE7BC
{
	if (gameplay::is_bit_set(Global_2285, 3))
	{
		return true;
	}
	return false;
}

bool func_183(int iParam0)//Position - 0xE7D7
{
	if (!Global_2557205.f_784 == 0)
	{
		if (iParam0 || !Global_2557205.f_784 == 4)
		{
			return true;
		}
	}
	return false;
}

bool func_184(int iParam0)//Position - 0xE806
{
	if (entity::does_entity_exist(iParam0))
	{
		if (iParam0 == player::player_ped_id() && !cutscene::is_cutscene_playing())
		{
			return true;
		}
	}
	return false;
}

void func_185(var uParam0, var uParam1, int iParam2, int iParam3)//Position - 0xE830
{
	int iVar0;
	int iVar1;
	
	uParam0->f_119 = iParam2;
	if ((entity::does_entity_exist(iParam2) && !entity::is_entity_dead(iParam2, 0)) && !iParam2 == player::player_ped_id())
	{
		if (ped::is_ped_male(iParam2))
		{
			uParam0->f_8 = 1;
		}
		else
		{
			uParam0->f_8 = 0;
		}
	}
	if (iParam3)
	{
		if (uParam1->f_3)
		{
			if (!uParam0->f_1681)
			{
				if (func_352(uParam1))
				{
					func_351(uParam1);
				}
			}
		}
	}
	if (((*uParam1 > -1 && uParam1->f_1 > -1) && !uParam1->f_7) && entity::does_entity_exist(iParam2))
	{
		uParam1->f_10 = 0;
		if (func_184(iParam2))
		{
			if (Global_2557205.f_770 && !uParam1->f_8)
			{
				uParam1->f_7 = 1;
				return;
			}
		}
		if (Global_2557205.f_827)
		{
			uParam1->f_7 = 1;
			return;
		}
		if (!func_350(uParam1, iParam2) && !uParam0->f_1681)
		{
			*uParam1 = -1;
			uParam1->f_1 = -1;
		}
		else
		{
			func_347(uParam1);
			func_345(uParam0, uParam1, 0);
			if (!uParam0->f_1682)
			{
				if (ped::is_ped_in_any_vehicle(uParam0->f_119, 0))
				{
					func_341(uParam0);
					uParam0->f_1682 = 1;
				}
			}
			else if (!ped::is_ped_in_any_vehicle(uParam0->f_119, 0))
			{
				uParam0->f_1682 = 0;
			}
			if (uParam1->f_4 == 1 && uParam0->f_1683 == 0)
			{
				if (uParam1->f_14)
				{
				}
				else if (((((uParam1->f_13 == 0 && !func_340(uParam0->f_119, uParam1->f_13)) || !func_339(*uParam0, uParam0->f_1)) || func_326(uParam0->f_119, *uParam0, uParam0->f_1, uParam1->f_4, uParam1->f_5, uParam1->f_12)) || func_321(uParam0->f_119, *uParam0, uParam0->f_1, uParam1->f_4, uParam1->f_5)) || (uParam0->f_119 == player::player_ped_id() && func_5()))
				{
					uParam1->f_4 = 0;
					if (func_320(*uParam0, uParam0->f_1))
					{
						uParam1->f_7 = 1;
						return;
					}
				}
			}
			uParam1->f_12 = 0;
			if (ped::is_ped_in_any_vehicle(uParam0->f_119, 0))
			{
				if (ped::_0xF2385935BFFD4D92(uParam0->f_119))
				{
					uParam1->f_12 = 1;
				}
			}
			if (uParam1->f_5)
			{
				if (!func_182())
				{
					uParam1->f_5 = 0;
				}
			}
			iVar0 = true;
			if ((((((!uParam1->f_4 && uParam1->f_3) && func_184(uParam0->f_119)) && uParam0->f_121.f_373) && !uParam0->f_1681) && !Global_2557205.f_770) && 1)
			{
				if (!uParam1->f_11)
				{
					uParam1->f_20 = func_319();
					uParam1->f_11 = 1;
					iVar0 = false;
				}
				else if (network::get_time_difference(func_319(), uParam1->f_20) < 200)
				{
					iVar0 = false;
				}
			}
			else if (uParam1->f_11)
			{
				uParam1->f_11 = 0;
			}
			if (!uParam0->f_1681 || (uParam1->f_4 == 1 && uParam0->f_1683 == 0))
			{
				if (!entity::is_entity_dead(iParam2, 0) && !func_318(*uParam0, uParam0->f_1))
				{
					if ((uParam1->f_5 && func_317(*uParam0, uParam0->f_1)) || !uParam1->f_5)
					{
						if (streaming::does_anim_dict_exist(func_312(uParam0, uParam1->f_4, uParam1->f_5)))
						{
							if (func_308(uParam0, uParam1->f_4, uParam1->f_5))
							{
								if (uParam1->f_3 || uParam1->f_4)
								{
									uParam1->f_19 = func_319();
									if (!ped::is_ped_injured(uParam0->f_119) && (func_307(*uParam0) || func_306()))
									{
										if ((!func_305(*uParam0, uParam0->f_1) && func_304()) || !func_304())
										{
											if (!func_303(*uParam0, uParam0->f_1))
											{
												if (!func_326(uParam0->f_119, *uParam0, uParam0->f_1, uParam1->f_4, uParam1->f_5, uParam1->f_12) && !func_321(uParam0->f_119, *uParam0, uParam0->f_1, uParam1->f_4, uParam1->f_5))
												{
													gameplay::clear_bit(&Global_1722952, 20);
													if ((!func_184(uParam0->f_119) || (func_302(*uParam0, uParam0->f_1) && func_300(func_301(*uParam0, uParam0->f_1), -1, 0) > 0)) || !func_302(*uParam0, uParam0->f_1))
													{
														if ((!Global_2557205.f_770 || (func_184(uParam0->f_119) && !uParam1->f_8 == 1)) || (uParam1->f_4 == 1 && uParam0->f_1683 == 0))
														{
															if (iVar0)
															{
																func_299(uParam0, uParam1);
																if (uParam1->f_4)
																{
																	if (uParam0->f_1681 && uParam0->f_560.f_12)
																	{
																		func_294(&(uParam0->f_560), 0, 1);
																	}
																	func_288(uParam0, 3, 0, uParam1->f_15, 0, uParam1->f_13, uParam1->f_14);
																}
																else if (!uParam0->f_121.f_373)
																{
																	func_288(uParam0, 1, 1, 0, 1, uParam1->f_13, uParam1->f_14);
																}
																else
																{
																	func_288(uParam0, 0, 0, 0, 0, uParam1->f_13, uParam1->f_14);
																}
																uParam0->f_1681 = 1;
																if (uParam1->f_4)
																{
																	uParam0->f_1683 = 1;
																}
																if (uParam1->f_5)
																{
																	uParam0->f_1684 = 1;
																}
																uParam0->f_560 = { *uParam0 };
																func_180(uParam0->f_119, func_287(uParam0));
																if (func_184(uParam0->f_119))
																{
																	Global_2557205.f_770 = 1;
																	Global_2557205.f_771 = *uParam0;
																	Global_2557205.f_772 = uParam0->f_1;
																}
																uParam1->f_8 = 1;
															}
														}
														else
														{
															uParam1->f_4 = 0;
															uParam1->f_3 = 0;
															uParam1->f_7 = 1;
														}
													}
													else
													{
														uParam1->f_3 = 0;
														uParam1->f_4 = 0;
														if (!func_182())
														{
															gameplay::set_bit(&(Global_2464975.f_1638), 5);
														}
														func_283();
													}
												}
												else
												{
													uParam1->f_3 = 0;
													uParam1->f_4 = 0;
													gameplay::set_bit(&Global_1722952, 20);
													func_283();
												}
											}
											else
											{
												uParam1->f_3 = 0;
												uParam1->f_4 = 0;
												func_283();
											}
										}
										else
										{
											uParam1->f_3 = 0;
											uParam1->f_4 = 0;
											func_283();
										}
									}
									else
									{
										func_299(uParam0, uParam1);
										uParam1->f_3 = 0;
										uParam1->f_4 = 0;
										uParam1->f_7 = 1;
									}
								}
							}
							else
							{
								if (uParam1->f_3 || uParam1->f_4)
								{
									func_180(uParam0->f_119, 0);
								}
								uParam1->f_19 = func_319();
							}
						}
						else
						{
							if (uParam1->f_3 || uParam1->f_4)
							{
								uParam1->f_3 = 0;
								uParam1->f_4 = 0;
								func_283();
							}
							else
							{
								uParam1->f_7 = 1;
							}
							uParam1->f_19 = func_319();
						}
					}
					else
					{
						uParam1->f_3 = 0;
						uParam1->f_4 = 0;
						uParam1->f_7 = 1;
					}
				}
				else
				{
					uParam1->f_3 = 0;
					uParam1->f_4 = 0;
					uParam1->f_7 = 1;
				}
			}
			else
			{
				uParam1->f_19 = func_319();
				if (uParam1->f_3 || Global_2557205 == 3)
				{
					func_207(&(uParam0->f_560), uParam1);
					func_180(uParam0->f_560.f_119, func_287(uParam0));
					if (!entity::is_entity_dead(uParam0->f_560.f_119, 0))
					{
						if (func_326(uParam0->f_560.f_119, uParam0->f_560, uParam0->f_560.f_1, uParam0->f_1683, uParam0->f_1684, uParam1->f_12))
						{
							iVar1 = true;
						}
						else if (uParam0->f_1683)
						{
							if (!func_206(&(uParam0->f_560)) && func_205(uParam0->f_560.f_119))
							{
								if (uParam1->f_13 || uParam1->f_14)
								{
									func_288(&(uParam0->f_560), 3, 0, 0, 0, uParam1->f_13, uParam1->f_14);
								}
								else
								{
									iVar1 = true;
								}
							}
						}
						else if (func_204(&(uParam0->f_560)) && uParam0->f_560.f_121.f_373)
						{
							if (func_203(&(uParam0->f_560)))
							{
								if (!Global_2418529[player::player_id() /*313*/] == 10)
								{
									if (((((uParam0->f_560.f_121.f_373 && uParam0->f_560.f_121.f_374) && !((Global_2557205.f_775 || (func_202() && uParam0->f_560.f_119 == player::player_ped_id())) && !uParam0->f_560.f_13)) && !Global_2557205.f_778) && !(uParam1->f_9 == 1 && !uParam0->f_560.f_13)) || uParam1->f_6)
									{
										func_288(&(uParam0->f_560), 2, 0, 0, 0, 0, 0);
									}
									else
									{
										func_288(&(uParam0->f_560), 1, uParam0->f_560.f_121.f_375, 0, 0, 0, 0);
										if (uParam0->f_560.f_121.f_370)
										{
											if (!uParam0->f_560.f_9)
											{
												uParam0->f_560.f_9 = 1;
											}
										}
										uParam0->f_560.f_11 = 1;
									}
								}
							}
						}
						else if (func_201(&(uParam0->f_560)))
						{
							if (uParam0->f_560.f_121.f_370)
							{
								ped::set_ped_reset_flag(iParam2, 346, true);
							}
							if (((!uParam0->f_560.f_121.f_373 || (((Global_2557205.f_775 || Global_2557205.f_778) || (func_202() && uParam0->f_560.f_119 == player::player_ped_id())) && !uParam0->f_560.f_13)) || uParam0->f_560.f_11 == 1) || ((uParam1->f_9 == 1 && !uParam0->f_560.f_13) && !uParam1->f_6))
							{
								if (uParam0->f_560.f_11)
								{
									if (uParam0->f_560.f_121.f_370)
									{
										if (!uParam0->f_560.f_9)
										{
											uParam0->f_560.f_9 = 1;
										}
									}
									uParam0->f_560.f_11 = 0;
								}
							}
							else if (uParam0->f_560.f_121.f_373)
							{
								if ((func_196(&(uParam0->f_560)) && func_195(&(uParam0->f_560))) || uParam0->f_560.f_121.f_375)
								{
									func_288(&(uParam0->f_560), 2, uParam0->f_560.f_121.f_375, 0, 0, 0, 0);
								}
							}
						}
						else if (!func_193(&(uParam0->f_560)))
						{
							if (func_205(uParam0->f_560.f_119))
							{
								iVar1 = true;
							}
						}
					}
					else
					{
						iVar1 = true;
					}
					if (iVar1)
					{
						func_192(&(uParam0->f_560));
						uParam0->f_1681 = 0;
						uParam0->f_1683 = 0;
						uParam0->f_1684 = 0;
						uParam1->f_3 = 0;
						uParam1->f_4 = 0;
						uParam1->f_8 = 0;
						uParam1->f_6 = 0;
						uParam1->f_11 = 0;
						if (func_184(uParam0->f_560.f_119))
						{
							Global_2557205.f_770 = 0;
							Global_2557205.f_771 = -1;
							Global_2557205.f_772 = -1;
						}
						gameplay::clear_bit(&Global_1722952, 20);
					}
				}
			}
		}
		if (network::get_time_difference(func_319(), uParam1->f_19) > 7000 && Global_2557205.f_797 == -1)
		{
			uParam1->f_7 = 1;
			return;
		}
	}
	else if (!uParam1->f_10)
	{
		*uParam1 = -1;
		uParam1->f_1 = -1;
		uParam1->f_3 = 0;
		uParam1->f_4 = 0;
		uParam1->f_6 = 0;
		uParam1->f_7 = 0;
		uParam1->f_11 = 0;
		if (uParam0->f_1681)
		{
			func_192(&(uParam0->f_560));
			uParam0->f_1681 = 0;
			uParam0->f_1683 = 0;
			uParam0->f_1684 = 0;
			uParam1->f_8 = 0;
			if (func_184(uParam0->f_560.f_119))
			{
				Global_2557205.f_770 = 0;
				Global_2557205.f_771 = -1;
				Global_2557205.f_772 = -1;
			}
		}
		func_189(&(uParam0->f_560));
		func_345(uParam0, uParam1, 0);
		if (!uParam0->f_560.f_12)
		{
			uParam1->f_10 = 1;
		}
		gameplay::clear_bit(&Global_1722952, 20);
	}
	else
	{
		if (uParam1->f_6)
		{
			uParam1->f_6 = 0;
		}
		if (uParam1->f_7)
		{
			uParam1->f_7 = 0;
		}
	}
	if (!uParam0->f_1680 && (uParam0->f_1120 > -1 && uParam0->f_1120.f_1 > -1))
	{
		func_186(&(uParam0->f_1120));
		uParam0->f_1680 = 1;
	}
	else if ((((!uParam0->f_1680 && uParam0->f_110) && (uParam0->f_1120 == -1 && uParam0->f_1120.f_1 == -1)) && (uParam1->f_3 == 0 && uParam1->f_4 == 0)) && (*uParam0 > -1 && uParam0->f_1 > -1))
	{
		uParam0->f_1120 = { *uParam0 };
	}
}

void func_186(var uParam0)//Position - 0xF3B8
{
	if (!func_318(*uParam0, uParam0->f_1))
	{
		func_188(uParam0);
	}
	func_187(uParam0);
	Global_2557205.f_782 = -1;
	Global_2557205.f_783 = -1;
}

void func_187(var uParam0)//Position - 0xF3EE
{
	if (uParam0->f_121.f_370)
	{
		streaming::set_model_as_no_longer_needed(uParam0->f_121.f_376);
	}
}

void func_188(var uParam0)//Position - 0xF40B
{
	if (entity::does_entity_exist(uParam0->f_119))
	{
		if (!func_320(*uParam0, uParam0->f_1))
		{
			streaming::remove_anim_dict(func_312(uParam0, 0, 0));
		}
		if (func_339(*uParam0, uParam0->f_1))
		{
			streaming::remove_anim_dict(func_312(uParam0, 1, 0));
		}
		if (func_317(*uParam0, uParam0->f_1))
		{
			streaming::remove_anim_dict(func_312(uParam0, 0, 1));
		}
	}
}

void func_189(var uParam0)//Position - 0xF470
{
	if (uParam0->f_12)
	{
		if (func_190(uParam0))
		{
			func_294(uParam0, 0, uParam0->f_121.f_371);
		}
	}
	if (uParam0->f_9)
	{
		uParam0->f_9 = 0;
	}
	if (uParam0->f_10)
	{
		uParam0->f_10 = 0;
	}
	if (uParam0->f_119 == player::player_ped_id())
	{
		if (uParam0->f_1 == 1 || uParam0->f_1 == 29)
		{
			if (Global_2418529[player::player_id() /*313*/].f_44)
			{
				Global_2418529[player::player_id() /*313*/].f_44 = 0;
			}
		}
	}
}

bool func_190(var uParam0)//Position - 0xF4ED
{
	if ((!func_184(uParam0->f_119) || (network::network_does_network_id_exist(uParam0->f_113) && func_191(uParam0->f_113))) || entity::does_entity_exist(uParam0->f_112))
	{
		return true;
	}
	return false;
}

int func_191(int iParam0)//Position - 0xF532
{
	if (network::network_does_network_id_exist(iParam0))
	{
		network::network_request_control_of_network_id(iParam0);
		return network::network_has_control_of_network_id(iParam0);
	}
	return false;
}

void func_192(var uParam0)//Position - 0xF554
{
	func_189(uParam0);
	if (!ped::is_ped_injured(uParam0->f_119))
	{
		if (!uParam0->f_104)
		{
			ai::clear_ped_secondary_task(uParam0->f_119);
			if (!uParam0->f_120 == joaat("weapon_unarmed") && !uParam0->f_120 == 0)
			{
				if (weapon::has_ped_got_weapon(uParam0->f_119, uParam0->f_120, 0))
				{
					weapon::set_current_ped_weapon(uParam0->f_119, uParam0->f_120, false);
					uParam0->f_120 = joaat("weapon_unarmed");
				}
			}
		}
	}
	uParam0->f_111 = 0;
}

bool func_193(var uParam0)//Position - 0xF5C6
{
	if (uParam0->f_121.f_373)
	{
		if (!entity::is_entity_dead(uParam0->f_119, 0))
		{
			if (uParam0->f_104)
			{
				if (uParam0->f_102 == 2)
				{
					if (func_194(uParam0->f_119) && ai::is_playing_phone_gesture_anim(uParam0->f_119))
					{
						return true;
					}
				}
			}
			else if (entity::is_entity_playing_anim(uParam0->f_119, func_312(uParam0, 0, 0), &(uParam0->f_121.f_241), 3))
			{
				return true;
			}
		}
	}
	return false;
}

bool func_194(int iParam0)//Position - 0xF632
{
	if (ped::is_ped_running_mobile_phone_task(iParam0) && func_182())
	{
		return true;
	}
	return false;
}

bool func_195(var uParam0)//Position - 0xF651
{
	if (uParam0->f_121.f_377 == 0 || uParam0->f_107 >= uParam0->f_121.f_377)
	{
		return true;
	}
	return false;
}

bool func_196(var uParam0)//Position - 0xF67C
{
	float fVar0;
	float fVar1;
	
	if (uParam0->f_104)
	{
		fVar0 = ai::get_phone_gesture_anim_current_time(uParam0->f_119);
		fVar1 = ai::get_phone_gesture_anim_total_time(uParam0->f_119);
	}
	else
	{
		fVar0 = entity::get_entity_anim_current_time(uParam0->f_119, func_312(uParam0, 0, 0), &(uParam0->f_121.f_225));
		fVar1 = entity::get_entity_anim_total_time(uParam0->f_119, func_312(uParam0, 0, 0), &(uParam0->f_121.f_225));
	}
	if (func_200(uParam0, 1, uParam0->f_121.f_375, &(uParam0->f_108), uParam0->f_107 > 0) || fVar1 < 0.1f)
	{
		return true;
	}
	if (func_197(uParam0, 1))
	{
		return true;
	}
	return false;
}

bool func_197(var uParam0, int iParam1)//Position - 0xF70E
{
	if (uParam0->f_104)
	{
		if (iParam1 == uParam0->f_102)
		{
			if (func_194(uParam0->f_119) && ai::is_playing_phone_gesture_anim(uParam0->f_119))
			{
				return false;
			}
		}
	}
	else if (!entity::has_entity_anim_finished(uParam0->f_119, func_312(uParam0, 0, 0), func_198(uParam0, iParam1), 3))
	{
		return false;
	}
	return true;
}

var func_198(var uParam0, int iParam1)//Position - 0xF767
{
	switch (iParam1)
	{
		case 0:
			return func_199(&(uParam0->f_121.f_209));
		
		case 1:
			return func_199(&(uParam0->f_121.f_225));
		
		case 2:
			return func_199(&(uParam0->f_121.f_241));
		
		case 3:
			return func_199(&(uParam0->f_121.f_257));
		
		default:
	}
	return func_199(&(uParam0->f_121.f_225));
}

var func_199(var uParam0)//Position - 0xF7CD
{
	return uParam0;
}

bool func_200(var uParam0, int iParam1, int iParam2, var uParam3, int iParam4)//Position - 0xF7D7
{
	float fVar0;
	float fVar1;
	float fVar2;
	float fVar3;
	float fVar4;
	char* sVar5;
	char* sVar6;
	float fVar7;
	int iVar8;
	
	sVar5 = func_312(uParam0, 0, 0);
	sVar6 = func_198(uParam0, iParam1);
	if (uParam0->f_104)
	{
		if (func_194(uParam0->f_119) && ai::is_playing_phone_gesture_anim(uParam0->f_119))
		{
			fVar0 = ai::get_phone_gesture_anim_current_time(uParam0->f_119);
			fVar2 = ai::get_phone_gesture_anim_total_time(uParam0->f_119);
		}
		else
		{
			return false;
		}
	}
	else if (entity::is_entity_playing_anim(uParam0->f_119, sVar5, sVar6, 3))
	{
		fVar0 = entity::get_entity_anim_current_time(uParam0->f_119, sVar5, sVar6);
		fVar2 = entity::get_entity_anim_total_time(uParam0->f_119, sVar5, sVar6);
	}
	else
	{
		return false;
	}
	fVar1 = (fVar0 * fVar2);
	if (fVar0 < *uParam3)
	{
		*uParam3 = fVar0;
	}
	fVar4 = ((fVar0 - *uParam3) * fVar2);
	*uParam3 = fVar0;
	if (*uParam3 < 0f)
	{
		*uParam3 = 0f;
	}
	fVar4 = (fVar4 + 0.001f);
	if (iParam4)
	{
		if (fVar1 < fVar4)
		{
			return true;
		}
	}
	switch (uParam0->f_102)
	{
		case 0:
			fVar7 = 0f;
			break;
		
		case 1:
			if (!iParam2)
			{
				fVar7 = 0f;
			}
			else
			{
				fVar7 = 0.25f;
			}
			break;
		
		case 2:
			fVar7 = 0.25f;
			break;
	}
	if (uParam0->f_104)
	{
		iVar8 = 1;
	}
	else
	{
		iVar8 = 1;
	}
	fVar3 = ((fVar2 - (fVar7 * 1000f)) - (fVar4 * system::to_float(iVar8)));
	if (fVar1 >= fVar3)
	{
		return true;
	}
	return false;
}

bool func_201(var uParam0)//Position - 0xF924
{
	if (!entity::is_entity_dead(uParam0->f_119, 0))
	{
		if (uParam0->f_104)
		{
			if (uParam0->f_102 == 1)
			{
				if (uParam0->f_121.f_373)
				{
					return true;
				}
				else if (func_194(uParam0->f_119) && ai::is_playing_phone_gesture_anim(uParam0->f_119))
				{
					return true;
				}
			}
		}
		else if (entity::is_entity_playing_anim(uParam0->f_119, func_312(uParam0, 0, 0), &(uParam0->f_121.f_225), 3))
		{
			return true;
		}
	}
	return false;
}

int func_202()//Position - 0xF997
{
	if ((gameplay::is_orbis_version() || gameplay::is_durango_version()) || gameplay::is_pc_version())
	{
		if (network::network_is_game_in_progress())
		{
			return controls::is_control_pressed(2, 176);
		}
		else if ((((!controls::is_control_pressed(2, 177) && !controls::is_control_pressed(2, 172)) && !controls::is_control_pressed(2, 173)) && !controls::is_control_pressed(2, 175)) && !controls::is_control_pressed(2, 174))
		{
			return controls::is_control_pressed(2, 176);
		}
		else
		{
			return false;
		}
	}
	return controls::is_control_pressed(2, 201);
}

bool func_203(var uParam0)//Position - 0xFA25
{
	if (func_200(uParam0, 0, 0, &(uParam0->f_108), 0))
	{
		return true;
	}
	else if (func_197(uParam0, 0))
	{
		return true;
	}
	return false;
}

bool func_204(var uParam0)//Position - 0xFA53
{
	if (uParam0->f_121.f_373)
	{
		if (!entity::is_entity_dead(uParam0->f_119, 0))
		{
			if (uParam0->f_104)
			{
				if (uParam0->f_102 == 0)
				{
					if (uParam0->f_121.f_373)
					{
						return true;
					}
					else if (func_194(uParam0->f_119) && ai::is_playing_phone_gesture_anim(uParam0->f_119))
					{
						return true;
					}
				}
			}
			else if (entity::is_entity_playing_anim(uParam0->f_119, func_312(uParam0, 0, 0), &(uParam0->f_121.f_209), 3))
			{
				return true;
			}
		}
	}
	return false;
}

bool func_205(int iParam0)//Position - 0xFAD0
{
	int iVar0;
	
	iVar0 = ai::get_script_task_status(iParam0, 242628503);
	if (iVar0 == 7)
	{
		return true;
	}
	return false;
}

bool func_206(var uParam0)//Position - 0xFAF0
{
	if (!entity::is_entity_dead(uParam0->f_119, 0))
	{
		if (uParam0->f_104)
		{
			if (uParam0->f_102 == 3)
			{
				if (func_194(uParam0->f_119) && ai::is_playing_phone_gesture_anim(uParam0->f_119))
				{
					return true;
				}
			}
		}
		else if (entity::is_entity_playing_anim(uParam0->f_119, func_312(uParam0, 1, 0), &(uParam0->f_121.f_257), 3))
		{
			return true;
		}
	}
	return false;
}

void func_207(var uParam0, var uParam1)//Position - 0xFB53
{
	int iVar0;
	
	if (!ped::is_ped_injured(uParam0->f_119))
	{
		func_276(uParam0, uParam1);
		func_273(uParam0);
		func_241(uParam0, uParam1);
		func_236(uParam0);
		func_235(uParam0);
		if (!uParam0->f_106 & 1048576 == 0)
		{
			if (!ped::get_ped_config_flag(uParam0->f_119, 113, 1))
			{
				ped::set_ped_config_flag(uParam0->f_119, 113, false);
			}
		}
		if (!func_213(*uParam0))
		{
			func_192(uParam0);
		}
		if (func_212(uParam0))
		{
			if (!network::network_is_game_in_progress() && func_211(14))
			{
				iVar0 = entity::get_entity_model(player::player_ped_id());
				if ((((iVar0 == joaat("player_zero") || iVar0 == joaat("player_one")) || iVar0 == joaat("player_two")) || iVar0 == joaat("mp_f_freemode_01")) || iVar0 == joaat("mp_m_freemode_01"))
				{
					ped::set_ped_reset_flag(uParam0->f_119, 69, true);
				}
			}
			else
			{
				ped::set_ped_reset_flag(uParam0->f_119, 69, true);
			}
		}
		if (func_184(uParam0->f_119))
		{
			if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0) && (func_210(uParam0->f_6) || controls::is_control_pressed(0, 75)))
			{
				func_192(uParam0);
			}
		}
		uParam0->f_121.f_438 = func_208(uParam0);
	}
}

float func_208(var uParam0)//Position - 0xFC89
{
	int iVar0;
	char* sVar1;
	char* sVar2;
	float fVar3;
	
	if (uParam0->f_102 == 3)
	{
		iVar0 = 1;
	}
	sVar1 = func_312(uParam0, iVar0, uParam0->f_104);
	sVar2 = func_209(uParam0);
	fVar3 = 0f;
	if (uParam0->f_104)
	{
		if (func_194(uParam0->f_119))
		{
			if (func_194(uParam0->f_119) && ai::is_playing_phone_gesture_anim(uParam0->f_119))
			{
				fVar3 = ai::get_phone_gesture_anim_current_time(uParam0->f_119);
			}
		}
	}
	else if (entity::is_entity_playing_anim(uParam0->f_119, sVar1, sVar2, 3))
	{
		fVar3 = entity::get_entity_anim_current_time(uParam0->f_119, sVar1, sVar2);
	}
	if (fVar3 < 0f)
	{
		fVar3 = uParam0->f_109;
	}
	return fVar3;
}

var func_209(var uParam0)//Position - 0xFD19
{
	return func_198(uParam0, uParam0->f_102);
}

bool func_210(int iParam0)//Position - 0xFD2B
{
	if (iParam0)
	{
		if ((controls::is_control_pressed(0, 68) || controls::is_control_pressed(0, 69)) || controls::is_control_pressed(0, 70))
		{
			return true;
		}
	}
	else if (controls::is_control_pressed(0, 91) || controls::is_control_pressed(0, 92))
	{
		return true;
	}
	return false;
}

int func_211(int iParam0)//Position - 0xFD7F
{
	return Global_35742 == iParam0;
}

bool func_212(var uParam0)//Position - 0xFD8D
{
	if (uParam0->f_105 && !uParam0->f_102 == 3)
	{
		return true;
	}
	return false;
}

int func_213(int iParam0)//Position - 0xFDAD
{
	if (func_234())
	{
		return 1;
	}
	switch (iParam0)
	{
		case 0:
			return func_229();
			break;
		
		case 1:
		case 2:
			return func_214(0);
			break;
		
		case 3:
			return 1;
			break;
	}
	return 0;
}

bool func_214(int iParam0)//Position - 0xFDFC
{
	if (func_228())
	{
		return true;
	}
	if (func_227())
	{
		return true;
	}
	if (((((((((((((((((((((((((player::is_player_free_for_ambient_task(player::player_id()) && iParam0 == 1) || iParam0 == 0) && func_219()) && !ped::is_ped_in_any_vehicle(player::player_ped_id(), 1)) && (ai::is_ped_running(player::player_ped_id()) == 0 || func_5())) && !ai::is_ped_sprinting(player::player_ped_id())) && !ped::is_ped_ragdoll(player::player_ped_id())) && !ped::is_ped_swimming(player::player_ped_id())) && !ped::is_ped_diving(player::player_ped_id())) && !ped::is_ped_falling(player::player_ped_id())) && !ped::is_ped_shooting(player::player_ped_id())) && !ped::is_ped_prone(player::player_ped_id())) && !ped::is_ped_going_into_cover(player::player_ped_id())) && !ped::is_ped_climbing(player::player_ped_id())) && (ai::is_ped_strafing(player::player_ped_id()) == 0 || func_5())) && !ped::is_ped_jumping(player::player_ped_id())) && !ped::is_ped_hanging_on_to_vehicle(player::player_ped_id())) && !ai::is_ped_active_in_scenario(player::player_ped_id())) && !ped::is_ped_vaulting(player::player_ped_id())) && !ped::_0x26AF0E8E30BD2A2C(player::player_ped_id())) && !ped::get_ped_reset_flag(player::player_ped_id(), 58)) && !func_218()) && !func_215()) && !Global_2435608.f_3287.f_26) && !ped::_0x14590DDBEDB1EC85(player::player_ped_id()))
	{
		return true;
	}
	return false;
}

bool func_215()//Position - 0xFF8C
{
	if (!func_217())
	{
		if (func_216())
		{
			return true;
		}
	}
	return false;
}

bool func_216()//Position - 0xFFA8
{
	if (cutscene::is_cutscene_playing() || network::network_is_in_mp_cutscene())
	{
		return true;
	}
	return false;
}

bool func_217()//Position - 0xFFC6
{
	if (Global_2557205.f_797 > -1)
	{
		return true;
	}
	return false;
}

bool func_218()//Position - 0xFFDE
{
	if ((gameplay::get_game_timer() - ped::_0x36B77BB84687C318(player::player_ped_id(), joaat("weapon_bzgas"))) < 500 || (gameplay::get_game_timer() - ped::_0x36B77BB84687C318(player::player_ped_id(), joaat("weapon_smokegrenade"))) < 500)
	{
		return true;
	}
	return false;
}

bool func_219()//Position - 0x10022
{
	if (Global_2557205.f_827)
	{
		return false;
	}
	if (func_228())
	{
		return true;
	}
	if (func_227())
	{
		return true;
	}
	if ((((((!gameplay::is_minigame_in_progress() && !network::network_is_in_mp_cutscene()) && !Global_2428549.f_3189) && !ui::is_hud_component_active(19)) && !func_226()) && func_224()) && !func_220())
	{
		return true;
	}
	return false;
}

bool func_220()//Position - 0x1009B
{
	if (func_221(player::player_id(), 1))
	{
		switch (Global_2557205.f_792)
		{
			case 1:
			case 2:
			case 3:
			case 4:
			case 5:
			case 6:
			case 7:
				return true;
				break;
			}
	}
	return false;
}

bool func_221(int iParam0, int iParam1)//Position - 0x100ED
{
	if (iParam1)
	{
		if (func_222(iParam0))
		{
			return true;
		}
	}
	if (Global_1587816[iParam0 /*444*/] == -1)
	{
		return false;
	}
	return true;
}

int func_222(var uParam0)//Position - 0x10119
{
	return func_223(uParam0);
}

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

bool func_224()//Position - 0x10141
{
	if (!gameplay::is_bit_set(Global_2285, 3))
	{
		if (script::_get_number_of_instances_of_streamed_script(joaat("appcamera")) > 0 || func_225())
		{
			return false;
		}
	}
	return true;
}

bool func_225()//Position - 0x10172
{
	if (script::_get_number_of_instances_of_streamed_script(joaat("cellphone_flashhand")) > 0 || Global_14413.f_1 > 3)
	{
		return true;
	}
	return false;
}

bool func_226()//Position - 0x1019A
{
	int iVar0;
	
	iVar0 = ai::get_script_task_status(player::player_ped_id(), 1785177548);
	if (!iVar0 == 7)
	{
		return true;
	}
	return false;
}

bool func_227()//Position - 0x101BE
{
	switch (Global_1587816[player::player_id() /*444*/].f_180)
	{
		case 25:
		case 24:
		case 26:
		case 27:
		case 28:
		case 29:
		case 31:
			return true;
		
		default:
	}
	return false;
}

bool func_228()//Position - 0x10207
{
	vector3 vVar0;
	
	if (Global_1722816)
	{
		vVar0 = { cam::_get_gameplay_cam_coords() };
		if (vVar0.y > 1000f)
		{
			return true;
		}
	}
	return false;
}

bool func_229()//Position - 0x10230
{
	if (((((((((func_233() || func_232()) && func_219()) && !ped::is_ped_doing_driveby(player::player_ped_id())) && !ped::is_ped_hanging_on_to_vehicle(player::player_ped_id())) && !entity::is_entity_in_water(player::player_ped_id())) && !ped::get_ped_reset_flag(player::player_ped_id(), 363)) && !ped::get_ped_reset_flag(player::player_ped_id(), 373)) && !ped::get_ped_config_flag(player::player_ped_id(), 359, 1)) && !func_230())
	{
		return true;
	}
	return false;
}

bool func_230()//Position - 0x102BF
{
	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 (vehicle::_0xE33FFA906CE74880(iVar0, func_231(player::player_ped_id(), 0)))
		{
			return true;
		}
	}
	return false;
}

int func_231(int iParam0, int iParam1)//Position - 0x102F5
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (ped::is_ped_in_any_vehicle(iParam0, iParam1))
		{
			iVar0 = ped::get_vehicle_ped_is_in(iParam0, iParam1);
			if (entity::does_entity_exist(iVar0))
			{
				if (!entity::is_entity_dead(iVar0, 0))
				{
					iVar1 = vehicle::_get_vehicle_model_max_number_of_passengers(entity::get_entity_model(iVar0));
					iVar2 = 0;
					while (iVar2 < iVar1)
					{
						iVar3 = (iVar2 - 1);
						if (!vehicle::is_vehicle_seat_free(iVar0, iVar3))
						{
							if (vehicle::get_ped_in_vehicle_seat(iVar0, iVar3) == iParam0)
							{
								return iVar3;
							}
						}
						iVar2++;
					}
				}
			}
		}
	}
	return iVar3;
}

bool func_232()//Position - 0x10375
{
	int iVar0;
	
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		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 (vehicle::is_this_model_a_car(entity::get_entity_model(iVar0)))
			{
				if (!vehicle::is_vehicle_seat_free(iVar0, -1))
				{
					if (vehicle::get_ped_in_vehicle_seat(iVar0, -1) == player::player_ped_id())
					{
						if (entity::get_entity_speed(iVar0) < 0.5f)
						{
							return true;
						}
					}
				}
			}
		}
	}
	return false;
}

bool func_233()//Position - 0x103DA
{
	int iVar0;
	
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		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 (vehicle::is_this_model_a_car(entity::get_entity_model(iVar0)))
			{
				if (vehicle::is_vehicle_seat_free(iVar0, -1))
				{
					return true;
				}
				else if (!vehicle::get_ped_in_vehicle_seat(iVar0, -1) == player::player_ped_id())
				{
					return true;
				}
			}
		}
	}
	return false;
}

bool func_234()//Position - 0x10438
{
	if (Global_2418529[player::player_id() /*313*/] == 10 || Global_2406794.f_22 > -1)
	{
		return true;
	}
	return false;
}

void func_235(var uParam0)//Position - 0x10464
{
	if (uParam0->f_102 == 3 || uParam0->f_102 == 2)
	{
		if (entity::has_anim_event_fired(uParam0->f_119, gameplay::get_hash_key("EARLYEXIT")) || entity::has_anim_event_fired(uParam0->f_119, gameplay::get_hash_key("breakout")))
		{
			func_192(uParam0);
		}
	}
}

void func_236(var uParam0)//Position - 0x104B0
{
	float fVar0;
	
	if (uParam0->f_121.f_436 == -3)
	{
		if (uParam0->f_101 == 1)
		{
			if (!func_238(uParam0->f_119))
			{
				fVar0 = func_237(uParam0);
				if (fVar0 > 0f)
				{
					func_288(uParam0, uParam0->f_102, uParam0->f_103, fVar0, 1, 0, 0);
				}
			}
		}
		else if (uParam0->f_102 == 1)
		{
			if (func_238(uParam0->f_119))
			{
				fVar0 = func_237(uParam0);
				if (fVar0 > 0f)
				{
					func_288(uParam0, uParam0->f_102, uParam0->f_103, fVar0, 1, 0, 0);
				}
			}
		}
	}
}

float func_237(var uParam0)//Position - 0x10533
{
	float fVar0;
	float fVar1;
	float fVar2;
	
	fVar1 = -1f;
	fVar2 = func_208(uParam0);
	fVar0 = (fVar2 - uParam0->f_121.f_438);
	if (fVar0 > 0f)
	{
		fVar1 = (fVar2 + fVar0);
	}
	if (fVar1 > 1f && fVar1 < 2f)
	{
		fVar1 = (fVar1 + -1f);
	}
	if (fVar1 >= 2f)
	{
		fVar1 = -1f;
	}
	return fVar1;
}

bool func_238(int iParam0)//Position - 0x10582
{
	if (func_340(iParam0, 0))
	{
		if (iParam0 == player::player_ped_id())
		{
			if (func_240() || network::get_time_difference(func_319(), Global_2557205.f_790) < 500)
			{
				return false;
			}
		}
		if (func_239())
		{
			return false;
		}
		return true;
	}
	return false;
}

int func_239()//Position - 0x105D1
{
	return Global_1587816[player::player_id() /*444*/].f_180 != 0;
}

bool func_240()//Position - 0x105E8
{
	if (((((controls::is_control_pressed(0, 30) || controls::is_control_pressed(0, 31)) || controls::is_control_pressed(0, 32)) || controls::is_control_pressed(0, 33)) || controls::is_control_pressed(0, 34)) || controls::is_control_pressed(0, 35))
	{
		return true;
	}
	return false;
}

void func_241(var uParam0, var uParam1)//Position - 0x10640
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	iVar0 = false;
	iVar1 = false;
	if (uParam0->f_121.f_370)
	{
		if (entity::has_anim_event_fired(uParam0->f_119, gameplay::get_hash_key("CREATE")))
		{
			uParam0->f_9 = 1;
			iVar1 = true;
		}
		if (!uParam0->f_10)
		{
			if (entity::has_anim_event_fired(uParam0->f_119, gameplay::get_hash_key("DELETE")) || entity::has_anim_event_fired(uParam0->f_119, gameplay::get_hash_key("RELEASE")))
			{
				uParam0->f_10 = 1;
				if (entity::has_anim_event_fired(uParam0->f_119, gameplay::get_hash_key("RELEASE")))
				{
					iVar0 = true;
				}
			}
		}
		if (uParam0->f_9)
		{
			if (!uParam0->f_12)
			{
				if (!entity::does_entity_exist(uParam0->f_112))
				{
					if (func_272(uParam0))
					{
						if (func_270(uParam0, uParam0->f_121.f_376))
						{
							func_269(uParam0);
							cam::_0x49482F9FCD825AAA(uParam0->f_112);
							entity::set_entity_no_collision_entity(uParam0->f_112, uParam0->f_119, 0);
							if (uParam0->f_121.f_378)
							{
								uParam0->f_114 = graphics::start_particle_fx_looped_on_entity(&(uParam0->f_121.f_379), uParam0->f_112, uParam0->f_121.f_395, uParam0->f_121.f_398, 1065353216, 0, 0, 0);
								if (uParam0->f_119 == player::player_ped_id())
								{
									if (uParam0->f_1 == 1 || uParam0->f_1 == 29)
									{
										Global_2418529[player::player_id() /*313*/].f_44 = 1;
									}
								}
							}
							if (func_302(*uParam0, uParam0->f_1))
							{
								func_263(func_301(*uParam0, uParam0->f_1), -1);
								func_262(uParam0->f_121.f_376);
							}
							uParam0->f_12 = 1;
						}
					}
				}
			}
			else if (!entity::does_entity_exist(uParam0->f_112))
			{
				uParam0->f_12 = 0;
			}
			else if (iVar1)
			{
				func_269(uParam0);
			}
		}
		if (uParam0->f_10)
		{
			if (uParam0->f_12)
			{
				if (entity::does_entity_exist(uParam0->f_112))
				{
					if (func_190(uParam0))
					{
						func_294(uParam0, iVar0, uParam0->f_121.f_371);
					}
				}
			}
		}
		else if (uParam0->f_12)
		{
			if (entity::does_entity_exist(uParam0->f_112))
			{
				uParam0->f_116 = { entity::get_entity_coords(uParam0->f_112, 0) };
			}
		}
		if (entity::has_anim_event_fired(uParam0->f_119, gameplay::get_hash_key("LOOP_EVENT")) || entity::has_anim_event_fired(uParam0->f_119, gameplay::get_hash_key("EXHALE")))
		{
			if (uParam0->f_121.f_401)
			{
				graphics::start_particle_fx_non_looped_on_ped_bone(&(uParam0->f_121.f_402), uParam0->f_119, -0.02f, 0.13f, 0f, 0f, 0f, 0f, 31086, 1065353216, 0, 0, 0);
			}
			if (uParam0->f_121.f_418)
			{
				graphics::start_particle_fx_non_looped_on_ped_bone(&(uParam0->f_121.f_419), uParam0->f_119, 0.02f, 0.16f, 0f, 0f, 0f, 0f, 31086, 1065353216, 0, 0, 0);
			}
			if (!func_261(*uParam0, uParam0->f_1) == 0)
			{
				if (func_184(uParam0->f_119))
				{
					if (!streaming::is_player_switch_in_progress())
					{
						iVar2 = entity::get_entity_health(uParam0->f_119);
						iVar3 = system::round((system::to_float(func_261(*uParam0, uParam0->f_1)) * func_260(*uParam0, uParam0->f_1)));
						uParam1->f_18 = (uParam1->f_18 + iVar3);
						iVar2 = (iVar2 + iVar3);
						if (iVar2 < 0)
						{
							iVar2 = 0;
						}
						entity::set_entity_health(player::player_ped_id(), iVar2);
					}
				}
				uParam1->f_18 = (uParam1->f_18 + func_261(*uParam0, uParam0->f_1));
			}
			if (!uParam0->f_121.f_435 == 0)
			{
				uParam1->f_17++;
				if (uParam1->f_17 >= uParam0->f_121.f_435)
				{
					if (func_184(uParam0->f_119))
					{
						if (!streaming::is_player_switch_in_progress())
						{
							func_247(uParam0->f_119, 0);
						}
					}
					else
					{
						func_243(uParam0->f_119, 2147483647, 0);
					}
					uParam1->f_16++;
					uParam1->f_17 = 0;
				}
			}
			if (func_184(uParam0->f_119))
			{
				if (!streaming::is_player_switch_in_progress())
				{
					uParam0->f_107++;
				}
			}
			else
			{
				uParam0->f_107++;
			}
			if (uParam0->f_107 >= func_242(*uParam0, uParam0->f_1))
			{
				uParam0->f_13 = 1;
			}
		}
		if (!player::player_ped_id() == uParam0->f_119)
		{
			if (entity::does_entity_exist(uParam0->f_112))
			{
				if (entity::get_entity_alpha(uParam0->f_119) < 255 || !entity::is_entity_visible_to_script(uParam0->f_119))
				{
					entity::set_entity_alpha(uParam0->f_112, 0, false);
					if (uParam0->f_114 != -1 && graphics::does_particle_fx_looped_exist(uParam0->f_114))
					{
						graphics::stop_particle_fx_looped(uParam0->f_114, 0);
					}
				}
				else if (entity::get_entity_alpha(uParam0->f_112) == 0)
				{
					entity::set_entity_alpha(uParam0->f_112, 255, false);
					if (uParam0->f_121.f_378)
					{
						uParam0->f_114 = graphics::start_particle_fx_looped_on_entity(&(uParam0->f_121.f_379), uParam0->f_112, uParam0->f_121.f_395, uParam0->f_121.f_398, 1065353216, 0, 0, 0);
					}
				}
			}
		}
	}
}

int func_242(int iParam0, int iParam1)//Position - 0x10A91
{
	switch (iParam0)
	{
		case 0:
			switch (iParam1)
			{
				case 1:
					return 5;
					break;
			}
			break;
		
		case 2:
			switch (iParam1)
			{
				case 29:
					return 5;
					break;
				
				case 30:
					return 4;
					break;
				
				case 31:
					return 4;
					break;
				
				case 32:
					return 3;
					break;
				
				case 33:
					return 3;
					break;
				
				case 34:
					return 3;
					break;
			}
			break;
	}
	return -1;
}

bool func_243(int iParam0, int iParam1, int iParam2)//Position - 0x10B1C
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (iParam0 == 0)
	{
		return false;
	}
	if (!entity::does_entity_exist(iParam0))
	{
		return false;
	}
	iVar0 = func_246(iParam0);
	if (!iVar0 == -1)
	{
		return true;
	}
	iVar1 = func_245(iParam0);
	if (!iVar1 == -1)
	{
		return true;
	}
	if (!iParam2)
	{
		if (iParam1 == 0 || iParam1 < 0)
		{
			return false;
		}
	}
	iVar2 = func_244();
	if (iVar2 == -1)
	{
		return false;
	}
	Global_36647[iVar2 /*5*/] = 0;
	Global_36647[iVar2 /*5*/].f_1 = iParam0;
	Global_36647[iVar2 /*5*/].f_2 = iParam1;
	Global_36647[iVar2 /*5*/].f_3 = iParam1;
	Global_36647[iVar2 /*5*/].f_4 = 0;
	if (iParam0 == player::player_ped_id())
	{
		Global_36868 = 1;
	}
	Global_36646++;
	return true;
}

int func_244()//Position - 0x10BD8
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 5)
	{
		if (Global_36647[iVar0 /*5*/] == 13)
		{
			return iVar0;
		}
		iVar0++;
	}
	return -1;
}

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

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

void func_247(int iParam0, int iParam1)//Position - 0x10C79
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	
	if (iParam0 == 0)
	{
		return;
	}
	if (!entity::does_entity_exist(iParam0))
	{
		return;
	}
	iVar0 = 20000;
	if (network::network_is_game_in_progress())
	{
		iVar0 *= 3;
	}
	else if (gameplay::are_strings_equal(script::get_this_script_name(), "ob_drinking_shots"))
	{
		iVar0 *= 2;
	}
	if (!func_258(iParam0))
	{
		func_243(iParam0, iVar0, 0);
		func_257(iVar0, iVar0, 0.3f, 1f, iParam1, 0);
		iVar1 = func_246(iParam0);
		if (iVar1 == -1)
		{
			iVar2 = func_256(iVar1);
			if (!iVar2 == -1)
			{
				Global_36673[iVar2 /*5*/].f_3++;
			}
		}
	}
	else
	{
		iVar3 = func_246(iParam0);
		iVar4 = -1;
		if (iVar3 == -1)
		{
			iVar4 = func_256(iVar3);
			if (!iVar4 == -1)
			{
				Global_36673[iVar4 /*5*/].f_3++;
			}
		}
		Global_36838 = (Global_36838 + iVar0);
		func_254(iParam0, iVar0);
	}
	if (func_253(iParam0) >= 2)
	{
		Global_36843 = 0.25f;
		if (gameplay::is_string_null_or_empty(&Global_36844))
		{
			StringCopy(&Global_36844, "DRUNK", 16);
		}
	}
	iVar5 = func_246(iParam0);
	if (iVar5 == -1)
	{
		iVar6 = func_256(iVar5);
		if (!iVar6 == -1)
		{
		}
		return;
	}
	func_248(1, iVar5, 3, iParam0);
}

void func_248(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x10DB1
{
	func_249(iParam0, iParam1, iParam2, iParam3, 0);
}

void func_249(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x10DC6
{
	int iVar0;
	
	if (iParam0 == -1)
	{
		return;
	}
	if (iParam1 == -1)
	{
		return;
	}
	if (iParam2 == 6)
	{
		return;
	}
	if (func_251(iParam0, iParam1, iParam2))
	{
		return;
	}
	iVar0 = func_250();
	if (iVar0 == -1)
	{
		return;
	}
	Global_36754[iVar0 /*5*/] = iParam0;
	Global_36754[iVar0 /*5*/].f_1 = iParam1;
	Global_36754[iVar0 /*5*/].f_2 = iParam2;
	Global_36754[iVar0 /*5*/].f_3 = iParam3;
	Global_36754[iVar0 /*5*/].f_4 = iParam4;
}

int func_250()//Position - 0x10E3D
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 16)
	{
		if (Global_36754[iVar0 /*5*/].f_2 == 6)
		{
			return iVar0;
		}
		iVar0++;
	}
	return -1;
}

bool func_251(int iParam0, int iParam1, int iParam2)//Position - 0x10E6E
{
	if (func_252(iParam0, iParam1, iParam2) == -1)
	{
		return false;
	}
	return true;
}

int func_252(int iParam0, int iParam1, int iParam2)//Position - 0x10E89
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 16)
	{
		if (iParam2 == Global_36754[iVar0 /*5*/].f_2)
		{
			if (iParam0 == Global_36754[iVar0 /*5*/])
			{
				if (iParam1 == Global_36754[iVar0 /*5*/].f_1)
				{
					return iVar0;
				}
			}
		}
		iVar0++;
	}
	return -1;
}

int func_253(int iParam0)//Position - 0x10ED5
{
	int iVar0;
	int iVar1;
	
	if (iParam0 == 0)
	{
		return 0;
	}
	if (!entity::does_entity_exist(iParam0))
	{
		return 0;
	}
	iVar0 = func_246(iParam0);
	iVar1 = func_256(iVar0);
	if (iVar1 == -1)
	{
		return -1;
	}
	return Global_36673[iVar1 /*5*/].f_3;
}

void func_254(int iParam0, int iParam1)//Position - 0x10F18
{
	int iVar0;
	int iVar1;
	
	if (iParam0 == 0)
	{
		return;
	}
	if (!entity::does_entity_exist(iParam0))
	{
		return;
	}
	if (iParam1 < 0)
	{
		return;
	}
	iVar0 = func_246(iParam0);
	iVar1 = -1;
	if (iVar0 == -1)
	{
		iVar1 = func_245(iParam0);
		if (!iVar1 == -1)
		{
			Global_36647[iVar1 /*5*/].f_3 = (Global_36647[iVar1 /*5*/].f_3 + iParam1);
			Global_36647[iVar1 /*5*/].f_2 = (Global_36647[iVar1 /*5*/].f_2 + iParam1);
		}
		return;
	}
	func_255(1, iVar0, 2, iParam1);
}

void func_255(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x10F97
{
	func_249(iParam0, iParam1, iParam2, 0, iParam3);
}

int func_256(int iParam0)//Position - 0x10FAC
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 16)
	{
		if (Global_36673[iVar0 /*5*/] == iParam0)
		{
			return iVar0;
		}
		iVar0++;
	}
	return -1;
}

void func_257(int iParam0, int iParam1, float fParam2, float fParam3, int iParam4, int iParam5)//Position - 0x10FDC
{
	int iVar0;
	
	if (Global_3)
	{
		return;
	}
	if (Global_36836)
	{
		return;
	}
	if (!iParam5)
	{
		if (iParam0 < 0)
		{
			return;
		}
	}
	if (fParam2 < 0f || fParam2 > 5f)
	{
		return;
	}
	if (!cam::is_gameplay_cam_shaking())
	{
		cam::shake_gameplay_cam("DRUNK_SHAKE", fParam3);
	}
	if (!cam::is_cinematic_cam_shaking())
	{
		cam::shake_cinematic_cam("DRUNK_SHAKE", (fParam3 * Global_36835));
	}
	if (cam::does_cam_exist(iParam4))
	{
		cam::shake_cam(iParam4, "DRUNK_SHAKE", fParam3);
		Global_36837 = iParam4;
	}
	else
	{
		Global_36837 = 0;
	}
	Global_36836 = 1;
	iVar0 = gameplay::get_game_timer();
	Global_36838 = (iVar0 + iParam0);
	if (iParam5)
	{
		if (iParam0 == -1)
		{
			Global_36838 = -1;
		}
	}
	Global_36839 = iParam1;
	Global_36840 = fParam2;
	Global_36842 = fParam3;
	Global_36841 = fParam3;
}

bool func_258(int iParam0)//Position - 0x11097
{
	if (iParam0 == 0)
	{
		return false;
	}
	if (func_259(iParam0) == -1)
	{
		return false;
	}
	return true;
}

int func_259(int iParam0)//Position - 0x110B8
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return -1;
	}
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 16)
	{
		if (!Global_36673[iVar0 /*5*/] == -1)
		{
			if (iParam0 == Global_36673[iVar0 /*5*/].f_1)
			{
				return iVar0;
			}
		}
		iVar0++;
	}
	return -1;
}

float func_260(int iParam0, int iParam1)//Position - 0x11101
{
	switch (iParam0)
	{
		case 0:
			switch (iParam1)
			{
				case 1:
					return Global_262145.f_114;
					break;
			}
			break;
		
		case 2:
			switch (iParam1)
			{
				case 29:
					return Global_262145.f_114;
					break;
				
				case 30:
					return Global_262145.f_115;
					break;
				
				case 31:
					return Global_262145.f_116;
					break;
				
				case 32:
					return Global_262145.f_111;
					break;
				
				case 33:
					return Global_262145.f_112;
					break;
				
				case 34:
					return Global_262145.f_113;
					break;
			}
			break;
	}
	return 1f;
}

int func_261(int iParam0, int iParam1)//Position - 0x111AF
{
	switch (iParam0)
	{
		case 0:
			switch (iParam1)
			{
				case 1:
					return -5;
					break;
			}
			break;
		
		case 2:
			switch (iParam1)
			{
				case 29:
					return -5;
					break;
				
				case 30:
					return 9;
					break;
				
				case 31:
					return 0;
					break;
				
				case 32:
					return 5;
					break;
				
				case 33:
					return 15;
					break;
				
				case 34:
					return 10;
					break;
			}
			break;
	}
	return 0;
}

void func_262(int iParam0)//Position - 0x11241
{
	int iVar0;
	int iVar1;
	
	iVar0 = entity::get_entity_health(player::player_ped_id());
	iVar1 = entity::get_entity_max_health(player::player_ped_id());
	switch (iParam0)
	{
		case joaat("prop_choc_pq"):
			if (func_300(1268, -1, 0) >= 30 && iVar0 >= iVar1)
			{
				object::_0x88EAEC617CD26926(iParam0, false);
			}
			else
			{
				object::_0x88EAEC617CD26926(iParam0, true);
			}
			break;
		
		case joaat("prop_choc_ego"):
			if (func_300(1269, -1, 0) >= 15 && iVar0 >= iVar1)
			{
				object::_0x88EAEC617CD26926(iParam0, false);
			}
			else
			{
				object::_0x88EAEC617CD26926(iParam0, true);
			}
			break;
		
		case joaat("prop_choc_meto"):
			if (func_300(1270, -1, 0) >= 5 && iVar0 >= iVar1)
			{
				object::_0x88EAEC617CD26926(iParam0, false);
			}
			else
			{
				object::_0x88EAEC617CD26926(iParam0, true);
			}
			break;
		
		case joaat("prop_ecola_can"):
			if (func_300(62, -1, 0) >= 10 && iVar0 >= iVar1)
			{
				object::_0x88EAEC617CD26926(iParam0, false);
			}
			else
			{
				object::_0x88EAEC617CD26926(iParam0, true);
			}
			break;
		
		case joaat("prop_amb_beer_bottle"):
			if (func_300(63, -1, 0) >= 10)
			{
				object::_0x88EAEC617CD26926(iParam0, false);
			}
			else
			{
				object::_0x88EAEC617CD26926(iParam0, true);
			}
			break;
		
		case joaat("prop_cs_ciggy_01"):
			if (func_300(1090, -1, 0) >= 20)
			{
				object::_0x88EAEC617CD26926(iParam0, false);
			}
			else
			{
				object::_0x88EAEC617CD26926(iParam0, true);
			}
			break;
	}
}

void func_263(int iParam0, int iParam1)//Position - 0x1137D
{
	int iVar0;
	
	iVar0 = func_300(iParam0, func_267(iParam1), 0);
	iVar0 = (iVar0 - 1);
	if (!func_266(iParam0))
	{
		func_265(iParam0, iVar0, iParam1, 1);
	}
	else
	{
		func_264(iParam0, iVar0, iParam1, 1);
	}
}

void func_264(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x113BD
{
	int iVar0;
	
	iVar0 = Global_2473854[iParam0 /*5*/][func_267(iParam2)];
	if (iVar0 != 0)
	{
		stats::stat_set_int(iVar0, iParam1, iParam3);
	}
	switch (iParam0)
	{
		case 780:
			Global_1347761[func_267(iParam2)] = iParam1;
			break;
		
		case 781:
			Global_1347767[func_267(iParam2)] = iParam1;
			break;
		
		case 782:
			Global_1347773[func_267(iParam2)] = iParam1;
			break;
		
		case 783:
			Global_1347779[func_267(iParam2)] = iParam1;
			break;
		
		case 770:
			Global_1347737[func_267(iParam2)] = iParam1;
			break;
		
		case 771:
			Global_1347743[func_267(iParam2)] = iParam1;
			break;
		
		case 772:
			Global_1347749[func_267(iParam2)] = iParam1;
			break;
		
		case 773:
			Global_1347755[func_267(iParam2)] = iParam1;
			break;
		
		case 760:
			Global_1347713[func_267(iParam2)] = iParam1;
			break;
		
		case 761:
			Global_1347719[func_267(iParam2)] = iParam1;
			break;
		
		case 762:
			Global_1347725[func_267(iParam2)] = iParam1;
			break;
		
		case 763:
			Global_1347731[func_267(iParam2)] = iParam1;
			break;
		
		case 750:
			Global_1347785[func_267(iParam2)] = iParam1;
			break;
		
		case 751:
			Global_1347791[func_267(iParam2)] = iParam1;
			break;
		
		case 752:
			Global_1347797[func_267(iParam2)] = iParam1;
			break;
		
		case 753:
			Global_1347803[func_267(iParam2)] = iParam1;
			break;
		
		case 1296:
			Global_1347809[func_267(iParam2)] = iParam1;
			break;
		
		case 632:
			Global_1347815[func_267(iParam2)] = iParam1;
			break;
		
		case 1271:
			Global_1347821[func_267(iParam2)] = iParam1;
			break;
		
		case 1868:
			Global_2497579[0 /*6*/][func_267(iParam2)] = iParam1;
			break;
		
		case 2259:
			Global_2497579[1 /*6*/][func_267(iParam2)] = iParam1;
			break;
		
		case 2907:
			Global_2497579[2 /*6*/][func_267(iParam2)] = iParam1;
			break;
		
		case 3036:
			Global_2497579[3 /*6*/][func_267(iParam2)] = iParam1;
			break;
		
		case 3918:
			Global_2497641[func_267(iParam2)] = iParam1;
			break;
		
		case 757:
			Global_1347827[func_267(iParam2)] = iParam1;
			break;
		
		case 758:
			Global_1347833[func_267(iParam2)] = iParam1;
			break;
		
		case 759:
			Global_1347839[func_267(iParam2)] = iParam1;
			break;
		
		case 1229:
			Global_1347845[func_267(iParam2)] = iParam1;
			break;
		
		case 3031:
			Global_2497610[0 /*5*/][func_267(iParam2)] = iParam1;
			break;
		
		case 3032:
			Global_2497610[1 /*5*/][func_267(iParam2)] = iParam1;
			break;
		
		case 3033:
			Global_2497610[2 /*5*/][func_267(iParam2)] = iParam1;
			break;
		
		case 3034:
			Global_2497610[3 /*5*/][func_267(iParam2)] = iParam1;
			break;
		
		case 3035:
			Global_2497610[4 /*5*/][func_267(iParam2)] = iParam1;
			break;
		
		case 3216:
			Global_2497646[0 /*5*/][func_267(iParam2)] = iParam1;
			break;
		
		case 3217:
			Global_2497646[1 /*5*/][func_267(iParam2)] = iParam1;
			break;
		
		case 3218:
			Global_2497646[2 /*5*/][func_267(iParam2)] = iParam1;
			break;
		
		case 3219:
			Global_2497646[3 /*5*/][func_267(iParam2)] = iParam1;
			break;
		
		case 3220:
			Global_2497646[4 /*5*/][func_267(iParam2)] = iParam1;
			break;
		
		case 3221:
			Global_2497672[0 /*5*/][func_267(iParam2)] = iParam1;
			break;
		
		case 3222:
			Global_2497672[1 /*5*/][func_267(iParam2)] = iParam1;
			break;
		
		case 3223:
			Global_2497672[2 /*5*/][func_267(iParam2)] = iParam1;
			break;
		
		case 3224:
			Global_2497672[3 /*5*/][func_267(iParam2)] = iParam1;
			break;
		
		case 3225:
			Global_2497672[4 /*5*/][func_267(iParam2)] = iParam1;
			break;
		
		case 3199:
			Global_2497610[5 /*5*/][func_267(iParam2)] = iParam1;
			break;
		
		case 3205:
			Global_2497579[4 /*6*/][func_267(iParam2)] = iParam1;
			break;
		
		case 3243:
			Global_2497698[func_267(iParam2)] = iParam1;
			break;
		
		case 3244:
			Global_2497713[func_267(iParam2)] = iParam1;
			break;
		
		case 3245:
			Global_2497703[func_267(iParam2)] = iParam1;
			break;
		
		case 3246:
			Global_2497718[func_267(iParam2)] = iParam1;
			break;
		
		case 3247:
			Global_2497708[func_267(iParam2)] = iParam1;
			break;
		
		case 3248:
			Global_2497723[func_267(iParam2)] = iParam1;
			break;
		
		case 3269:
			Global_2497728[func_267(iParam2)] = iParam1;
			break;
		
		default:
			break;
	}
}

void func_265(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x118DD
{
	int iVar0;
	
	iVar0 = Global_2473854[iParam0 /*5*/][func_267(iParam2)];
	if (iVar0 != 0)
	{
		stats::stat_set_int(iVar0, iParam1, iParam3);
	}
}

bool func_266(int iParam0)//Position - 0x11908
{
	if (Global_1347694)
	{
		switch (iParam0)
		{
			case 780:
			case 781:
			case 782:
			case 783:
			case 770:
			case 771:
			case 772:
			case 773:
			case 760:
			case 761:
			case 762:
			case 763:
			case 750:
			case 751:
			case 752:
			case 753:
			case 1296:
			case 632:
			case 1271:
			case 757:
			case 758:
			case 759:
			case 1229:
			case 1868:
			case 2259:
			case 2907:
			case 3036:
			case 3918:
			case 3031:
			case 3032:
			case 3033:
			case 3034:
			case 3035:
			case 3216:
			case 3217:
			case 3218:
			case 3219:
			case 3220:
			case 3221:
			case 3222:
			case 3223:
			case 3224:
			case 3225:
			case 3205:
			case 3199:
			case 3243:
			case 3244:
			case 3245:
			case 3246:
			case 3247:
			case 3248:
			case 3269:
				return true;
				break;
			}
	}
	return false;
}

int func_267(var uParam0)//Position - 0x11A5E
{
	int iVar0;
	int iVar1;
	
	iVar0 = uParam0;
	if (iVar0 == -1)
	{
		iVar1 = func_268();
		if (iVar1 > -1)
		{
			Global_2473567 = 0;
			iVar0 = iVar1;
		}
		else
		{
			iVar0 = 0;
			Global_2473567 = 1;
		}
	}
	return iVar0;
}

var func_268()//Position - 0x11A92
{
	return Global_1312747;
}

void func_269(var uParam0)//Position - 0x11A9E
{
	if (entity::is_entity_attached(uParam0->f_112))
	{
		entity::detach_entity(uParam0->f_112, 0, true);
	}
	if (ped::is_ped_in_any_vehicle(uParam0->f_119, 0) || func_206(uParam0))
	{
		entity::attach_entity_to_entity(uParam0->f_112, uParam0->f_119, ped::get_ped_bone_index(uParam0->f_119, 28422), 0f, 0f, 0f, 0f, 0f, 0f, 1, 1, 0, 0, 2, 1);
	}
	else
	{
		entity::attach_entity_to_entity(uParam0->f_112, uParam0->f_119, ped::get_ped_bone_index(uParam0->f_119, 60309), 0f, 0f, 0f, 0f, 0f, 0f, 1, 1, 0, 0, 2, 1);
	}
}

bool func_270(var uParam0, int iParam1)//Position - 0x11B1D
{
	if (func_184(uParam0->f_119) && !func_217())
	{
		if (func_271(&(uParam0->f_113), iParam1, ped::get_ped_bone_coords(uParam0->f_119, 28422, 0f, 0f, 0f), 0, 1, 0, 0))
		{
			uParam0->f_112 = network::net_to_obj(uParam0->f_113);
			return true;
		}
		else
		{
			return false;
		}
	}
	uParam0->f_112 = object::create_object(iParam1, ped::get_ped_bone_coords(uParam0->f_119, 28422, 0f, 0f, 0f), 0, false, false);
	if (!entity::is_entity_visible_to_script(uParam0->f_119))
	{
		entity::set_entity_visible(uParam0->f_112, false, 0);
	}
	return true;
}

bool func_271(var uParam0, int iParam1, vector3 vParam2, int iParam5, int iParam6, int iParam7, int iParam8)//Position - 0x11BA2
{
	if (!network::can_register_mission_objects(1))
	{
		return false;
	}
	*uParam0 = network::obj_to_net(object::create_object(iParam1, vParam2, iParam6, iParam5, iParam7));
	if (network::network_does_network_id_exist(*uParam0))
	{
		entity::_0x3910051CCECDB00C(network::net_to_obj(*uParam0), iParam8);
		if (network::_0xC7827959479DCC78(network::net_to_obj(*uParam0)))
		{
			if (iParam5)
			{
				network::set_network_id_exists_on_all_machines(*uParam0, 1);
			}
		}
		return true;
	}
	return false;
}

bool func_272(var uParam0)//Position - 0x11C05
{
	if (uParam0->f_121.f_370)
	{
		streaming::request_model(uParam0->f_121.f_376);
		if (streaming::has_model_loaded(uParam0->f_121.f_376))
		{
			return true;
		}
		else
		{
			gameplay::set_bit(&(Global_1731994[1]), 9);
		}
	}
	else
	{
		return true;
	}
	return false;
}

void func_273(var uParam0)//Position - 0x11C4C
{
	int iVar0;
	char* sVar1;
	int iVar2;
	struct<16> Var3;
	float fVar19;
	float fVar20;
	
	if (uParam0->f_121.f_437)
	{
		if (uParam0->f_102 == 3)
		{
			iVar0 = true;
		}
		else
		{
			iVar0 = false;
		}
		sVar1 = func_312(uParam0, iVar0, 0);
		func_274(*uParam0, uParam0->f_1, uParam0->f_2, uParam0->f_3, uParam0->f_4, uParam0->f_5, uParam0->f_6, uParam0->f_7, iVar0, &(uParam0->f_15), func_275(uParam0->f_119), uParam0->f_105);
		iVar2 = 0;
		while (iVar2 < 4)
		{
			if (uParam0->f_15[iVar2])
			{
				if (uParam0->f_104)
				{
					if (uParam0->f_102 == uParam0->f_15.f_80[iVar2])
					{
						if (func_194(uParam0->f_119) && ai::is_playing_phone_gesture_anim(uParam0->f_119))
						{
							fVar19 = ai::get_phone_gesture_anim_current_time(uParam0->f_119);
							if (fVar19 > uParam0->f_15.f_85 && uParam0->f_15.f_85 >= 0f)
							{
								fVar20 = (fVar19 + (fVar19 - uParam0->f_15.f_85));
							}
							if (fVar20 >= uParam0->f_15.f_75[iVar2])
							{
								if (!uParam0->f_15.f_5[iVar2])
								{
									audio::play_sound_from_entity(-1, &(uParam0->f_15.f_10[iVar2 /*16*/]), uParam0->f_119, "MP_SNACKS_SOUNDSET", 0, 0);
									uParam0->f_15.f_5[iVar2] = 1;
								}
							}
							else if (uParam0->f_15.f_5[iVar2])
							{
								uParam0->f_15.f_5[iVar2] = 0;
							}
							uParam0->f_15.f_85 = fVar19;
						}
					}
				}
				else
				{
					switch (uParam0->f_15.f_80[iVar2])
					{
						case 0:
							Var3 = { uParam0->f_121.f_209 };
							break;
						
						case 1:
							Var3 = { uParam0->f_121.f_225 };
							break;
						
						case 2:
							Var3 = { uParam0->f_121.f_241 };
							break;
						
						case 3:
							Var3 = { uParam0->f_121.f_257 };
							break;
					}
					if (entity::is_entity_playing_anim(uParam0->f_119, sVar1, &Var3, 3))
					{
						fVar19 = entity::get_entity_anim_current_time(uParam0->f_119, sVar1, &Var3);
						if (fVar19 > uParam0->f_15.f_85 && uParam0->f_15.f_85 >= 0f)
						{
							fVar20 = (fVar19 + (fVar19 - uParam0->f_15.f_85));
						}
						if (fVar20 >= uParam0->f_15.f_75[iVar2])
						{
							if (!uParam0->f_15.f_5[iVar2])
							{
								audio::play_sound_from_entity(-1, &(uParam0->f_15.f_10[iVar2 /*16*/]), uParam0->f_119, "MP_SNACKS_SOUNDSET", 0, 0);
								uParam0->f_15.f_5[iVar2] = 1;
							}
						}
						else if (uParam0->f_15.f_5[iVar2])
						{
							uParam0->f_15.f_5[iVar2] = 0;
						}
						uParam0->f_15.f_85 = fVar19;
					}
				}
			}
			iVar2++;
		}
	}
}

void func_274(int iParam0, int iParam1, var uParam2, var uParam3, var uParam4, var uParam5, var uParam6, var uParam7, int iParam8, var uParam9, int iParam10, int iParam11)//Position - 0x11EAB
{
	if ((((((((uParam2 || uParam3) || uParam4) || uParam5) || uParam6) || uParam7) || iParam8) || iParam10) || iParam11)
	{
	}
	switch (iParam0)
	{
		case 0:
			switch (iParam1)
			{
				case 9:
					(*uParam9)[0] = 1;
					StringCopy(&(uParam9->f_10[0 /*16*/]), "Knuckle_Crack_Slap", 64);
					uParam9->f_75[0] = 0.806f;
					uParam9->f_80[0] = 0;
					(*uParam9)[1] = 1;
					StringCopy(&(uParam9->f_10[1 /*16*/]), "Knuckle_Crack_Soft", 64);
					uParam9->f_75[1] = 0.116f;
					uParam9->f_80[1] = 1;
					(*uParam9)[2] = 1;
					StringCopy(&(uParam9->f_10[2 /*16*/]), "Knuckle_Crack_Soft", 64);
					uParam9->f_75[2] = 0.562f;
					uParam9->f_80[2] = 1;
					(*uParam9)[3] = 1;
					StringCopy(&(uParam9->f_10[3 /*16*/]), "Knuckle_Crack_Hard", 64);
					uParam9->f_75[3] = 0.395f;
					uParam9->f_80[3] = 2;
					break;
				
				case 11:
					(*uParam9)[0] = 1;
					StringCopy(&(uParam9->f_10[0 /*16*/]), "Slow_Clap", 64);
					uParam9->f_75[0] = 0.82f;
					uParam9->f_80[0] = 0;
					(*uParam9)[1] = 1;
					StringCopy(&(uParam9->f_10[1 /*16*/]), "Slow_Clap", 64);
					uParam9->f_75[1] = 0.861f;
					uParam9->f_80[1] = 1;
					break;
			}
			break;
		
		case 2:
			switch (iParam1)
			{
				case 30:
					(*uParam9)[0] = 1;
					StringCopy(&(uParam9->f_10[0 /*16*/]), "Can_Initial", 64);
					uParam9->f_75[0] = 0.9f;
					uParam9->f_80[0] = 0;
					(*uParam9)[1] = 1;
					StringCopy(&(uParam9->f_10[1 /*16*/]), "Can_Gulp", 64);
					uParam9->f_75[1] = 0.313f;
					uParam9->f_80[1] = 1;
					(*uParam9)[2] = 1;
					StringCopy(&(uParam9->f_10[2 /*16*/]), "Can_Swallow", 64);
					uParam9->f_75[2] = 0.15f;
					uParam9->f_80[2] = 2;
					break;
				
				case 31:
					(*uParam9)[0] = 1;
					StringCopy(&(uParam9->f_10[0 /*16*/]), "Bottle_Initial", 64);
					uParam9->f_75[0] = 0.526f;
					uParam9->f_80[0] = 0;
					(*uParam9)[1] = 1;
					StringCopy(&(uParam9->f_10[1 /*16*/]), "Bottle_Initial", 64);
					uParam9->f_75[1] = 0.225f;
					uParam9->f_80[1] = 1;
					(*uParam9)[2] = 1;
					StringCopy(&(uParam9->f_10[2 /*16*/]), "Bottle_Initial", 64);
					uParam9->f_75[2] = 0.24f;
					uParam9->f_80[2] = 2;
					break;
				
				case 32:
					(*uParam9)[0] = 1;
					StringCopy(&(uParam9->f_10[0 /*16*/]), "PNQ_Start", 64);
					uParam9->f_75[0] = 0.632f;
					uParam9->f_80[0] = 0;
					(*uParam9)[1] = 1;
					StringCopy(&(uParam9->f_10[1 /*16*/]), "PNQ_Eat", 64);
					uParam9->f_75[1] = 0.3f;
					uParam9->f_80[1] = 1;
					(*uParam9)[2] = 1;
					StringCopy(&(uParam9->f_10[2 /*16*/]), "PNQ_Swallow", 64);
					uParam9->f_75[2] = 0.32f;
					uParam9->f_80[2] = 2;
					break;
				
				case 33:
					(*uParam9)[0] = 1;
					StringCopy(&(uParam9->f_10[0 /*16*/]), "Bar_Eat", 64);
					uParam9->f_75[0] = 0.452f;
					uParam9->f_80[0] = 1;
					(*uParam9)[1] = 1;
					StringCopy(&(uParam9->f_10[1 /*16*/]), "Bar_Swallow", 64);
					uParam9->f_75[1] = 0.105f;
					uParam9->f_80[1] = 2;
					break;
				
				case 34:
					(*uParam9)[0] = 1;
					StringCopy(&(uParam9->f_10[0 /*16*/]), "Bar_Eat", 64);
					uParam9->f_75[0] = 0.452f;
					uParam9->f_80[0] = 1;
					(*uParam9)[1] = 1;
					StringCopy(&(uParam9->f_10[1 /*16*/]), "Bar_Swallow", 64);
					uParam9->f_75[1] = 0.105f;
					uParam9->f_80[1] = 2;
					break;
				
				case 8:
					if (iParam8)
					{
						if (iParam10)
						{
							(*uParam9)[0] = 1;
							StringCopy(&(uParam9->f_10[0 /*16*/]), "Knuckle_Crack_Hard", 64);
							uParam9->f_75[0] = 0.135f;
							uParam9->f_80[0] = 3;
							(*uParam9)[1] = 1;
							StringCopy(&(uParam9->f_10[1 /*16*/]), "Knuckle_Crack_Soft", 64);
							uParam9->f_75[1] = 0.327f;
							uParam9->f_80[1] = 3;
							(*uParam9)[2] = 1;
							StringCopy(&(uParam9->f_10[2 /*16*/]), "Knuckle_Crack_Slap", 64);
							uParam9->f_75[2] = 0.498f;
							uParam9->f_80[2] = 3;
							(*uParam9)[3] = 1;
							StringCopy(&(uParam9->f_10[3 /*16*/]), "Knuckle_Crack_Slap", 64);
							uParam9->f_75[3] = 0.628f;
							uParam9->f_80[3] = 3;
						}
						else
						{
							(*uParam9)[0] = 1;
							StringCopy(&(uParam9->f_10[0 /*16*/]), "Knuckle_Crack_Hard", 64);
							uParam9->f_75[0] = 0.128f;
							uParam9->f_80[0] = 3;
							(*uParam9)[1] = 1;
							StringCopy(&(uParam9->f_10[1 /*16*/]), "Knuckle_Crack_Hard", 64);
							uParam9->f_75[1] = 0.295f;
							uParam9->f_80[1] = 3;
							(*uParam9)[2] = 1;
							StringCopy(&(uParam9->f_10[2 /*16*/]), "Knuckle_Crack_Soft", 64);
							uParam9->f_75[2] = 0.453f;
							uParam9->f_80[2] = 3;
							(*uParam9)[3] = 1;
							StringCopy(&(uParam9->f_10[3 /*16*/]), "Knuckle_Crack_Soft", 64);
							uParam9->f_75[3] = 0.589f;
							uParam9->f_80[3] = 3;
						}
					}
					else
					{
						(*uParam9)[0] = 1;
						StringCopy(&(uParam9->f_10[0 /*16*/]), "Knuckle_Crack_Hard", 64);
						uParam9->f_75[0] = 0.541f;
						uParam9->f_80[0] = 0;
						if (iParam11)
						{
							(*uParam9)[1] = 1;
							StringCopy(&(uParam9->f_10[1 /*16*/]), "Knuckle_Crack_Soft", 64);
							uParam9->f_75[1] = 0.05f;
							uParam9->f_80[1] = 1;
							(*uParam9)[2] = 1;
							StringCopy(&(uParam9->f_10[2 /*16*/]), "Knuckle_Crack_Soft", 64);
							uParam9->f_75[2] = 0.57f;
							uParam9->f_80[2] = 1;
						}
						else
						{
							(*uParam9)[1] = 1;
							StringCopy(&(uParam9->f_10[1 /*16*/]), "Knuckle_Crack_Soft", 64);
							uParam9->f_75[1] = 0.081f;
							uParam9->f_80[1] = 1;
							(*uParam9)[2] = 1;
							StringCopy(&(uParam9->f_10[2 /*16*/]), "Knuckle_Crack_Soft", 64);
							uParam9->f_75[2] = 0.543f;
							uParam9->f_80[2] = 1;
						}
					}
					break;
				
				case 9:
					if (iParam8)
					{
						(*uParam9)[0] = 1;
						StringCopy(&(uParam9->f_10[0 /*16*/]), "Slow_Clap_Cel", 64);
						uParam9->f_75[0] = 0.152f;
						uParam9->f_80[0] = 3;
						(*uParam9)[1] = 1;
						StringCopy(&(uParam9->f_10[1 /*16*/]), "Slow_Clap_Cel", 64);
						uParam9->f_75[1] = 0.371f;
						uParam9->f_80[1] = 3;
						(*uParam9)[2] = 1;
						StringCopy(&(uParam9->f_10[2 /*16*/]), "Slow_Clap_Cel", 64);
						uParam9->f_75[2] = 0.595f;
						uParam9->f_80[2] = 3;
					}
					else
					{
						(*uParam9)[0] = 1;
						StringCopy(&(uParam9->f_10[0 /*16*/]), "Slow_Clap", 64);
						uParam9->f_75[0] = 0.99f;
						uParam9->f_80[0] = 0;
						(*uParam9)[1] = 1;
						StringCopy(&(uParam9->f_10[1 /*16*/]), "Slow_Clap", 64);
						uParam9->f_75[1] = 0.99f;
						uParam9->f_80[1] = 1;
					}
					break;
			}
			break;
	}
}

bool func_275(int iParam0)//Position - 0x12533
{
	if (entity::get_entity_model(iParam0) == joaat("mp_f_freemode_01"))
	{
		return true;
	}
	return false;
}

void func_276(var uParam0, var uParam1)//Position - 0x1254E
{
	char* sVar0;
	char* sVar1;
	int iVar2;
	int iVar3;
	
	if (uParam1->f_13 == 1 || uParam1->f_14 == 1)
	{
		if (((((uParam1->f_13 == 1 && player::is_player_control_on(player::player_id())) || (uParam1->f_14 == 1 && Global_2557205.f_793)) || (streaming::is_player_switch_in_progress() && streaming::get_player_switch_state() == 10)) || func_280(0)) || func_278())
		{
			if (graphics::_0xEB3DAC2C86001E5E())
			{
				if (func_277(uParam0))
				{
					if (uParam0->f_102 == 3)
					{
						iVar2 = 1;
					}
					sVar0 = func_312(uParam0, iVar2, uParam0->f_104);
					sVar1 = func_209(uParam0);
					entity::set_entity_anim_speed(uParam0->f_119, sVar0, sVar1, 1f);
					uParam1->f_13 = 0;
					uParam1->f_14 = 0;
					uParam0->f_110 = 0;
				}
			}
		}
	}
	iVar3 = joaat("weapon_unarmed");
	if (uParam0->f_110)
	{
		weapon::get_current_ped_weapon(uParam0->f_119, &iVar3, 1);
		if (!iVar3 == joaat("weapon_unarmed") && !iVar3 == 0)
		{
			if (Global_1318843 == 0)
			{
				uParam0->f_120 = iVar3;
				weapon::set_current_ped_weapon(uParam0->f_119, joaat("weapon_unarmed"), true);
				if (uParam1->f_14)
				{
					uParam0->f_120 = joaat("weapon_unarmed");
				}
			}
		}
	}
}

bool func_277(var uParam0)//Position - 0x12676
{
	char* sVar0;
	char* sVar1;
	int iVar2;
	
	if (uParam0->f_111)
	{
		if (uParam0->f_102 == 3)
		{
			iVar2 = 1;
		}
		sVar1 = func_312(uParam0, iVar2, uParam0->f_104);
		sVar0 = func_209(uParam0);
		if (entity::is_entity_playing_anim(uParam0->f_119, sVar1, sVar0, 3))
		{
			if (entity::get_entity_anim_current_time(uParam0->f_119, sVar1, sVar0) >= uParam0->f_109)
			{
				return true;
			}
			else
			{
				entity::set_entity_anim_current_time(uParam0->f_119, sVar1, sVar0, uParam0->f_109);
			}
		}
	}
	return false;
}

bool func_278()//Position - 0x126E8
{
	switch (func_279())
	{
		case default:
			return true;
		
		case -1:
			return false;
		
		case 0:
			return false;
		
		case 8:
			return false;
	}
}

var func_279()//Position - 0x12718
{
	return Global_1725247.f_2768;
}

int func_280(int iParam0)//Position - 0x12727
{
	int iVar0;
	
	iVar0 = 0;
	switch (func_282())
	{
		case default:
			iVar0 = 0;
			break;
		
		case 10:
		case 16:
			iVar0 = 1;
			break;
	}
	if (iParam0)
	{
		if (func_281())
		{
			iVar0 = 1;
		}
	}
	return iVar0;
}

bool func_281()//Position - 0x12764
{
	switch (func_282())
	{
		case default:
			return false;
		
		case 12:
			return true;
	}
}

var func_282()//Position - 0x12780
{
	return Global_1723314;
}

void func_283()//Position - 0x1278C
{
	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_286(iVar0))
		{
			if (func_285(iVar0))
			{
				func_284(3, 1, 0, 1, 0, 0, 0, 0);
			}
			else
			{
				func_284(3, 2, 0, 1, 0, 0, 0, 0);
			}
		}
		else
		{
			func_284(3, 0, 0, 1, 0, 0, 0, 0);
		}
	}
	else
	{
		func_284(3, 0, 0, 1, 0, 0, 0, 0);
	}
}

void func_284(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7)//Position - 0x127F6
{
	Global_2557205 = iParam0;
	Global_2557205.f_1 = iParam1;
	if (iParam3)
	{
		if (func_352(&Global_2557205))
		{
			func_351(&Global_2557205);
		}
	}
	Global_2557205.f_3 = 1;
	if (iParam4 || func_320(iParam0, iParam1))
	{
		Global_2557205.f_4 = 1;
	}
	Global_2557205.f_9 = iParam2;
	Global_2557205.f_13 = iParam5;
	Global_2557205.f_14 = iParam6;
	Global_2557205.f_15 = iParam7;
	if (gameplay::is_bit_set(Global_2285, 3))
	{
		Global_2557205.f_5 = 1;
	}
}

bool func_285(int iParam0)//Position - 0x12877
{
	switch (vehicle::get_vehicle_layout_hash(iParam0))
	{
		case -2066252141:
		case 542797648:
		case 1105669833:
		case 925191417:
		case -782720499:
		case -38413156:
		case 68566729:
		case 1630950849:
		case -1150063973:
		case -463340997:
		case 2033852426:
		case 1697345049:
		case -635697407:
		case -1453479140:
		case 165348604:
		case 2013836096:
		case 1837596901:
		case 1933394722:
		case 2071837743:
			return true;
			break;
	}
	return false;
}

bool func_286(int iParam0)//Position - 0x12904
{
	if (!vehicle::is_vehicle_seat_free(iParam0, -1))
	{
		if (vehicle::get_ped_in_vehicle_seat(iParam0, -1) == player::player_ped_id())
		{
			return true;
		}
	}
	return false;
}

bool func_287(var uParam0)//Position - 0x1292A
{
	if (uParam0->f_1683)
	{
		return true;
	}
	return false;
}

void func_288(var uParam0, int iParam1, int iParam2, float fParam3, int iParam4, int iParam5, int iParam6)//Position - 0x1293F
{
	struct<20> Var0;
	struct<22> Var22;
	char* sVar44;
	int iVar45;
	int iVar46;
	int iVar47;
	int iVar48;
	int iVar49;
	float fVar50;
	var uVar51;
	float fVar52;
	float fVar53;
	int iVar54;
	char cVar55[64];
	
	Var0.f_4 = 1065353216;
	Var0.f_5 = 1065353216;
	Var0.f_9 = 1065353216;
	Var0.f_10 = 1065353216;
	Var0.f_14 = 1065353216;
	Var0.f_15 = 1065353216;
	Var0.f_17 = 1040187392;
	Var0.f_18 = 1040187392;
	Var0.f_19 = -1;
	Var22.f_4 = 1065353216;
	Var22.f_5 = 1065353216;
	Var22.f_9 = 1065353216;
	Var22.f_10 = 1065353216;
	Var22.f_14 = 1065353216;
	Var22.f_15 = 1065353216;
	Var22.f_17 = 1040187392;
	Var22.f_18 = 1040187392;
	Var22.f_19 = -1;
	iVar45 = 0;
	iVar46 = 0;
	uParam0->f_104 = 0;
	if (func_182() && uParam0->f_119 == player::player_ped_id())
	{
		uParam0->f_104 = 1;
	}
	if (iParam6)
	{
		fParam3 = 0.01f;
	}
	uParam0->f_105 = 0;
	if (uParam0->f_119 == player::player_ped_id())
	{
		if (!iParam6)
		{
			if (func_5())
			{
				uParam0->f_105 = 1;
			}
		}
	}
	Var22 = 1;
	Var22.f_3 = fParam3;
	Var22.f_8 = fParam3;
	Var22.f_13 = fParam3;
	Var22.f_4 = 1f;
	uParam0->f_102 = iParam1;
	iVar45 += 32;
	iVar45 += 8192;
	if ((uParam0->f_121.f_373 && !uParam0->f_102 == 2) && !uParam0->f_102 == 3)
	{
		iVar45 += 2;
		iVar47 = 1;
	}
	if (uParam0->f_121.f_373 && uParam0->f_102 == 1)
	{
		iVar45++;
		iVar48 = 1;
	}
	if (uParam0->f_102 == 2)
	{
		iVar45 = (iVar45 + 536870912);
	}
	iVar49 = uParam0->f_121.f_436;
	if (uParam0->f_104)
	{
		if (*uParam0 == 3)
		{
			sVar44 = "BONEMASK_HEADONLY";
			Var22.f_16 = gameplay::get_hash_key(sVar44);
		}
		else
		{
			sVar44 = "BONEMASK_HEAD_NECK_AND_L_ARM";
			Var22.f_16 = gameplay::get_hash_key(sVar44);
		}
	}
	else if (uParam0->f_102 == 3)
	{
		Var22.f_16 = 0;
		iVar45 = (iVar45 + 1048576);
	}
	else if (iVar49 > -1)
	{
		if (*uParam0 == 3 && uParam0->f_1 == 0)
		{
			if (!func_293(uParam0->f_119))
			{
				sVar44 = "BONEMASK_HEAD_NECK_AND_L_ARM";
				Var22.f_16 = gameplay::get_hash_key(sVar44);
			}
			else
			{
				sVar44 = "FORCED_BONEMASK_HEADONLY";
				Var22.f_16 = gameplay::get_hash_key(sVar44);
			}
		}
		else
		{
			switch (iVar49)
			{
				case 0:
					sVar44 = "BONEMASK_HEADONLY";
					break;
				
				case 1:
					sVar44 = "BONEMASK_HEAD_NECK_AND_ARMS";
					break;
				
				case 2:
					sVar44 = "BONEMASK_HEAD_NECK_AND_L_ARM";
					break;
				
				case 3:
					sVar44 = "BONEMASK_HEAD_NECK_AND_R_ARM";
					break;
			}
			Var22.f_16 = gameplay::get_hash_key(sVar44);
			if (func_293(uParam0->f_119))
			{
				iVar45 = (iVar45 + 1048576);
				iVar46 += 2;
			}
		}
	}
	else if ((uParam0->f_121.f_369 && !func_293(uParam0->f_119)) && !ped::is_ped_in_any_vehicle(uParam0->f_119, 0))
	{
		if (iVar49 == -2)
		{
			sVar44 = "";
			Var22.f_16 = 0;
		}
		else
		{
			sVar44 = "BONEMASK_HEAD_NECK_AND_L_ARM";
			Var22.f_16 = gameplay::get_hash_key(sVar44);
		}
	}
	else
	{
		if (func_289(uParam0->f_119))
		{
			sVar44 = "";
			Var22.f_16 = 0;
		}
		else if (iVar49 == -2)
		{
			sVar44 = "";
			Var22.f_16 = 0;
		}
		else if (iVar49 == -3 && func_238(uParam0->f_119))
		{
			sVar44 = "";
			Var22.f_16 = 0;
			uParam0->f_101 = 1;
		}
		else
		{
			uParam0->f_101 = 0;
			sVar44 = "BONEMASK_HEAD_NECK_AND_ARMS";
			Var22.f_16 = gameplay::get_hash_key(sVar44);
		}
		iVar45 = (iVar45 + 1048576);
		iVar46 += 2;
	}
	if (func_212(uParam0))
	{
		if (!iVar46 & 2 == 0)
		{
			iVar46 = (iVar46 - 2);
		}
		Var22.f_16 = 0;
		iVar46 += 1024;
		iVar46 += 2048;
		iVar45 = (iVar45 + 268435456);
		if (!ped::is_ped_in_any_vehicle(uParam0->f_119, 0))
		{
			iVar45 += 16;
		}
		if (iVar45 & 1048576 == 0)
		{
			iVar45 = (iVar45 + 1048576);
		}
	}
	switch (uParam0->f_102)
	{
		case 1:
			Var22.f_2 = func_199(&(uParam0->f_121.f_225));
			break;
		
		case 0:
			Var22.f_2 = func_199(&(uParam0->f_121.f_209));
			break;
		
		case 2:
			Var22.f_2 = func_199(&(uParam0->f_121.f_241));
			break;
		
		case 3:
			Var22.f_2 = func_199(&(uParam0->f_121.f_257));
			break;
	}
	if (!uParam0->f_102 == 3)
	{
		Var22.f_1 = func_312(uParam0, 0, uParam0->f_104);
	}
	else
	{
		Var22.f_1 = func_312(uParam0, 1, 0);
	}
	if (!fParam3 > 0f)
	{
		if (entity::find_anim_event_phase(Var22.f_1, Var22.f_2, "START", &fVar50, &uVar51))
		{
			Var22.f_3 = fVar50;
		}
	}
	if (uParam0->f_121.f_370)
	{
		if (entity::find_anim_event_phase(Var22.f_1, Var22.f_2, "CREATE", &fVar50, &uVar51))
		{
			if (fVar50 <= Var22.f_3)
			{
				uParam0->f_9 = 1;
			}
		}
		else if (iParam6)
		{
			uParam0->f_9 = 1;
		}
	}
	if (iParam5 || iParam6)
	{
		Var22.f_4 = 0f;
		uParam0->f_110 = 1;
	}
	else
	{
		uParam0->f_110 = 0;
	}
	switch (uParam0->f_102)
	{
		case 0:
			if (ped::is_ped_in_any_vehicle(uParam0->f_119, 0))
			{
				fVar52 = 0.25f;
			}
			else
			{
				fVar52 = 0.5f;
			}
			fVar53 = 0f;
			break;
		
		case 1:
			if (iParam4)
			{
				fVar52 = 0.25f;
			}
			else
			{
				fVar52 = 0f;
			}
			if (iParam2)
			{
				fVar53 = 0.25f;
			}
			else
			{
				fVar53 = 0f;
			}
			break;
		
		case 2:
			if (iParam2 || iParam4)
			{
				fVar52 = 0.25f;
			}
			else
			{
				fVar52 = 0f;
			}
			fVar53 = 0.25f;
			break;
		
		case 3:
			fVar52 = 0.25f;
			fVar53 = 0.25f;
			break;
	}
	if (Var22.f_3 > 0f || uParam0->f_110)
	{
		fVar52 = 0f;
	}
	if (uParam0->f_104)
	{
		iVar46 += 4;
	}
	if (uParam0->f_102 == 3)
	{
		iVar46 = 2 + 4 + 8 + 16;
	}
	uParam0->f_109 = fParam3;
	uParam0->f_103 = iParam2;
	Var22.f_20 = iVar45;
	Var22.f_21 = iVar46;
	uParam0->f_106 = iVar45;
	if (!uParam0->f_104)
	{
		ai::task_clear_look_at(uParam0->f_119);
	}
	iVar54 = ai::get_script_task_status(uParam0->f_119, -1146898486);
	if (iVar54 == 7)
	{
		iVar54 = ai::get_script_task_status(uParam0->f_119, -258271821);
	}
	if ((uParam0->f_102 == 3 && !iParam5) && !iParam6)
	{
		StringCopy(&cVar55, Var22.f_2, 64);
		StringConCat(&cVar55, "_Facial", 64);
		ped::play_facial_anim(uParam0->f_119, &cVar55, Var22.f_1);
	}
	if ((iVar54 == 7 && (!Global_69519 || Global_1722816)) && !uParam0->f_104)
	{
		ai::open_sequence_task(&(uParam0->f_115));
		ai::task_scripted_animation(0, &Var22, &Var0, &Var0, fVar52, fVar53);
		ai::close_sequence_task(uParam0->f_115);
		ai::task_perform_sequence(uParam0->f_119, uParam0->f_115);
		ai::clear_sequence_task(&(uParam0->f_115));
	}
	else if (uParam0->f_104)
	{
		ai::task_play_phone_gesture_animation(uParam0->f_119, Var22.f_1, Var22.f_2, sVar44, fVar52, fVar53, iVar48, iVar47);
	}
	else
	{
		ai::task_scripted_animation(uParam0->f_119, &Var22, &Var0, &Var0, fVar52, fVar53);
	}
	if (uParam0->f_1 == 1 || uParam0->f_1 == 29)
	{
		if (uParam0->f_119 == player::player_ped_id())
		{
			if (uParam0->f_102 == 0 || uParam0->f_102 == 1)
			{
				Global_2418529[player::player_id() /*313*/].f_45 = 1;
			}
			if (uParam0->f_102 == 2)
			{
				Global_2418529[player::player_id() /*313*/].f_44 = 0;
				Global_2418529[player::player_id() /*313*/].f_45 = 0;
			}
		}
	}
	uParam0->f_111 = 1;
}

int func_289(int iParam0)//Position - 0x13075
{
	int iVar0;
	int iVar1;
	
	if (ped::is_ped_in_any_vehicle(iParam0, 0))
	{
		iVar0 = ped::get_vehicle_ped_is_in(iParam0, 0);
		iVar1 = func_292(iParam0);
		if (func_291(iVar1))
		{
			return func_290(iVar0);
		}
	}
	return 0;
}

bool func_290(int iParam0)//Position - 0x130AB
{
	switch (vehicle::get_vehicle_layout_hash(iParam0))
	{
		case 919485892:
		case 1816176348:
		case -1965057835:
		case -1838563680:
		case 1768419516:
		case 1576485197:
		case 929009548:
		case -497732145:
		case -1856101214:
		case -1659990386:
		case 436153147:
		case 1939145032:
		case -399604638:
			return true;
			break;
	}
	return false;
}

bool func_291(int iParam0)//Position - 0x13114
{
	switch (iParam0)
	{
		case 1:
		case 2:
		case 3:
		case 4:
		case 5:
		case 6:
		case 7:
		case 8:
			return true;
			break;
	}
	return false;
}

int func_292(int iParam0)//Position - 0x1315B
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (ped::is_ped_in_any_vehicle(iParam0, 0))
		{
			iVar0 = ped::get_vehicle_ped_is_in(iParam0, 0);
			iVar1 = 0;
			while (iVar1 < vehicle::get_vehicle_max_number_of_passengers(iVar0) + 1)
			{
				iVar2 = (iVar1 - 1);
				if (!vehicle::is_vehicle_seat_free(iVar0, iVar2))
				{
					if (vehicle::get_ped_in_vehicle_seat(iVar0, iVar2) == iParam0)
					{
						return iVar2;
					}
				}
				iVar1++;
			}
		}
	}
	return iVar2;
}

bool func_293(int iParam0)//Position - 0x131BF
{
	int iVar0;
	int iVar1;
	
	if (!entity::is_entity_dead(iParam0, 0))
	{
		weapon::get_current_ped_weapon(iParam0, &iVar0, 1);
		if (iVar0 == 0)
		{
			return false;
		}
		iVar1 = weapon::get_weapontype_group(iVar0);
		if ((((((iVar1 == 970310034 || iVar1 == 860033945) || iVar1 == -1212426201) || iVar1 == -1569042529) || iVar1 == -1212426201) || iVar1 == 1159398588) || iVar1 == 88899580)
		{
			return true;
		}
		if (iVar1 == -957766203)
		{
			if (iVar0 == joaat("weapon_smg") || iVar0 == joaat("weapon_assaultsmg"))
			{
				return true;
			}
		}
	}
	return false;
}

void func_294(var uParam0, int iParam1, int iParam2)//Position - 0x13279
{
	vector3 vVar0;
	
	if (uParam0->f_114 != -1 && graphics::does_particle_fx_looped_exist(uParam0->f_114))
	{
		graphics::stop_particle_fx_looped(uParam0->f_114, 0);
	}
	if (iParam2)
	{
		func_298(&(uParam0->f_113));
		if (entity::does_entity_exist(uParam0->f_112))
		{
			object::delete_object(&(uParam0->f_112));
		}
	}
	else if (!ped::is_ped_injured(uParam0->f_119) && ped::is_ped_in_any_vehicle(uParam0->f_119, 0))
	{
		if (func_184(uParam0->f_119))
		{
			func_298(&(uParam0->f_113));
		}
		if (entity::does_entity_exist(uParam0->f_112))
		{
			object::delete_object(&(uParam0->f_112));
		}
	}
	else
	{
		if (entity::does_entity_exist(uParam0->f_112))
		{
			entity::detach_entity(uParam0->f_112, 1, true);
			if (iParam1)
			{
				vVar0 = { entity::get_entity_coords(uParam0->f_112, 0) - uParam0->f_116 };
				vVar0 = { vVar0 / FtoV(system::vmag(vVar0)) };
				vVar0 = { vVar0 * Vector(4f, 4f, 4f) };
				entity::apply_force_to_entity(uParam0->f_112, 1, vVar0, 0f, 0f, 0f, 0, 0, 1, 1, 0, 1);
			}
		}
		if (func_184(uParam0->f_119))
		{
			func_297(&(uParam0->f_113));
		}
		if (entity::does_entity_exist(uParam0->f_112))
		{
			entity::set_object_as_no_longer_needed(&(uParam0->f_112));
			if (func_295(player::player_id(), 1, 0))
			{
				if (network::_0xC7827959479DCC78(uParam0->f_112))
				{
					network::network_unregister_networked_entity(uParam0->f_112);
				}
			}
		}
	}
	uParam0->f_112 = -1;
	uParam0->f_12 = 0;
	uParam0->f_9 = 0;
}

bool func_295(int iParam0, int iParam1, int iParam2)//Position - 0x133BF
{
	if (iParam0 == func_296())
	{
		return false;
	}
	if (gameplay::is_bit_set(Global_1587816[iParam0 /*444*/].f_250.f_7, 0))
	{
		return true;
	}
	if (iParam1)
	{
		if (gameplay::is_bit_set(Global_1587816[iParam0 /*444*/].f_250.f_7, 1))
		{
			return true;
		}
	}
	if (iParam2)
	{
		if (Global_2418529[iParam0 /*313*/].f_305.f_1 != -1)
		{
			return true;
		}
	}
	return false;
}

int func_296()//Position - 0x13427
{
	return -1;
}

void func_297(var uParam0)//Position - 0x13430
{
	int iVar0;
	
	if (network::network_does_entity_exist_with_network_id(*uParam0))
	{
		iVar0 = network::net_to_ent(*uParam0);
		entity::set_entity_as_no_longer_needed(&iVar0);
	}
}

void func_298(var uParam0)//Position - 0x13454
{
	int iVar0;
	
	if (network::network_does_network_id_exist(*uParam0))
	{
		if (!network::network_has_control_of_network_id(*uParam0))
		{
		}
	}
	if (network::network_does_entity_exist_with_network_id(*uParam0))
	{
		iVar0 = network::net_to_ent(*uParam0);
		entity::delete_entity(&iVar0);
	}
}

void func_299(var uParam0, var uParam1)//Position - 0x1348D
{
}

int func_300(int iParam0, int iParam1, int iParam2)//Position - 0x13495
{
	int iVar0;
	var uVar1;
	
	if (iParam2 == 0)
	{
	}
	iVar0 = Global_2473854[iParam0 /*5*/][func_267(iParam1)];
	if (stats::stat_get_int(iVar0, &uVar1, -1))
	{
		return uVar1;
	}
	return 0;
}

int func_301(int iParam0, int iParam1)//Position - 0x134C7
{
	switch (iParam0)
	{
		case 0:
			switch (iParam1)
			{
				case 1:
					return 1090;
					break;
			}
			break;
		
		case 2:
			switch (iParam1)
			{
				case 29:
					return 1090;
					break;
				
				case 30:
					return 62;
					break;
				
				case 31:
					return 63;
					break;
				
				case 32:
					return 1268;
					break;
				
				case 33:
					return 1269;
					break;
				
				case 34:
					return 1270;
					break;
			}
			break;
	}
	return 0;
}

bool func_302(int iParam0, int iParam1)//Position - 0x1355E
{
	switch (iParam0)
	{
		case 0:
			switch (iParam1)
			{
				case 1:
					return true;
					break;
			}
			break;
		
		case 2:
			switch (iParam1)
			{
				case 29:
				case 30:
				case 31:
				case 32:
				case 33:
				case 34:
					return true;
					break;
			}
			break;
	}
	return false;
}

bool func_303(int iParam0, int iParam1)//Position - 0x135C6
{
	switch (iParam0)
	{
		case 0:
			switch (iParam1)
			{
				case 29:
				case 30:
					if (Global_262145.f_9777 == 0)
					{
						return true;
					}
					break;
				
				case 0:
				default:
					break;
			}
			break;
		
		case 2:
			switch (iParam1)
			{
				case 27:
				case 28:
					if (Global_262145.f_9777 == 0)
					{
						return true;
					}
					break;
				
				case 0:
				default:
					break;
			}
			break;
	}
	return false;
}

int func_304()//Position - 0x13644
{
	return gameplay::is_bit_set(Global_2464975.f_4429, 24);
}

bool func_305(int iParam0, int iParam1)//Position - 0x13659
{
	switch (iParam0)
	{
		case 2:
			switch (iParam1)
			{
				case 30:
				case 31:
				case 32:
				case 33:
				case 34:
					return true;
					break;
			}
			break;
	}
	return false;
}

bool func_306()//Position - 0x1369E
{
	if (func_239() || Global_69519)
	{
		return true;
	}
	return false;
}

int func_307(int iParam0)//Position - 0x136BC
{
	if (func_234())
	{
		return 1;
	}
	switch (iParam0)
	{
		case 0:
			return func_229();
			break;
		
		case 1:
		case 2:
			return func_214(1);
			break;
		
		case 3:
			return 1;
			break;
	}
	return 0;
}

bool func_308(var uParam0, var uParam1, int iParam2)//Position - 0x1370B
{
	if (*uParam0 == Global_2557205.f_782 && uParam0->f_1 == Global_2557205.f_783)
	{
		return true;
	}
	if (((func_311(uParam0, uParam1, iParam2) && func_272(uParam0)) && func_310(uParam0)) && func_309())
	{
		return true;
	}
	else
	{
		gameplay::set_bit(&(Global_1731994[1]), 10);
		if (func_311(uParam0, uParam1, iParam2) == 0)
		{
			gameplay::set_bit(&(Global_1731994[1]), 11);
		}
		if (func_272(uParam0) == 0)
		{
			gameplay::set_bit(&(Global_1731994[1]), 12);
		}
		if (func_310(uParam0) == 0)
		{
			gameplay::set_bit(&(Global_1731994[1]), 13);
		}
		if (func_309() == 0)
		{
			gameplay::set_bit(&(Global_1731994[1]), 14);
		}
	}
	return false;
}

int func_309()//Position - 0x137D5
{
	return audio::request_script_audio_bank("DLC_GTAO/SNACKS", false, -1);
}

bool func_310(var uParam0)//Position - 0x137E7
{
	if (uParam0->f_121.f_372)
	{
		streaming::request_ptfx_asset();
		if (streaming::has_ptfx_asset_loaded())
		{
			return true;
		}
		else
		{
			gameplay::set_bit(&(Global_1731994[1]), 8);
		}
	}
	else
	{
		return true;
	}
	return false;
}

bool func_311(var uParam0, var uParam1, int iParam2)//Position - 0x13820
{
	streaming::request_anim_dict(func_312(uParam0, uParam1, iParam2));
	if (streaming::has_anim_dict_loaded(func_312(uParam0, uParam1, iParam2)))
	{
		return true;
	}
	else
	{
		gameplay::set_bit(&(Global_1731994[1]), 17);
	}
	return false;
}

var func_312(var uParam0, int iParam1, int iParam2)//Position - 0x1385C
{
	if (iParam1 || func_320(*uParam0, uParam0->f_1))
	{
		return func_314(uParam0);
	}
	return func_313(&(uParam0->f_121), *uParam0, uParam0->f_2, uParam0->f_3, uParam0->f_4, uParam0->f_5, uParam0->f_6, uParam0->f_7, iParam2);
}

var func_313(var uParam0, int iParam1, var uParam2, int iParam3, int iParam4, var uParam5, int iParam6, int iParam7, int iParam8)//Position - 0x138AB
{
	switch (iParam1)
	{
		case 0:
			if (iParam3)
			{
				if (iParam6)
				{
					return func_199(uParam0[0 /*16*/]);
				}
				else
				{
					return func_199(uParam0[1 /*16*/]);
				}
			}
			else if (!iParam7)
			{
				if (iParam6)
				{
					return func_199(uParam0[2 /*16*/]);
				}
				else if (uParam2 || uParam5)
				{
					return func_199(uParam0[4 /*16*/]);
				}
				else if (iParam4)
				{
					return func_199(uParam0[5 /*16*/]);
				}
				else
				{
					return func_199(uParam0[3 /*16*/]);
				}
			}
			else if (iParam6)
			{
				return func_199(uParam0[6 /*16*/]);
			}
			else if (uParam2 || uParam5)
			{
				return func_199(uParam0[8 /*16*/]);
			}
			else if (iParam4)
			{
				return func_199(uParam0[9 /*16*/]);
			}
			else
			{
				return func_199(uParam0[7 /*16*/]);
			}
			break;
	}
	if (iParam8)
	{
		return func_199(uParam0[12 /*16*/]);
	}
	return func_199(uParam0[0 /*16*/]);
}

var func_314(var uParam0)//Position - 0x139B1
{
	if (uParam0->f_119 == player::player_ped_id())
	{
		if (!func_315())
		{
			return func_199(&(uParam0->f_121[10 /*16*/]));
		}
		else
		{
			return func_199(&(uParam0->f_121[11 /*16*/]));
		}
	}
	if (entity::does_entity_exist(uParam0->f_119))
	{
		if (ped::is_ped_male(uParam0->f_119))
		{
			return func_199(&(uParam0->f_121[10 /*16*/]));
		}
		else
		{
			return func_199(&(uParam0->f_121[11 /*16*/]));
		}
	}
	if (uParam0->f_8)
	{
		return func_199(&(uParam0->f_121[10 /*16*/]));
	}
	return func_199(&(uParam0->f_121[11 /*16*/]));
}

int func_315()//Position - 0x13A4F
{
	return func_316(player::player_id());
}

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

bool func_317(int iParam0, int iParam1)//Position - 0x13A7E
{
	switch (iParam0)
	{
		case 1:
			switch (iParam1)
			{
				case 0:
					return true;
					break;
			}
			break;
		
		case 2:
			switch (iParam1)
			{
				case 1:
				case 2:
				case 3:
				case 4:
				case 7:
				case 5:
				case 10:
				case 11:
				case 12:
				case 13:
				case 15:
				case 14:
				case 16:
				case 17:
				case 18:
				case 19:
				case 20:
				case 21:
				case 22:
				case 23:
				case 26:
				case 25:
				case 24:
					return true;
					break;
			}
			break;
		
		case 3:
			switch (iParam1)
			{
				case 0:
					return true;
					break;
			}
			break;
	}
	return false;
}

bool func_318(int iParam0, int iParam1)//Position - 0x13B69
{
	if (((iParam0 == 0 && iParam1 == 0) || (iParam0 == 2 && iParam1 == 0)) || (iParam0 == -1 && iParam1 == -1))
	{
		return true;
	}
	return false;
}

int func_319()//Position - 0x13BAC
{
	if (network::network_is_game_in_progress())
	{
		return network::get_network_time();
	}
	return gameplay::get_game_timer();
}

bool func_320(int iParam0, int iParam1)//Position - 0x13BC9
{
	switch (iParam0)
	{
		case 3:
			switch (iParam1)
			{
				case 3:
				case 4:
				case 5:
				case 6:
					return true;
					break;
				
				case 7:
				case 8:
				case 9:
				case 10:
				case 11:
				case 12:
				case 13:
				case 14:
				case 15:
				case 16:
				case 17:
				case 18:
				case 19:
				case 20:
				case 21:
				case 22:
				case 23:
				case 24:
				case 25:
				case 26:
				case 27:
				case 28:
				case 29:
				case 30:
				case 31:
				case 32:
				case 33:
				case 34:
					return true;
					break;
				
				case 0:
				default:
					return false;
					break;
			}
			break;
	}
	return false;
}

bool func_321(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x13CC4
{
	var uVar0;
	int iVar33;
	int iVar34;
	int iVar35;
	
	uVar0 = 32;
	if (iParam1 == 0)
	{
		iVar33 = 3;
	}
	else if (iParam3)
	{
		iVar33 = 1;
	}
	else if (iParam4)
	{
		iVar33 = 2;
	}
	else
	{
		iVar33 = 0;
	}
	func_324(iParam1, iParam2, &uVar0, iVar33);
	if (!entity::is_entity_dead(iParam0, 0))
	{
		if (ped::is_ped_in_any_vehicle(iParam0, 0))
		{
			iVar34 = ped::get_vehicle_ped_is_in(iParam0, 0);
			iVar35 = entity::get_entity_model(iVar34);
			if (func_322(&uVar0, func_323(iVar35)))
			{
				return true;
			}
		}
	}
	return false;
}

bool func_322(var uParam0, int iParam1)//Position - 0x13D3D
{
	int iVar0;
	
	iVar0 = system::floor((system::to_float(iParam1) / 32f));
	if (gameplay::is_bit_set((*uParam0)[iVar0], (iParam1 - iVar0 * 32)))
	{
		return true;
	}
	return false;
}

bool func_323(int iParam0)//Position - 0x13D70
{
	switch (iParam0)
	{
		case joaat("prototipo"):
			return true;
			break;
	}
	return false;
}

void func_324(int iParam0, int iParam1, var uParam2, int iParam3)//Position - 0x13D8D
{
	switch (iParam0)
	{
		case 0:
			switch (iParam1)
			{
				case 29:
					switch (iParam3)
					{
						case 3:
							func_325(uParam2, func_323(joaat("prototipo")), 1);
							break;
					}
					break;
				
				case 27:
					switch (iParam3)
					{
						case 3:
							func_325(uParam2, func_323(joaat("prototipo")), 1);
							break;
					}
					break;
				
				case 30:
					switch (iParam3)
					{
						case 3:
							func_325(uParam2, func_323(joaat("prototipo")), 1);
							break;
					}
					break;
			}
			break;
	}
}

void func_325(var uParam0, int iParam1, int iParam2)//Position - 0x13E27
{
	int iVar0;
	
	iVar0 = system::floor((system::to_float(iParam1) / 32f));
	if (iParam2)
	{
		gameplay::set_bit(uParam0[iVar0], (iParam1 - iVar0 * 32));
	}
	else
	{
		gameplay::clear_bit(uParam0[iVar0], (iParam1 - iVar0 * 32));
	}
}

bool func_326(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0x13E6B
{
	var uVar0;
	var uVar4;
	var uVar8;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	
	uVar0 = 3;
	uVar4 = 3;
	uVar8 = 3;
	if (iParam1 == 0)
	{
		iVar15 = 3;
	}
	else if (iParam3)
	{
		iVar15 = 1;
	}
	else if (iParam4)
	{
		iVar15 = 2;
	}
	else
	{
		iVar15 = 0;
	}
	func_334(iParam1, iParam2, &uVar0, &uVar4, &uVar8, iVar15, iParam5);
	if (!entity::is_entity_dead(iParam0, 0))
	{
		if (entity::get_entity_model(iParam0) == joaat("mp_f_freemode_01"))
		{
			iVar12 = func_333(iParam0);
			if (!iVar12 == -1)
			{
				if (func_332(&uVar0, iVar12))
				{
					return true;
				}
			}
		}
		else
		{
			iVar13 = func_331(iParam0);
			if (!iVar13 == -1)
			{
				if (func_329(&uVar4, iVar13))
				{
					return true;
				}
			}
		}
		if (network::network_is_game_in_progress())
		{
			iVar14 = func_328(iParam0);
			if (!iVar14 == 0)
			{
				if (func_327(&uVar8, iVar14))
				{
					return true;
				}
			}
		}
	}
	return false;
}

bool func_327(var uParam0, int iParam1)//Position - 0x13F3A
{
	int iVar0;
	
	iVar0 = system::floor((system::to_float(iParam1) / 32f));
	if (gameplay::is_bit_set((*uParam0)[iVar0], (iParam1 - iVar0 * 32)))
	{
		return true;
	}
	return false;
}

int func_328(int iParam0)//Position - 0x13F6D
{
	int iVar0;
	
	iVar0 = ped::get_ped_drawable_variation(iParam0, 1);
	return iVar0;
}

int func_329(var uParam0, int iParam1)//Position - 0x13F80
{
	return func_330(uParam0, iParam1);
}

bool func_330(var uParam0, int iParam1)//Position - 0x13F90
{
	int iVar0;
	
	iVar0 = system::floor((system::to_float(iParam1) / 32f));
	if (gameplay::is_bit_set((*uParam0)[iVar0], (iParam1 - iVar0 * 32)))
	{
		return true;
	}
	return false;
}

int func_331(int iParam0)//Position - 0x13FC3
{
	int iVar0;
	
	iVar0 = ped::get_ped_prop_index(iParam0, 0);
	return iVar0;
}

int func_332(var uParam0, int iParam1)//Position - 0x13FD6
{
	return func_330(uParam0, iParam1);
}

int func_333(int iParam0)//Position - 0x13FE6
{
	int iVar0;
	
	iVar0 = ped::get_ped_prop_index(iParam0, 0);
	return iVar0;
}

void func_334(int iParam0, int iParam1, var uParam2, var uParam3, var uParam4, int iParam5, int iParam6)//Position - 0x13FF9
{
	switch (iParam0)
	{
		case 1:
			switch (iParam1)
			{
				case 0:
					switch (iParam5)
					{
						case 0:
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							break;
						
						case 1:
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							break;
						
						case 2:
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							break;
					}
					break;
			}
			break;
		
		case 0:
			switch (iParam1)
			{
				case 6:
				case 26:
					if (iParam6)
					{
						func_338(uParam3, 16, 1);
						func_338(uParam3, 48, 1);
						func_338(uParam3, 49, 1);
						func_338(uParam3, 18, 1);
						func_338(uParam3, 50, 1);
						func_338(uParam3, 51, 1);
						func_338(uParam3, 52, 1);
						func_338(uParam3, 53, 1);
						func_338(uParam3, 38, 1);
						func_338(uParam3, 47, 1);
						func_338(uParam3, 62, 1);
						func_336(uParam2, 16, 1);
						func_336(uParam2, 47, 1);
						func_336(uParam2, 48, 1);
						func_336(uParam2, 18, 1);
						func_336(uParam2, 37, 1);
						func_336(uParam2, 46, 1);
					}
					func_335(uParam4, 3, 1);
					func_335(uParam4, 4, 1);
					func_335(uParam4, 5, 1);
					func_335(uParam4, 6, 1);
					func_335(uParam4, 7, 1);
					func_335(uParam4, 8, 1);
					func_335(uParam4, 9, 1);
					func_335(uParam4, 12, 1);
					func_335(uParam4, 14, 1);
					func_335(uParam4, 15, 1);
					func_335(uParam4, 16, 1);
					func_335(uParam4, 17, 1);
					func_335(uParam4, 18, 1);
					func_335(uParam4, 19, 1);
					func_335(uParam4, 20, 1);
					func_335(uParam4, 59, 1);
					func_335(uParam4, 60, 1);
					func_335(uParam4, 61, 1);
					func_335(uParam4, 62, 1);
					func_335(uParam4, 62, 1);
					func_335(uParam4, 63, 1);
					func_335(uParam4, 64, 1);
					func_335(uParam4, 65, 1);
					func_335(uParam4, 66, 1);
					func_335(uParam4, 67, 1);
					func_335(uParam4, 68, 1);
					func_335(uParam4, 69, 1);
					func_335(uParam4, 70, 1);
					func_335(uParam4, 71, 1);
					func_335(uParam4, 72, 1);
					func_335(uParam4, 21, 1);
					func_335(uParam4, 22, 1);
					func_335(uParam4, 23, 1);
					func_335(uParam4, 24, 1);
					func_335(uParam4, 25, 1);
					func_335(uParam4, 26, 1);
					func_335(uParam4, 36, 1);
					func_335(uParam4, 46, 1);
					func_335(uParam4, 38, 1);
					func_335(uParam4, 28, 1);
					func_335(uParam4, 10, 1);
					func_335(uParam4, 33, 1);
					break;
				
				case 1:
					if (iParam6)
					{
						func_338(uParam3, 16, 1);
						func_338(uParam3, 48, 1);
						func_338(uParam3, 49, 1);
						func_338(uParam3, 18, 1);
						func_338(uParam3, 50, 1);
						func_338(uParam3, 51, 1);
						func_338(uParam3, 52, 1);
						func_338(uParam3, 53, 1);
						func_338(uParam3, 38, 1);
						func_338(uParam3, 47, 1);
						func_338(uParam3, 62, 1);
						func_336(uParam2, 18, 1);
						func_336(uParam2, 49, 1);
						func_336(uParam2, 50, 1);
						func_336(uParam2, 51, 1);
						func_336(uParam2, 52, 1);
						func_336(uParam2, 62, 1);
						func_336(uParam2, 37, 1);
						func_336(uParam2, 46, 1);
					}
					func_335(uParam4, 9, 1);
					func_335(uParam4, 12, 1);
					func_335(uParam4, 13, 1);
					func_335(uParam4, 17, 1);
					func_335(uParam4, 18, 1);
					func_335(uParam4, 19, 1);
					func_335(uParam4, 20, 1);
					func_335(uParam4, 59, 1);
					func_335(uParam4, 60, 1);
					func_335(uParam4, 61, 1);
					func_335(uParam4, 62, 1);
					func_335(uParam4, 62, 1);
					func_335(uParam4, 63, 1);
					func_335(uParam4, 64, 1);
					func_335(uParam4, 65, 1);
					func_335(uParam4, 66, 1);
					func_335(uParam4, 67, 1);
					func_335(uParam4, 68, 1);
					func_335(uParam4, 69, 1);
					func_335(uParam4, 70, 1);
					func_335(uParam4, 71, 1);
					func_335(uParam4, 72, 1);
					func_335(uParam4, 21, 1);
					func_335(uParam4, 22, 1);
					func_335(uParam4, 23, 1);
					func_335(uParam4, 24, 1);
					func_335(uParam4, 25, 1);
					func_335(uParam4, 26, 1);
					func_335(uParam4, 36, 1);
					func_335(uParam4, 46, 1);
					func_335(uParam4, 38, 1);
					func_335(uParam4, 29, 1);
					func_335(uParam4, 28, 1);
					func_335(uParam4, 8, 1);
					func_335(uParam4, 10, 1);
					func_335(uParam4, 31, 1);
					func_335(uParam4, 33, 1);
					func_335(uParam4, 34, 1);
					break;
				
				case 10:
					func_335(uParam4, 28, 1);
					break;
				
				case 12:
					if (iParam6)
					{
						func_338(uParam3, 3, 1);
						func_338(uParam3, 4, 1);
						func_338(uParam3, 6, 1);
						func_338(uParam3, 10, 1);
						func_338(uParam3, 54, 1);
						func_338(uParam3, 55, 1);
						func_338(uParam3, 56, 1);
						func_338(uParam3, 13, 1);
						func_338(uParam3, 16, 1);
						func_338(uParam3, 48, 1);
						func_338(uParam3, 49, 1);
						func_338(uParam3, 18, 1);
						func_338(uParam3, 50, 1);
						func_338(uParam3, 51, 1);
						func_338(uParam3, 52, 1);
						func_338(uParam3, 53, 1);
						func_338(uParam3, 38, 1);
						func_338(uParam3, 47, 1);
						func_338(uParam3, 62, 1);
						func_338(uParam3, 20, 1);
						func_338(uParam3, 26, 1);
						func_338(uParam3, 27, 1);
						func_338(uParam3, 32, 1);
						func_338(uParam3, 33, 1);
						func_338(uParam3, 37, 1);
						func_338(uParam3, 39, 1);
						func_336(uParam2, 3, 1);
						func_336(uParam2, 4, 1);
						func_336(uParam2, 6, 1);
						func_336(uParam2, 8, 1);
						func_336(uParam2, 9, 1);
						func_336(uParam2, 10, 1);
						func_336(uParam2, 53, 1);
						func_336(uParam2, 56, 1);
						func_336(uParam2, 55, 1);
						func_336(uParam2, 13, 1);
						func_336(uParam2, 18, 1);
						func_336(uParam2, 49, 1);
						func_336(uParam2, 50, 1);
						func_336(uParam2, 51, 1);
						func_336(uParam2, 52, 1);
						func_336(uParam2, 62, 1);
						func_336(uParam2, 37, 1);
						func_336(uParam2, 46, 1);
						func_336(uParam2, 21, 1);
						func_336(uParam2, 26, 1);
						func_336(uParam2, 27, 1);
						func_336(uParam2, 28, 1);
						func_336(uParam2, 32, 1);
						func_336(uParam2, 36, 1);
						func_336(uParam2, 38, 1);
						func_336(uParam2, 55, 1);
					}
					func_335(uParam4, 2, 1);
					func_335(uParam4, 3, 1);
					func_335(uParam4, 4, 1);
					func_335(uParam4, 14, 1);
					func_335(uParam4, 15, 1);
					func_335(uParam4, 16, 1);
					func_335(uParam4, 9, 1);
					func_335(uParam4, 10, 1);
					func_335(uParam4, 12, 1);
					func_335(uParam4, 13, 1);
					func_335(uParam4, 17, 1);
					func_335(uParam4, 18, 1);
					func_335(uParam4, 19, 1);
					func_335(uParam4, 20, 1);
					func_335(uParam4, 59, 1);
					func_335(uParam4, 60, 1);
					func_335(uParam4, 61, 1);
					func_335(uParam4, 62, 1);
					func_335(uParam4, 62, 1);
					func_335(uParam4, 63, 1);
					func_335(uParam4, 64, 1);
					func_335(uParam4, 65, 1);
					func_335(uParam4, 66, 1);
					func_335(uParam4, 67, 1);
					func_335(uParam4, 68, 1);
					func_335(uParam4, 69, 1);
					func_335(uParam4, 70, 1);
					func_335(uParam4, 71, 1);
					func_335(uParam4, 72, 1);
					func_335(uParam4, 21, 1);
					func_335(uParam4, 22, 1);
					func_335(uParam4, 23, 1);
					func_335(uParam4, 24, 1);
					func_335(uParam4, 25, 1);
					func_335(uParam4, 26, 1);
					func_335(uParam4, 36, 1);
					func_335(uParam4, 46, 1);
					func_335(uParam4, 38, 1);
					func_335(uParam4, 29, 1);
					func_335(uParam4, 28, 1);
					func_335(uParam4, 8, 1);
					func_335(uParam4, 31, 1);
					func_335(uParam4, 32, 1);
					func_335(uParam4, 33, 1);
					func_335(uParam4, 34, 1);
					break;
				
				case 15:
					if (iParam6)
					{
						func_338(uParam3, 16, 1);
						func_338(uParam3, 48, 1);
						func_338(uParam3, 49, 1);
						func_338(uParam3, 18, 1);
						func_338(uParam3, 50, 1);
						func_338(uParam3, 51, 1);
						func_338(uParam3, 52, 1);
						func_338(uParam3, 53, 1);
						func_338(uParam3, 38, 1);
						func_338(uParam3, 47, 1);
						func_338(uParam3, 62, 1);
						func_336(uParam2, 18, 1);
						func_336(uParam2, 49, 1);
						func_336(uParam2, 50, 1);
						func_336(uParam2, 51, 1);
						func_336(uParam2, 52, 1);
						func_336(uParam2, 62, 1);
						func_336(uParam2, 37, 1);
						func_336(uParam2, 46, 1);
						func_336(uParam2, 19, 1);
					}
					func_335(uParam4, 3, 1);
					func_335(uParam4, 6, 1);
					func_335(uParam4, 8, 1);
					func_335(uParam4, 9, 1);
					func_335(uParam4, 10, 1);
					func_335(uParam4, 13, 1);
					func_335(uParam4, 17, 1);
					func_335(uParam4, 18, 1);
					func_335(uParam4, 19, 1);
					func_335(uParam4, 20, 1);
					func_335(uParam4, 59, 1);
					func_335(uParam4, 60, 1);
					func_335(uParam4, 61, 1);
					func_335(uParam4, 62, 1);
					func_335(uParam4, 62, 1);
					func_335(uParam4, 63, 1);
					func_335(uParam4, 64, 1);
					func_335(uParam4, 65, 1);
					func_335(uParam4, 66, 1);
					func_335(uParam4, 67, 1);
					func_335(uParam4, 68, 1);
					func_335(uParam4, 69, 1);
					func_335(uParam4, 70, 1);
					func_335(uParam4, 71, 1);
					func_335(uParam4, 72, 1);
					func_335(uParam4, 21, 1);
					func_335(uParam4, 22, 1);
					func_335(uParam4, 23, 1);
					func_335(uParam4, 24, 1);
					func_335(uParam4, 25, 1);
					func_335(uParam4, 26, 1);
					func_335(uParam4, 36, 1);
					func_335(uParam4, 46, 1);
					func_335(uParam4, 38, 1);
					func_335(uParam4, 29, 1);
					func_335(uParam4, 28, 1);
					func_335(uParam4, 31, 1);
					func_335(uParam4, 32, 1);
					func_335(uParam4, 33, 1);
					func_335(uParam4, 34, 1);
					break;
				
				case 18:
					if (iParam6)
					{
						func_338(uParam3, 4, 1);
					}
					break;
				
				case 17:
					func_335(uParam4, 9, 1);
					break;
				
				case 19:
					if (iParam6)
					{
						func_338(uParam3, 16, 1);
						func_338(uParam3, 48, 1);
						func_338(uParam3, 49, 1);
						func_338(uParam3, 18, 1);
						func_338(uParam3, 50, 1);
						func_338(uParam3, 51, 1);
						func_338(uParam3, 52, 1);
						func_338(uParam3, 53, 1);
						func_338(uParam3, 38, 1);
						func_338(uParam3, 47, 1);
						func_338(uParam3, 62, 1);
						func_336(uParam2, 16, 1);
						func_336(uParam2, 47, 1);
						func_336(uParam2, 48, 1);
						func_336(uParam2, 18, 1);
						func_336(uParam2, 49, 1);
						func_336(uParam2, 50, 1);
						func_336(uParam2, 51, 1);
						func_336(uParam2, 52, 1);
						func_336(uParam2, 62, 1);
						func_336(uParam2, 37, 1);
						func_336(uParam2, 46, 1);
					}
					func_335(uParam4, 9, 1);
					func_335(uParam4, 10, 1);
					func_335(uParam4, 18, 1);
					func_335(uParam4, 19, 1);
					func_335(uParam4, 20, 1);
					func_335(uParam4, 59, 1);
					func_335(uParam4, 60, 1);
					func_335(uParam4, 61, 1);
					func_335(uParam4, 62, 1);
					func_335(uParam4, 62, 1);
					func_335(uParam4, 63, 1);
					func_335(uParam4, 64, 1);
					func_335(uParam4, 65, 1);
					func_335(uParam4, 66, 1);
					func_335(uParam4, 67, 1);
					func_335(uParam4, 68, 1);
					func_335(uParam4, 69, 1);
					func_335(uParam4, 70, 1);
					func_335(uParam4, 71, 1);
					func_335(uParam4, 72, 1);
					func_335(uParam4, 21, 1);
					func_335(uParam4, 22, 1);
					func_335(uParam4, 23, 1);
					func_335(uParam4, 24, 1);
					func_335(uParam4, 25, 1);
					func_335(uParam4, 26, 1);
					func_335(uParam4, 36, 1);
					func_335(uParam4, 46, 1);
					func_335(uParam4, 38, 1);
					func_335(uParam4, 29, 1);
					func_335(uParam4, 8, 1);
					break;
				
				case 21:
					if (iParam6)
					{
						func_338(uParam3, 3, 1);
						func_338(uParam3, 7, 1);
						func_338(uParam3, 0, 1);
						func_338(uParam3, 12, 1);
						func_338(uParam3, 13, 1);
						func_338(uParam3, 15, 1);
						func_338(uParam3, 16, 1);
						func_338(uParam3, 48, 1);
						func_338(uParam3, 49, 1);
						func_338(uParam3, 17, 1);
						func_338(uParam3, 18, 1);
						func_338(uParam3, 50, 1);
						func_338(uParam3, 51, 1);
						func_338(uParam3, 52, 1);
						func_338(uParam3, 53, 1);
						func_338(uParam3, 38, 1);
						func_338(uParam3, 47, 1);
						func_338(uParam3, 62, 1);
						func_338(uParam3, 20, 1);
						func_338(uParam3, 21, 1);
						func_338(uParam3, 25, 1);
						func_338(uParam3, 26, 1);
						func_338(uParam3, 27, 1);
						func_338(uParam3, 30, 1);
						func_338(uParam3, 31, 1);
						func_338(uParam3, 32, 1);
						func_338(uParam3, 33, 1);
						func_338(uParam3, 39, 1);
						func_338(uParam3, 37, 1);
						func_338(uParam3, 55, 1);
						func_336(uParam2, 0, 1);
						func_336(uParam2, 2, 1);
						func_336(uParam2, 3, 1);
						func_336(uParam2, 4, 1);
						func_336(uParam2, 6, 1);
						func_336(uParam2, 7, 1);
						func_336(uParam2, 8, 1);
						func_336(uParam2, 11, 1);
						func_336(uParam2, 13, 1);
						func_336(uParam2, 15, 1);
						func_336(uParam2, 16, 1);
						func_336(uParam2, 47, 1);
						func_336(uParam2, 48, 1);
						func_336(uParam2, 17, 1);
						func_336(uParam2, 18, 1);
						func_336(uParam2, 49, 1);
						func_336(uParam2, 50, 1);
						func_336(uParam2, 51, 1);
						func_336(uParam2, 52, 1);
						func_336(uParam2, 62, 1);
						func_336(uParam2, 37, 1);
						func_336(uParam2, 46, 1);
						func_336(uParam2, 19, 1);
						func_336(uParam2, 20, 1);
						func_336(uParam2, 21, 1);
						func_336(uParam2, 22, 1);
						func_336(uParam2, 54, 1);
						func_336(uParam2, 24, 1);
						func_336(uParam2, 26, 1);
						func_336(uParam2, 27, 1);
						func_336(uParam2, 28, 1);
						func_336(uParam2, 30, 1);
						func_336(uParam2, 31, 1);
						func_336(uParam2, 32, 1);
						func_336(uParam2, 38, 1);
						func_336(uParam2, 36, 1);
					}
					func_335(uParam4, 3, 1);
					func_335(uParam4, 3, 1);
					func_335(uParam4, 4, 1);
					func_335(uParam4, 14, 1);
					func_335(uParam4, 15, 1);
					func_335(uParam4, 16, 1);
					func_335(uParam4, 8, 1);
					func_335(uParam4, 9, 1);
					func_335(uParam4, 10, 1);
					func_335(uParam4, 12, 1);
					func_335(uParam4, 13, 1);
					func_335(uParam4, 17, 1);
					func_335(uParam4, 18, 1);
					func_335(uParam4, 19, 1);
					func_335(uParam4, 20, 1);
					func_335(uParam4, 59, 1);
					func_335(uParam4, 60, 1);
					func_335(uParam4, 61, 1);
					func_335(uParam4, 62, 1);
					func_335(uParam4, 62, 1);
					func_335(uParam4, 63, 1);
					func_335(uParam4, 64, 1);
					func_335(uParam4, 65, 1);
					func_335(uParam4, 66, 1);
					func_335(uParam4, 67, 1);
					func_335(uParam4, 68, 1);
					func_335(uParam4, 69, 1);
					func_335(uParam4, 70, 1);
					func_335(uParam4, 71, 1);
					func_335(uParam4, 72, 1);
					func_335(uParam4, 21, 1);
					func_335(uParam4, 22, 1);
					func_335(uParam4, 23, 1);
					func_335(uParam4, 24, 1);
					func_335(uParam4, 25, 1);
					func_335(uParam4, 26, 1);
					func_335(uParam4, 36, 1);
					func_335(uParam4, 46, 1);
					func_335(uParam4, 38, 1);
					func_335(uParam4, 29, 1);
					func_335(uParam4, 28, 1);
					func_335(uParam4, 31, 1);
					func_335(uParam4, 33, 1);
					func_335(uParam4, 34, 1);
					break;
			}
			break;
		
		case 2:
			switch (iParam1)
			{
				case 3:
					switch (iParam5)
					{
						case 0:
							func_338(uParam3, 13, 1);
							func_338(uParam3, 16, 1);
							func_338(uParam3, 48, 1);
							func_338(uParam3, 49, 1);
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_336(uParam2, 2, 1);
							func_336(uParam2, 20, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							func_335(uParam4, 33, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 31, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 75, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 74, 1);
							break;
						
						case 1:
							func_338(uParam3, 4, 1);
							func_338(uParam3, 13, 1);
							func_338(uParam3, 16, 1);
							func_338(uParam3, 48, 1);
							func_338(uParam3, 49, 1);
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_336(uParam2, 2, 1);
							func_336(uParam2, 20, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							func_335(uParam4, 28, 1);
							func_335(uParam4, 33, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 31, 1);
							func_335(uParam4, 43, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 75, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 74, 1);
							break;
						
						case 2:
							func_338(uParam3, 13, 1);
							func_338(uParam3, 16, 1);
							func_338(uParam3, 48, 1);
							func_338(uParam3, 49, 1);
							func_338(uParam3, 39, 1);
							func_336(uParam2, 2, 1);
							func_336(uParam2, 20, 1);
							func_336(uParam2, 38, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 10, 1);
							func_335(uParam4, 13, 1);
							func_335(uParam4, 19, 1);
							func_335(uParam4, 20, 1);
							func_335(uParam4, 59, 1);
							func_335(uParam4, 60, 1);
							func_335(uParam4, 61, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 63, 1);
							func_335(uParam4, 64, 1);
							func_335(uParam4, 65, 1);
							func_335(uParam4, 66, 1);
							func_335(uParam4, 67, 1);
							func_335(uParam4, 68, 1);
							func_335(uParam4, 69, 1);
							func_335(uParam4, 70, 1);
							func_335(uParam4, 71, 1);
							func_335(uParam4, 72, 1);
							func_335(uParam4, 21, 1);
							func_335(uParam4, 22, 1);
							func_335(uParam4, 23, 1);
							func_335(uParam4, 24, 1);
							func_335(uParam4, 25, 1);
							func_335(uParam4, 26, 1);
							func_335(uParam4, 28, 1);
							func_335(uParam4, 33, 1);
							func_335(uParam4, 31, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 75, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 74, 1);
							break;
					}
					break;
				
				case 5:
				case 24:
					switch (iParam5)
					{
						case 0:
							func_338(uParam3, 16, 1);
							func_338(uParam3, 48, 1);
							func_338(uParam3, 49, 1);
							func_338(uParam3, 18, 1);
							func_338(uParam3, 50, 1);
							func_338(uParam3, 51, 1);
							func_338(uParam3, 52, 1);
							func_338(uParam3, 53, 1);
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_338(uParam3, 62, 1);
							func_336(uParam2, 16, 1);
							func_336(uParam2, 47, 1);
							func_336(uParam2, 48, 1);
							func_336(uParam2, 18, 1);
							func_336(uParam2, 49, 1);
							func_336(uParam2, 50, 1);
							func_336(uParam2, 51, 1);
							func_336(uParam2, 52, 1);
							func_336(uParam2, 62, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							func_335(uParam4, 1, 1);
							func_335(uParam4, 2, 1);
							func_335(uParam4, 3, 1);
							func_335(uParam4, 4, 1);
							func_335(uParam4, 5, 1);
							func_335(uParam4, 7, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 9, 1);
							func_335(uParam4, 10, 1);
							func_335(uParam4, 12, 1);
							func_335(uParam4, 13, 1);
							func_335(uParam4, 14, 1);
							func_335(uParam4, 15, 1);
							func_335(uParam4, 16, 1);
							func_335(uParam4, 17, 1);
							func_335(uParam4, 18, 1);
							func_335(uParam4, 19, 1);
							func_335(uParam4, 20, 1);
							func_335(uParam4, 59, 1);
							func_335(uParam4, 60, 1);
							func_335(uParam4, 61, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 63, 1);
							func_335(uParam4, 64, 1);
							func_335(uParam4, 65, 1);
							func_335(uParam4, 66, 1);
							func_335(uParam4, 67, 1);
							func_335(uParam4, 68, 1);
							func_335(uParam4, 69, 1);
							func_335(uParam4, 70, 1);
							func_335(uParam4, 71, 1);
							func_335(uParam4, 72, 1);
							func_335(uParam4, 21, 1);
							func_335(uParam4, 22, 1);
							func_335(uParam4, 23, 1);
							func_335(uParam4, 24, 1);
							func_335(uParam4, 25, 1);
							func_335(uParam4, 26, 1);
							func_335(uParam4, 36, 1);
							func_335(uParam4, 46, 1);
							func_335(uParam4, 38, 1);
							func_335(uParam4, 28, 1);
							func_335(uParam4, 33, 1);
							func_335(uParam4, 43, 1);
							func_335(uParam4, 29, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
						
						case 1:
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_336(uParam2, 16, 1);
							func_336(uParam2, 47, 1);
							func_336(uParam2, 48, 1);
							func_336(uParam2, 18, 1);
							func_336(uParam2, 49, 1);
							func_336(uParam2, 50, 1);
							func_336(uParam2, 51, 1);
							func_336(uParam2, 52, 1);
							func_336(uParam2, 62, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 9, 1);
							func_335(uParam4, 20, 1);
							func_335(uParam4, 59, 1);
							func_335(uParam4, 60, 1);
							func_335(uParam4, 61, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 63, 1);
							func_335(uParam4, 64, 1);
							func_335(uParam4, 65, 1);
							func_335(uParam4, 66, 1);
							func_335(uParam4, 67, 1);
							func_335(uParam4, 68, 1);
							func_335(uParam4, 69, 1);
							func_335(uParam4, 70, 1);
							func_335(uParam4, 71, 1);
							func_335(uParam4, 72, 1);
							func_335(uParam4, 21, 1);
							func_335(uParam4, 22, 1);
							func_335(uParam4, 23, 1);
							func_335(uParam4, 24, 1);
							func_335(uParam4, 25, 1);
							func_335(uParam4, 26, 1);
							func_335(uParam4, 36, 1);
							func_335(uParam4, 46, 1);
							func_335(uParam4, 38, 1);
							func_335(uParam4, 28, 1);
							func_335(uParam4, 33, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
						
						case 2:
							func_338(uParam3, 16, 1);
							func_338(uParam3, 48, 1);
							func_338(uParam3, 49, 1);
							func_338(uParam3, 18, 1);
							func_338(uParam3, 50, 1);
							func_338(uParam3, 51, 1);
							func_338(uParam3, 52, 1);
							func_338(uParam3, 53, 1);
							func_338(uParam3, 62, 1);
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_336(uParam2, 18, 1);
							func_336(uParam2, 49, 1);
							func_336(uParam2, 50, 1);
							func_336(uParam2, 51, 1);
							func_336(uParam2, 52, 1);
							func_336(uParam2, 62, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							func_335(uParam4, 4, 1);
							func_335(uParam4, 5, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 9, 1);
							func_335(uParam4, 10, 1);
							func_335(uParam4, 12, 1);
							func_335(uParam4, 14, 1);
							func_335(uParam4, 15, 1);
							func_335(uParam4, 16, 1);
							func_335(uParam4, 17, 1);
							func_335(uParam4, 18, 1);
							func_335(uParam4, 19, 1);
							func_335(uParam4, 20, 1);
							func_335(uParam4, 59, 1);
							func_335(uParam4, 60, 1);
							func_335(uParam4, 61, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 63, 1);
							func_335(uParam4, 64, 1);
							func_335(uParam4, 65, 1);
							func_335(uParam4, 66, 1);
							func_335(uParam4, 67, 1);
							func_335(uParam4, 68, 1);
							func_335(uParam4, 69, 1);
							func_335(uParam4, 70, 1);
							func_335(uParam4, 71, 1);
							func_335(uParam4, 72, 1);
							func_335(uParam4, 21, 1);
							func_335(uParam4, 22, 1);
							func_335(uParam4, 23, 1);
							func_335(uParam4, 24, 1);
							func_335(uParam4, 25, 1);
							func_335(uParam4, 26, 1);
							func_335(uParam4, 36, 1);
							func_335(uParam4, 46, 1);
							func_335(uParam4, 38, 1);
							func_335(uParam4, 28, 1);
							func_335(uParam4, 33, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
					}
					break;
				
				case 29:
					switch (iParam5)
					{
						case 0:
							func_338(uParam3, 66, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 77, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
						
						case 1:
							func_338(uParam3, 16, 1);
							func_338(uParam3, 48, 1);
							func_338(uParam3, 49, 1);
							func_338(uParam3, 18, 1);
							func_338(uParam3, 50, 1);
							func_338(uParam3, 51, 1);
							func_338(uParam3, 52, 1);
							func_338(uParam3, 53, 1);
							func_338(uParam3, 62, 1);
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_336(uParam2, 18, 1);
							func_336(uParam2, 49, 1);
							func_336(uParam2, 50, 1);
							func_336(uParam2, 51, 1);
							func_336(uParam2, 52, 1);
							func_336(uParam2, 62, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							func_335(uParam4, 9, 1);
							func_335(uParam4, 10, 1);
							func_335(uParam4, 12, 1);
							func_335(uParam4, 17, 1);
							func_335(uParam4, 18, 1);
							func_335(uParam4, 19, 1);
							func_335(uParam4, 20, 1);
							func_335(uParam4, 59, 1);
							func_335(uParam4, 60, 1);
							func_335(uParam4, 61, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 63, 1);
							func_335(uParam4, 64, 1);
							func_335(uParam4, 65, 1);
							func_335(uParam4, 66, 1);
							func_335(uParam4, 67, 1);
							func_335(uParam4, 68, 1);
							func_335(uParam4, 69, 1);
							func_335(uParam4, 70, 1);
							func_335(uParam4, 71, 1);
							func_335(uParam4, 72, 1);
							func_335(uParam4, 21, 1);
							func_335(uParam4, 22, 1);
							func_335(uParam4, 23, 1);
							func_335(uParam4, 24, 1);
							func_335(uParam4, 25, 1);
							func_335(uParam4, 26, 1);
							func_335(uParam4, 36, 1);
							func_335(uParam4, 46, 1);
							func_335(uParam4, 38, 1);
							func_335(uParam4, 29, 1);
							func_335(uParam4, 28, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 31, 1);
							func_335(uParam4, 32, 1);
							func_335(uParam4, 33, 1);
							func_335(uParam4, 34, 1);
							func_335(uParam4, 43, 1);
							break;
					}
					break;
				
				case 30:
					func_338(uParam3, 67, 1);
					func_338(uParam3, 68, 1);
					func_338(uParam3, 69, 1);
					func_338(uParam3, 70, 1);
					func_338(uParam3, 71, 1);
					func_338(uParam3, 72, 1);
					func_338(uParam3, 73, 1);
					func_338(uParam3, 74, 1);
					func_338(uParam3, 78, 1);
					func_338(uParam3, 79, 1);
					func_338(uParam3, 80, 1);
					func_338(uParam3, 81, 1);
					func_338(uParam3, 82, 1);
					func_336(uParam2, 66, 1);
					func_336(uParam2, 67, 1);
					func_336(uParam2, 68, 1);
					func_336(uParam2, 69, 1);
					func_336(uParam2, 70, 1);
					func_336(uParam2, 71, 1);
					func_336(uParam2, 72, 1);
					func_336(uParam2, 73, 1);
					func_336(uParam2, 77, 1);
					func_336(uParam2, 78, 1);
					func_336(uParam2, 79, 1);
					func_336(uParam2, 80, 1);
					func_336(uParam2, 81, 1);
					break;
				
				case 31:
					func_338(uParam3, 67, 1);
					func_338(uParam3, 68, 1);
					func_338(uParam3, 69, 1);
					func_338(uParam3, 70, 1);
					func_338(uParam3, 71, 1);
					func_338(uParam3, 72, 1);
					func_338(uParam3, 73, 1);
					func_338(uParam3, 74, 1);
					func_338(uParam3, 78, 1);
					func_338(uParam3, 79, 1);
					func_338(uParam3, 80, 1);
					func_338(uParam3, 81, 1);
					func_338(uParam3, 82, 1);
					func_336(uParam2, 66, 1);
					func_336(uParam2, 67, 1);
					func_336(uParam2, 68, 1);
					func_336(uParam2, 69, 1);
					func_336(uParam2, 70, 1);
					func_336(uParam2, 71, 1);
					func_336(uParam2, 72, 1);
					func_336(uParam2, 73, 1);
					func_336(uParam2, 77, 1);
					func_336(uParam2, 78, 1);
					func_336(uParam2, 79, 1);
					func_336(uParam2, 80, 1);
					func_336(uParam2, 81, 1);
					break;
				
				case 32:
				case 33:
				case 34:
					switch (iParam5)
					{
						case 0:
							func_338(uParam3, 16, 1);
							func_338(uParam3, 48, 1);
							func_338(uParam3, 49, 1);
							func_338(uParam3, 18, 1);
							func_338(uParam3, 50, 1);
							func_338(uParam3, 51, 1);
							func_338(uParam3, 52, 1);
							func_338(uParam3, 53, 1);
							func_338(uParam3, 62, 1);
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_336(uParam2, 18, 1);
							func_336(uParam2, 49, 1);
							func_336(uParam2, 50, 1);
							func_336(uParam2, 51, 1);
							func_336(uParam2, 52, 1);
							func_336(uParam2, 62, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							func_335(uParam4, 9, 1);
							func_335(uParam4, 10, 1);
							func_335(uParam4, 12, 1);
							func_335(uParam4, 17, 1);
							func_335(uParam4, 18, 1);
							func_335(uParam4, 19, 1);
							func_335(uParam4, 20, 1);
							func_335(uParam4, 59, 1);
							func_335(uParam4, 60, 1);
							func_335(uParam4, 61, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 63, 1);
							func_335(uParam4, 64, 1);
							func_335(uParam4, 65, 1);
							func_335(uParam4, 66, 1);
							func_335(uParam4, 67, 1);
							func_335(uParam4, 68, 1);
							func_335(uParam4, 69, 1);
							func_335(uParam4, 70, 1);
							func_335(uParam4, 71, 1);
							func_335(uParam4, 72, 1);
							func_335(uParam4, 21, 1);
							func_335(uParam4, 22, 1);
							func_335(uParam4, 23, 1);
							func_335(uParam4, 24, 1);
							func_335(uParam4, 25, 1);
							func_335(uParam4, 26, 1);
							func_335(uParam4, 36, 1);
							func_335(uParam4, 46, 1);
							func_335(uParam4, 38, 1);
							func_335(uParam4, 29, 1);
							func_335(uParam4, 28, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 31, 1);
							func_335(uParam4, 32, 1);
							func_335(uParam4, 33, 1);
							func_335(uParam4, 34, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
						
						case 1:
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
						
						case 2:
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
					}
					break;
				
				case 10:
					switch (iParam5)
					{
						case 0:
							func_338(uParam3, 3, 1);
							func_338(uParam3, 4, 1);
							func_338(uParam3, 6, 1);
							func_338(uParam3, 10, 1);
							func_338(uParam3, 54, 1);
							func_338(uParam3, 55, 1);
							func_338(uParam3, 56, 1);
							func_338(uParam3, 13, 1);
							func_338(uParam3, 16, 1);
							func_338(uParam3, 48, 1);
							func_338(uParam3, 49, 1);
							func_338(uParam3, 18, 1);
							func_338(uParam3, 50, 1);
							func_338(uParam3, 51, 1);
							func_338(uParam3, 52, 1);
							func_338(uParam3, 53, 1);
							func_338(uParam3, 62, 1);
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_338(uParam3, 20, 1);
							func_338(uParam3, 26, 1);
							func_338(uParam3, 27, 1);
							func_338(uParam3, 32, 1);
							func_338(uParam3, 33, 1);
							func_338(uParam3, 37, 1);
							func_338(uParam3, 39, 1);
							func_338(uParam3, 55, 1);
							func_336(uParam2, 3, 1);
							func_336(uParam2, 4, 1);
							func_336(uParam2, 6, 1);
							func_336(uParam2, 8, 1);
							func_336(uParam2, 9, 1);
							func_336(uParam2, 10, 1);
							func_336(uParam2, 53, 1);
							func_336(uParam2, 56, 1);
							func_336(uParam2, 55, 1);
							func_336(uParam2, 13, 1);
							func_336(uParam2, 18, 1);
							func_336(uParam2, 49, 1);
							func_336(uParam2, 50, 1);
							func_336(uParam2, 51, 1);
							func_336(uParam2, 52, 1);
							func_336(uParam2, 62, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							func_336(uParam2, 21, 1);
							func_336(uParam2, 26, 1);
							func_336(uParam2, 27, 1);
							func_336(uParam2, 28, 1);
							func_336(uParam2, 32, 1);
							func_336(uParam2, 36, 1);
							func_336(uParam2, 38, 1);
							func_336(uParam2, 55, 1);
							func_335(uParam4, 3, 1);
							func_335(uParam4, 4, 1);
							func_335(uParam4, 14, 1);
							func_335(uParam4, 15, 1);
							func_335(uParam4, 16, 1);
							func_335(uParam4, 9, 1);
							func_335(uParam4, 10, 1);
							func_335(uParam4, 12, 1);
							func_335(uParam4, 13, 1);
							func_335(uParam4, 17, 1);
							func_335(uParam4, 18, 1);
							func_335(uParam4, 19, 1);
							func_335(uParam4, 20, 1);
							func_335(uParam4, 59, 1);
							func_335(uParam4, 60, 1);
							func_335(uParam4, 61, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 63, 1);
							func_335(uParam4, 64, 1);
							func_335(uParam4, 65, 1);
							func_335(uParam4, 66, 1);
							func_335(uParam4, 67, 1);
							func_335(uParam4, 68, 1);
							func_335(uParam4, 69, 1);
							func_335(uParam4, 70, 1);
							func_335(uParam4, 71, 1);
							func_335(uParam4, 72, 1);
							func_335(uParam4, 21, 1);
							func_335(uParam4, 22, 1);
							func_335(uParam4, 23, 1);
							func_335(uParam4, 24, 1);
							func_335(uParam4, 25, 1);
							func_335(uParam4, 26, 1);
							func_335(uParam4, 36, 1);
							func_335(uParam4, 46, 1);
							func_335(uParam4, 38, 1);
							func_335(uParam4, 29, 1);
							func_335(uParam4, 28, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 31, 1);
							func_335(uParam4, 32, 1);
							func_335(uParam4, 33, 1);
							func_335(uParam4, 34, 1);
							func_335(uParam4, 43, 1);
							func_338(uParam3, 65, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 75, 1);
							func_338(uParam3, 76, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 64, 1);
							func_336(uParam2, 65, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 74, 1);
							func_336(uParam2, 75, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
						
						case 1:
							func_338(uParam3, 3, 1);
							func_338(uParam3, 4, 1);
							func_338(uParam3, 6, 1);
							func_338(uParam3, 13, 1);
							func_338(uParam3, 18, 1);
							func_338(uParam3, 50, 1);
							func_338(uParam3, 51, 1);
							func_338(uParam3, 52, 1);
							func_338(uParam3, 53, 1);
							func_338(uParam3, 62, 1);
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_338(uParam3, 19, 1);
							func_338(uParam3, 20, 1);
							func_338(uParam3, 26, 1);
							func_338(uParam3, 27, 1);
							func_338(uParam3, 32, 1);
							func_338(uParam3, 33, 1);
							func_338(uParam3, 37, 1);
							func_338(uParam3, 39, 1);
							func_338(uParam3, 55, 1);
							func_336(uParam2, 3, 1);
							func_336(uParam2, 4, 1);
							func_336(uParam2, 6, 1);
							func_336(uParam2, 8, 1);
							func_336(uParam2, 9, 1);
							func_336(uParam2, 10, 1);
							func_336(uParam2, 53, 1);
							func_336(uParam2, 56, 1);
							func_336(uParam2, 55, 1);
							func_336(uParam2, 11, 1);
							func_336(uParam2, 13, 1);
							func_336(uParam2, 18, 1);
							func_336(uParam2, 49, 1);
							func_336(uParam2, 50, 1);
							func_336(uParam2, 51, 1);
							func_336(uParam2, 52, 1);
							func_336(uParam2, 62, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							func_336(uParam2, 21, 1);
							func_336(uParam2, 22, 1);
							func_336(uParam2, 54, 1);
							func_336(uParam2, 26, 1);
							func_336(uParam2, 27, 1);
							func_336(uParam2, 28, 1);
							func_336(uParam2, 30, 1);
							func_336(uParam2, 31, 1);
							func_336(uParam2, 32, 1);
							func_336(uParam2, 36, 1);
							func_336(uParam2, 38, 1);
							func_336(uParam2, 55, 1);
							func_335(uParam4, 2, 1);
							func_335(uParam4, 3, 1);
							func_335(uParam4, 4, 1);
							func_335(uParam4, 14, 1);
							func_335(uParam4, 15, 1);
							func_335(uParam4, 16, 1);
							func_335(uParam4, 9, 1);
							func_335(uParam4, 10, 1);
							func_335(uParam4, 12, 1);
							func_335(uParam4, 13, 1);
							func_335(uParam4, 17, 1);
							func_335(uParam4, 18, 1);
							func_335(uParam4, 19, 1);
							func_335(uParam4, 20, 1);
							func_335(uParam4, 59, 1);
							func_335(uParam4, 60, 1);
							func_335(uParam4, 61, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 63, 1);
							func_335(uParam4, 64, 1);
							func_335(uParam4, 65, 1);
							func_335(uParam4, 66, 1);
							func_335(uParam4, 67, 1);
							func_335(uParam4, 68, 1);
							func_335(uParam4, 69, 1);
							func_335(uParam4, 70, 1);
							func_335(uParam4, 71, 1);
							func_335(uParam4, 72, 1);
							func_335(uParam4, 21, 1);
							func_335(uParam4, 22, 1);
							func_335(uParam4, 23, 1);
							func_335(uParam4, 24, 1);
							func_335(uParam4, 25, 1);
							func_335(uParam4, 26, 1);
							func_335(uParam4, 36, 1);
							func_335(uParam4, 46, 1);
							func_335(uParam4, 38, 1);
							func_335(uParam4, 29, 1);
							func_335(uParam4, 28, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 31, 1);
							func_335(uParam4, 32, 1);
							func_335(uParam4, 33, 1);
							func_335(uParam4, 34, 1);
							func_335(uParam4, 43, 1);
							func_338(uParam3, 65, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 75, 1);
							func_338(uParam3, 76, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 64, 1);
							func_336(uParam2, 65, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 74, 1);
							func_336(uParam2, 75, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
						
						case 2:
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_338(uParam3, 39, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							func_336(uParam2, 38, 1);
							func_335(uParam4, 9, 1);
							func_335(uParam4, 10, 1);
							func_335(uParam4, 12, 1);
							func_335(uParam4, 18, 1);
							func_335(uParam4, 19, 1);
							func_335(uParam4, 20, 1);
							func_335(uParam4, 59, 1);
							func_335(uParam4, 60, 1);
							func_335(uParam4, 61, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 63, 1);
							func_335(uParam4, 64, 1);
							func_335(uParam4, 65, 1);
							func_335(uParam4, 66, 1);
							func_335(uParam4, 67, 1);
							func_335(uParam4, 68, 1);
							func_335(uParam4, 69, 1);
							func_335(uParam4, 70, 1);
							func_335(uParam4, 71, 1);
							func_335(uParam4, 72, 1);
							func_335(uParam4, 21, 1);
							func_335(uParam4, 22, 1);
							func_335(uParam4, 23, 1);
							func_335(uParam4, 24, 1);
							func_335(uParam4, 25, 1);
							func_335(uParam4, 26, 1);
							func_335(uParam4, 36, 1);
							func_335(uParam4, 46, 1);
							func_335(uParam4, 38, 1);
							func_335(uParam4, 29, 1);
							func_335(uParam4, 28, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 31, 1);
							func_335(uParam4, 32, 1);
							func_335(uParam4, 33, 1);
							func_335(uParam4, 34, 1);
							func_338(uParam3, 65, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 75, 1);
							func_338(uParam3, 76, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 64, 1);
							func_336(uParam2, 65, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 74, 1);
							func_336(uParam2, 75, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
					}
					break;
				
				case 13:
					switch (iParam5)
					{
						case 0:
							func_338(uParam3, 16, 1);
							func_338(uParam3, 48, 1);
							func_338(uParam3, 49, 1);
							func_338(uParam3, 18, 1);
							func_338(uParam3, 50, 1);
							func_338(uParam3, 51, 1);
							func_338(uParam3, 52, 1);
							func_338(uParam3, 53, 1);
							func_338(uParam3, 62, 1);
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_336(uParam2, 18, 1);
							func_336(uParam2, 49, 1);
							func_336(uParam2, 50, 1);
							func_336(uParam2, 51, 1);
							func_336(uParam2, 52, 1);
							func_336(uParam2, 62, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							func_336(uParam2, 19, 1);
							func_335(uParam4, 2, 1);
							func_335(uParam4, 3, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 9, 1);
							func_335(uParam4, 10, 1);
							func_335(uParam4, 13, 1);
							func_335(uParam4, 17, 1);
							func_335(uParam4, 18, 1);
							func_335(uParam4, 19, 1);
							func_335(uParam4, 20, 1);
							func_335(uParam4, 59, 1);
							func_335(uParam4, 60, 1);
							func_335(uParam4, 61, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 63, 1);
							func_335(uParam4, 64, 1);
							func_335(uParam4, 65, 1);
							func_335(uParam4, 66, 1);
							func_335(uParam4, 67, 1);
							func_335(uParam4, 68, 1);
							func_335(uParam4, 69, 1);
							func_335(uParam4, 70, 1);
							func_335(uParam4, 71, 1);
							func_335(uParam4, 72, 1);
							func_335(uParam4, 21, 1);
							func_335(uParam4, 22, 1);
							func_335(uParam4, 23, 1);
							func_335(uParam4, 24, 1);
							func_335(uParam4, 25, 1);
							func_335(uParam4, 26, 1);
							func_335(uParam4, 36, 1);
							func_335(uParam4, 46, 1);
							func_335(uParam4, 38, 1);
							func_335(uParam4, 29, 1);
							func_335(uParam4, 28, 1);
							func_335(uParam4, 31, 1);
							func_335(uParam4, 32, 1);
							func_335(uParam4, 33, 1);
							func_335(uParam4, 34, 1);
							func_335(uParam4, 43, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
						
						case 1:
							func_338(uParam3, 16, 1);
							func_338(uParam3, 48, 1);
							func_338(uParam3, 49, 1);
							func_338(uParam3, 18, 1);
							func_338(uParam3, 50, 1);
							func_338(uParam3, 51, 1);
							func_338(uParam3, 52, 1);
							func_338(uParam3, 53, 1);
							func_338(uParam3, 62, 1);
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_336(uParam2, 18, 1);
							func_336(uParam2, 49, 1);
							func_336(uParam2, 50, 1);
							func_336(uParam2, 51, 1);
							func_336(uParam2, 52, 1);
							func_336(uParam2, 62, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							func_335(uParam4, 2, 1);
							func_335(uParam4, 7, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 9, 1);
							func_335(uParam4, 10, 1);
							func_335(uParam4, 13, 1);
							func_335(uParam4, 17, 1);
							func_335(uParam4, 18, 1);
							func_335(uParam4, 19, 1);
							func_335(uParam4, 20, 1);
							func_335(uParam4, 59, 1);
							func_335(uParam4, 60, 1);
							func_335(uParam4, 61, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 63, 1);
							func_335(uParam4, 64, 1);
							func_335(uParam4, 65, 1);
							func_335(uParam4, 66, 1);
							func_335(uParam4, 67, 1);
							func_335(uParam4, 68, 1);
							func_335(uParam4, 69, 1);
							func_335(uParam4, 70, 1);
							func_335(uParam4, 71, 1);
							func_335(uParam4, 72, 1);
							func_335(uParam4, 21, 1);
							func_335(uParam4, 22, 1);
							func_335(uParam4, 23, 1);
							func_335(uParam4, 24, 1);
							func_335(uParam4, 25, 1);
							func_335(uParam4, 26, 1);
							func_335(uParam4, 36, 1);
							func_335(uParam4, 46, 1);
							func_335(uParam4, 38, 1);
							func_335(uParam4, 29, 1);
							func_335(uParam4, 28, 1);
							func_335(uParam4, 31, 1);
							func_335(uParam4, 32, 1);
							func_335(uParam4, 33, 1);
							func_335(uParam4, 34, 1);
							func_335(uParam4, 43, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
						
						case 2:
							func_338(uParam3, 18, 1);
							func_338(uParam3, 50, 1);
							func_338(uParam3, 51, 1);
							func_338(uParam3, 52, 1);
							func_338(uParam3, 53, 1);
							func_338(uParam3, 62, 1);
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_336(uParam2, 18, 1);
							func_336(uParam2, 49, 1);
							func_336(uParam2, 50, 1);
							func_336(uParam2, 51, 1);
							func_336(uParam2, 52, 1);
							func_336(uParam2, 62, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							func_335(uParam4, 1, 1);
							func_335(uParam4, 2, 1);
							func_335(uParam4, 3, 1);
							func_335(uParam4, 5, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 9, 1);
							func_335(uParam4, 10, 1);
							func_335(uParam4, 13, 1);
							func_335(uParam4, 17, 1);
							func_335(uParam4, 18, 1);
							func_335(uParam4, 19, 1);
							func_335(uParam4, 20, 1);
							func_335(uParam4, 59, 1);
							func_335(uParam4, 60, 1);
							func_335(uParam4, 61, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 63, 1);
							func_335(uParam4, 64, 1);
							func_335(uParam4, 65, 1);
							func_335(uParam4, 66, 1);
							func_335(uParam4, 67, 1);
							func_335(uParam4, 68, 1);
							func_335(uParam4, 69, 1);
							func_335(uParam4, 70, 1);
							func_335(uParam4, 71, 1);
							func_335(uParam4, 72, 1);
							func_335(uParam4, 21, 1);
							func_335(uParam4, 22, 1);
							func_335(uParam4, 23, 1);
							func_335(uParam4, 24, 1);
							func_335(uParam4, 25, 1);
							func_335(uParam4, 26, 1);
							func_335(uParam4, 36, 1);
							func_335(uParam4, 46, 1);
							func_335(uParam4, 38, 1);
							func_335(uParam4, 29, 1);
							func_335(uParam4, 28, 1);
							func_335(uParam4, 31, 1);
							func_335(uParam4, 32, 1);
							func_335(uParam4, 33, 1);
							func_335(uParam4, 34, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
					}
					break;
				
				case 16:
					switch (iParam5)
					{
						case 0:
							func_338(uParam3, 4, 1);
							break;
						
						case 1:
							func_335(uParam4, 43, 1);
							break;
						
						case 2:
							break;
					}
					break;
				
				case 23:
					switch (iParam5)
					{
						case 0:
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 74, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
						
						case 1:
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 74, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
						
						case 2:
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 74, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
					}
					break;
				
				case 17:
					switch (iParam5)
					{
						case 0:
							func_338(uParam3, 16, 1);
							func_338(uParam3, 48, 1);
							func_338(uParam3, 49, 1);
							func_338(uParam3, 18, 1);
							func_338(uParam3, 50, 1);
							func_338(uParam3, 51, 1);
							func_338(uParam3, 52, 1);
							func_338(uParam3, 53, 1);
							func_338(uParam3, 62, 1);
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_336(uParam2, 16, 1);
							func_336(uParam2, 47, 1);
							func_336(uParam2, 48, 1);
							func_336(uParam2, 18, 1);
							func_336(uParam2, 49, 1);
							func_336(uParam2, 50, 1);
							func_336(uParam2, 51, 1);
							func_336(uParam2, 52, 1);
							func_336(uParam2, 62, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							func_335(uParam4, 1, 1);
							func_335(uParam4, 2, 1);
							func_335(uParam4, 3, 1);
							func_335(uParam4, 5, 1);
							func_335(uParam4, 6, 1);
							func_335(uParam4, 7, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 9, 1);
							func_335(uParam4, 10, 1);
							func_335(uParam4, 13, 1);
							func_335(uParam4, 18, 1);
							func_335(uParam4, 19, 1);
							func_335(uParam4, 20, 1);
							func_335(uParam4, 59, 1);
							func_335(uParam4, 60, 1);
							func_335(uParam4, 61, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 63, 1);
							func_335(uParam4, 64, 1);
							func_335(uParam4, 65, 1);
							func_335(uParam4, 66, 1);
							func_335(uParam4, 67, 1);
							func_335(uParam4, 68, 1);
							func_335(uParam4, 69, 1);
							func_335(uParam4, 70, 1);
							func_335(uParam4, 71, 1);
							func_335(uParam4, 72, 1);
							func_335(uParam4, 21, 1);
							func_335(uParam4, 22, 1);
							func_335(uParam4, 23, 1);
							func_335(uParam4, 24, 1);
							func_335(uParam4, 25, 1);
							func_335(uParam4, 26, 1);
							func_335(uParam4, 36, 1);
							func_335(uParam4, 46, 1);
							func_335(uParam4, 38, 1);
							func_335(uParam4, 29, 1);
							func_335(uParam4, 28, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
						
						case 1:
							func_338(uParam3, 16, 1);
							func_338(uParam3, 48, 1);
							func_338(uParam3, 49, 1);
							func_338(uParam3, 18, 1);
							func_338(uParam3, 50, 1);
							func_338(uParam3, 51, 1);
							func_338(uParam3, 52, 1);
							func_338(uParam3, 53, 1);
							func_338(uParam3, 62, 1);
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_336(uParam2, 16, 1);
							func_336(uParam2, 47, 1);
							func_336(uParam2, 48, 1);
							func_336(uParam2, 18, 1);
							func_336(uParam2, 49, 1);
							func_336(uParam2, 50, 1);
							func_336(uParam2, 51, 1);
							func_336(uParam2, 52, 1);
							func_336(uParam2, 62, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							func_335(uParam4, 1, 1);
							func_335(uParam4, 2, 1);
							func_335(uParam4, 3, 1);
							func_335(uParam4, 5, 1);
							func_335(uParam4, 6, 1);
							func_335(uParam4, 7, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 9, 1);
							func_335(uParam4, 10, 1);
							func_335(uParam4, 13, 1);
							func_335(uParam4, 18, 1);
							func_335(uParam4, 19, 1);
							func_335(uParam4, 20, 1);
							func_335(uParam4, 59, 1);
							func_335(uParam4, 60, 1);
							func_335(uParam4, 61, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 63, 1);
							func_335(uParam4, 64, 1);
							func_335(uParam4, 65, 1);
							func_335(uParam4, 66, 1);
							func_335(uParam4, 67, 1);
							func_335(uParam4, 68, 1);
							func_335(uParam4, 69, 1);
							func_335(uParam4, 70, 1);
							func_335(uParam4, 71, 1);
							func_335(uParam4, 72, 1);
							func_335(uParam4, 21, 1);
							func_335(uParam4, 22, 1);
							func_335(uParam4, 23, 1);
							func_335(uParam4, 24, 1);
							func_335(uParam4, 25, 1);
							func_335(uParam4, 26, 1);
							func_335(uParam4, 36, 1);
							func_335(uParam4, 46, 1);
							func_335(uParam4, 38, 1);
							func_335(uParam4, 29, 1);
							func_335(uParam4, 28, 1);
							func_335(uParam4, 43, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
						
						case 2:
							func_338(uParam3, 16, 1);
							func_338(uParam3, 48, 1);
							func_338(uParam3, 49, 1);
							func_338(uParam3, 18, 1);
							func_338(uParam3, 50, 1);
							func_338(uParam3, 51, 1);
							func_338(uParam3, 52, 1);
							func_338(uParam3, 53, 1);
							func_338(uParam3, 62, 1);
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_336(uParam2, 16, 1);
							func_336(uParam2, 47, 1);
							func_336(uParam2, 48, 1);
							func_336(uParam2, 18, 1);
							func_336(uParam2, 49, 1);
							func_336(uParam2, 50, 1);
							func_336(uParam2, 51, 1);
							func_336(uParam2, 52, 1);
							func_336(uParam2, 62, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							func_335(uParam4, 1, 1);
							func_335(uParam4, 2, 1);
							func_335(uParam4, 3, 1);
							func_335(uParam4, 5, 1);
							func_335(uParam4, 6, 1);
							func_335(uParam4, 7, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 9, 1);
							func_335(uParam4, 10, 1);
							func_335(uParam4, 13, 1);
							func_335(uParam4, 18, 1);
							func_335(uParam4, 19, 1);
							func_335(uParam4, 20, 1);
							func_335(uParam4, 59, 1);
							func_335(uParam4, 60, 1);
							func_335(uParam4, 61, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 63, 1);
							func_335(uParam4, 64, 1);
							func_335(uParam4, 65, 1);
							func_335(uParam4, 66, 1);
							func_335(uParam4, 67, 1);
							func_335(uParam4, 68, 1);
							func_335(uParam4, 69, 1);
							func_335(uParam4, 70, 1);
							func_335(uParam4, 71, 1);
							func_335(uParam4, 72, 1);
							func_335(uParam4, 21, 1);
							func_335(uParam4, 22, 1);
							func_335(uParam4, 23, 1);
							func_335(uParam4, 24, 1);
							func_335(uParam4, 25, 1);
							func_335(uParam4, 26, 1);
							func_335(uParam4, 36, 1);
							func_335(uParam4, 46, 1);
							func_335(uParam4, 38, 1);
							func_335(uParam4, 29, 1);
							func_335(uParam4, 28, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
					}
					break;
				
				case 19:
					switch (iParam5)
					{
						case 0:
							func_338(uParam3, 3, 1);
							func_338(uParam3, 7, 1);
							func_338(uParam3, 0, 1);
							func_338(uParam3, 12, 1);
							func_338(uParam3, 13, 1);
							func_338(uParam3, 15, 1);
							func_338(uParam3, 16, 1);
							func_338(uParam3, 48, 1);
							func_338(uParam3, 49, 1);
							func_338(uParam3, 17, 1);
							func_338(uParam3, 18, 1);
							func_338(uParam3, 50, 1);
							func_338(uParam3, 51, 1);
							func_338(uParam3, 52, 1);
							func_338(uParam3, 53, 1);
							func_338(uParam3, 62, 1);
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_338(uParam3, 20, 1);
							func_338(uParam3, 21, 1);
							func_338(uParam3, 25, 1);
							func_338(uParam3, 26, 1);
							func_338(uParam3, 27, 1);
							func_338(uParam3, 30, 1);
							func_338(uParam3, 31, 1);
							func_338(uParam3, 32, 1);
							func_338(uParam3, 33, 1);
							func_338(uParam3, 39, 1);
							func_338(uParam3, 37, 1);
							func_336(uParam2, 0, 1);
							func_336(uParam2, 2, 1);
							func_336(uParam2, 3, 1);
							func_336(uParam2, 4, 1);
							func_336(uParam2, 6, 1);
							func_336(uParam2, 7, 1);
							func_336(uParam2, 8, 1);
							func_336(uParam2, 11, 1);
							func_336(uParam2, 13, 1);
							func_336(uParam2, 15, 1);
							func_336(uParam2, 16, 1);
							func_336(uParam2, 47, 1);
							func_336(uParam2, 48, 1);
							func_336(uParam2, 17, 1);
							func_336(uParam2, 18, 1);
							func_336(uParam2, 49, 1);
							func_336(uParam2, 50, 1);
							func_336(uParam2, 51, 1);
							func_336(uParam2, 52, 1);
							func_336(uParam2, 62, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							func_336(uParam2, 19, 1);
							func_336(uParam2, 20, 1);
							func_336(uParam2, 21, 1);
							func_336(uParam2, 22, 1);
							func_336(uParam2, 54, 1);
							func_336(uParam2, 24, 1);
							func_336(uParam2, 26, 1);
							func_336(uParam2, 27, 1);
							func_336(uParam2, 28, 1);
							func_336(uParam2, 30, 1);
							func_336(uParam2, 31, 1);
							func_336(uParam2, 32, 1);
							func_336(uParam2, 38, 1);
							func_336(uParam2, 36, 1);
							func_335(uParam4, 1, 1);
							func_335(uParam4, 2, 1);
							func_335(uParam4, 3, 1);
							func_335(uParam4, 4, 1);
							func_335(uParam4, 14, 1);
							func_335(uParam4, 15, 1);
							func_335(uParam4, 16, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 9, 1);
							func_335(uParam4, 10, 1);
							func_335(uParam4, 13, 1);
							func_335(uParam4, 17, 1);
							func_335(uParam4, 18, 1);
							func_335(uParam4, 19, 1);
							func_335(uParam4, 20, 1);
							func_335(uParam4, 59, 1);
							func_335(uParam4, 60, 1);
							func_335(uParam4, 61, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 63, 1);
							func_335(uParam4, 64, 1);
							func_335(uParam4, 65, 1);
							func_335(uParam4, 66, 1);
							func_335(uParam4, 67, 1);
							func_335(uParam4, 68, 1);
							func_335(uParam4, 69, 1);
							func_335(uParam4, 70, 1);
							func_335(uParam4, 71, 1);
							func_335(uParam4, 72, 1);
							func_335(uParam4, 21, 1);
							func_335(uParam4, 22, 1);
							func_335(uParam4, 23, 1);
							func_335(uParam4, 24, 1);
							func_335(uParam4, 25, 1);
							func_335(uParam4, 26, 1);
							func_335(uParam4, 36, 1);
							func_335(uParam4, 46, 1);
							func_335(uParam4, 38, 1);
							func_335(uParam4, 29, 1);
							func_335(uParam4, 28, 1);
							func_335(uParam4, 31, 1);
							func_335(uParam4, 33, 1);
							func_335(uParam4, 34, 1);
							func_335(uParam4, 43, 1);
							func_338(uParam3, 65, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 75, 1);
							func_338(uParam3, 76, 1);
							func_338(uParam3, 77, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 64, 1);
							func_336(uParam2, 65, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 74, 1);
							func_336(uParam2, 75, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
						
						case 1:
							func_338(uParam3, 3, 1);
							func_338(uParam3, 7, 1);
							func_338(uParam3, 0, 1);
							func_338(uParam3, 12, 1);
							func_338(uParam3, 13, 1);
							func_338(uParam3, 15, 1);
							func_338(uParam3, 16, 1);
							func_338(uParam3, 48, 1);
							func_338(uParam3, 49, 1);
							func_338(uParam3, 17, 1);
							func_338(uParam3, 18, 1);
							func_338(uParam3, 50, 1);
							func_338(uParam3, 51, 1);
							func_338(uParam3, 52, 1);
							func_338(uParam3, 53, 1);
							func_338(uParam3, 62, 1);
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_338(uParam3, 20, 1);
							func_338(uParam3, 21, 1);
							func_338(uParam3, 25, 1);
							func_338(uParam3, 26, 1);
							func_338(uParam3, 27, 1);
							func_338(uParam3, 30, 1);
							func_338(uParam3, 31, 1);
							func_338(uParam3, 32, 1);
							func_338(uParam3, 33, 1);
							func_338(uParam3, 39, 1);
							func_336(uParam2, 0, 1);
							func_336(uParam2, 2, 1);
							func_336(uParam2, 3, 1);
							func_336(uParam2, 4, 1);
							func_336(uParam2, 6, 1);
							func_336(uParam2, 7, 1);
							func_336(uParam2, 11, 1);
							func_336(uParam2, 13, 1);
							func_336(uParam2, 15, 1);
							func_336(uParam2, 16, 1);
							func_336(uParam2, 47, 1);
							func_336(uParam2, 48, 1);
							func_336(uParam2, 17, 1);
							func_336(uParam2, 18, 1);
							func_336(uParam2, 49, 1);
							func_336(uParam2, 50, 1);
							func_336(uParam2, 51, 1);
							func_336(uParam2, 52, 1);
							func_336(uParam2, 62, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							func_336(uParam2, 19, 1);
							func_336(uParam2, 20, 1);
							func_336(uParam2, 21, 1);
							func_336(uParam2, 22, 1);
							func_336(uParam2, 54, 1);
							func_336(uParam2, 24, 1);
							func_336(uParam2, 38, 1);
							func_335(uParam4, 1, 1);
							func_335(uParam4, 2, 1);
							func_335(uParam4, 3, 1);
							func_335(uParam4, 4, 1);
							func_335(uParam4, 14, 1);
							func_335(uParam4, 15, 1);
							func_335(uParam4, 16, 1);
							func_335(uParam4, 6, 1);
							func_335(uParam4, 7, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 9, 1);
							func_335(uParam4, 10, 1);
							func_335(uParam4, 13, 1);
							func_335(uParam4, 17, 1);
							func_335(uParam4, 18, 1);
							func_335(uParam4, 19, 1);
							func_335(uParam4, 20, 1);
							func_335(uParam4, 59, 1);
							func_335(uParam4, 60, 1);
							func_335(uParam4, 61, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 63, 1);
							func_335(uParam4, 64, 1);
							func_335(uParam4, 65, 1);
							func_335(uParam4, 66, 1);
							func_335(uParam4, 67, 1);
							func_335(uParam4, 68, 1);
							func_335(uParam4, 69, 1);
							func_335(uParam4, 70, 1);
							func_335(uParam4, 71, 1);
							func_335(uParam4, 72, 1);
							func_335(uParam4, 21, 1);
							func_335(uParam4, 22, 1);
							func_335(uParam4, 23, 1);
							func_335(uParam4, 24, 1);
							func_335(uParam4, 25, 1);
							func_335(uParam4, 26, 1);
							func_335(uParam4, 36, 1);
							func_335(uParam4, 46, 1);
							func_335(uParam4, 38, 1);
							func_335(uParam4, 29, 1);
							func_335(uParam4, 28, 1);
							func_335(uParam4, 31, 1);
							func_335(uParam4, 33, 1);
							func_335(uParam4, 34, 1);
							func_335(uParam4, 43, 1);
							func_338(uParam3, 65, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 75, 1);
							func_338(uParam3, 76, 1);
							func_338(uParam3, 77, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 64, 1);
							func_336(uParam2, 65, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 74, 1);
							func_336(uParam2, 75, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
						
						case 2:
							func_338(uParam3, 1, 1);
							func_338(uParam3, 3, 1);
							func_338(uParam3, 4, 1);
							func_338(uParam3, 5, 1);
							func_338(uParam3, 7, 1);
							func_338(uParam3, 10, 1);
							func_338(uParam3, 54, 1);
							func_338(uParam3, 55, 1);
							func_338(uParam3, 56, 1);
							func_338(uParam3, 0, 1);
							func_338(uParam3, 12, 1);
							func_338(uParam3, 13, 1);
							func_338(uParam3, 15, 1);
							func_338(uParam3, 16, 1);
							func_338(uParam3, 48, 1);
							func_338(uParam3, 49, 1);
							func_338(uParam3, 17, 1);
							func_338(uParam3, 18, 1);
							func_338(uParam3, 50, 1);
							func_338(uParam3, 51, 1);
							func_338(uParam3, 52, 1);
							func_338(uParam3, 53, 1);
							func_338(uParam3, 62, 1);
							func_338(uParam3, 38, 1);
							func_338(uParam3, 47, 1);
							func_338(uParam3, 20, 1);
							func_338(uParam3, 21, 1);
							func_338(uParam3, 25, 1);
							func_338(uParam3, 26, 1);
							func_338(uParam3, 27, 1);
							func_338(uParam3, 30, 1);
							func_338(uParam3, 31, 1);
							func_338(uParam3, 32, 1);
							func_338(uParam3, 33, 1);
							func_338(uParam3, 37, 1);
							func_338(uParam3, 39, 1);
							func_336(uParam2, 0, 1);
							func_336(uParam2, 1, 1);
							func_336(uParam2, 2, 1);
							func_336(uParam2, 3, 1);
							func_336(uParam2, 4, 1);
							func_336(uParam2, 5, 1);
							func_336(uParam2, 6, 1);
							func_336(uParam2, 7, 1);
							func_336(uParam2, 8, 1);
							func_336(uParam2, 9, 1);
							func_336(uParam2, 10, 1);
							func_336(uParam2, 53, 1);
							func_336(uParam2, 56, 1);
							func_336(uParam2, 55, 1);
							func_336(uParam2, 11, 1);
							func_336(uParam2, 12, 1);
							func_336(uParam2, 13, 1);
							func_336(uParam2, 14, 1);
							func_336(uParam2, 15, 1);
							func_336(uParam2, 16, 1);
							func_336(uParam2, 47, 1);
							func_336(uParam2, 48, 1);
							func_336(uParam2, 17, 1);
							func_336(uParam2, 18, 1);
							func_336(uParam2, 49, 1);
							func_336(uParam2, 50, 1);
							func_336(uParam2, 51, 1);
							func_336(uParam2, 52, 1);
							func_336(uParam2, 62, 1);
							func_336(uParam2, 37, 1);
							func_336(uParam2, 46, 1);
							func_336(uParam2, 19, 1);
							func_336(uParam2, 20, 1);
							func_336(uParam2, 21, 1);
							func_336(uParam2, 22, 1);
							func_336(uParam2, 54, 1);
							func_336(uParam2, 23, 1);
							func_336(uParam2, 24, 1);
							func_336(uParam2, 26, 1);
							func_336(uParam2, 27, 1);
							func_336(uParam2, 28, 1);
							func_336(uParam2, 29, 1);
							func_336(uParam2, 30, 1);
							func_336(uParam2, 31, 1);
							func_336(uParam2, 32, 1);
							func_336(uParam2, 33, 1);
							func_336(uParam2, 36, 1);
							func_336(uParam2, 38, 1);
							func_336(uParam2, 55, 1);
							func_335(uParam4, 1, 1);
							func_335(uParam4, 2, 1);
							func_335(uParam4, 3, 1);
							func_335(uParam4, 3, 1);
							func_335(uParam4, 4, 1);
							func_335(uParam4, 14, 1);
							func_335(uParam4, 15, 1);
							func_335(uParam4, 16, 1);
							func_335(uParam4, 6, 1);
							func_335(uParam4, 8, 1);
							func_335(uParam4, 9, 1);
							func_335(uParam4, 10, 1);
							func_335(uParam4, 12, 1);
							func_335(uParam4, 13, 1);
							func_335(uParam4, 17, 1);
							func_335(uParam4, 18, 1);
							func_335(uParam4, 19, 1);
							func_335(uParam4, 20, 1);
							func_335(uParam4, 59, 1);
							func_335(uParam4, 60, 1);
							func_335(uParam4, 61, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 62, 1);
							func_335(uParam4, 63, 1);
							func_335(uParam4, 64, 1);
							func_335(uParam4, 65, 1);
							func_335(uParam4, 66, 1);
							func_335(uParam4, 67, 1);
							func_335(uParam4, 68, 1);
							func_335(uParam4, 69, 1);
							func_335(uParam4, 70, 1);
							func_335(uParam4, 71, 1);
							func_335(uParam4, 72, 1);
							func_335(uParam4, 21, 1);
							func_335(uParam4, 22, 1);
							func_335(uParam4, 23, 1);
							func_335(uParam4, 24, 1);
							func_335(uParam4, 25, 1);
							func_335(uParam4, 26, 1);
							func_335(uParam4, 36, 1);
							func_335(uParam4, 46, 1);
							func_335(uParam4, 38, 1);
							func_335(uParam4, 29, 1);
							func_335(uParam4, 28, 1);
							func_335(uParam4, 31, 1);
							func_335(uParam4, 33, 1);
							func_335(uParam4, 34, 1);
							func_335(uParam4, 32, 1);
							func_338(uParam3, 65, 1);
							func_338(uParam3, 67, 1);
							func_338(uParam3, 68, 1);
							func_338(uParam3, 69, 1);
							func_338(uParam3, 70, 1);
							func_338(uParam3, 71, 1);
							func_338(uParam3, 72, 1);
							func_338(uParam3, 73, 1);
							func_338(uParam3, 74, 1);
							func_338(uParam3, 75, 1);
							func_338(uParam3, 76, 1);
							func_338(uParam3, 77, 1);
							func_338(uParam3, 78, 1);
							func_338(uParam3, 79, 1);
							func_338(uParam3, 80, 1);
							func_338(uParam3, 81, 1);
							func_338(uParam3, 82, 1);
							func_336(uParam2, 64, 1);
							func_336(uParam2, 65, 1);
							func_336(uParam2, 66, 1);
							func_336(uParam2, 67, 1);
							func_336(uParam2, 68, 1);
							func_336(uParam2, 69, 1);
							func_336(uParam2, 70, 1);
							func_336(uParam2, 71, 1);
							func_336(uParam2, 72, 1);
							func_336(uParam2, 73, 1);
							func_336(uParam2, 74, 1);
							func_336(uParam2, 75, 1);
							func_336(uParam2, 77, 1);
							func_336(uParam2, 78, 1);
							func_336(uParam2, 79, 1);
							func_336(uParam2, 80, 1);
							func_336(uParam2, 81, 1);
							break;
					}
					break;
				
				case 18:
					switch (iParam5)
					{
						case 0:
							break;
						
						case 1:
							func_336(uParam2, 2, 1);
							func_336(uParam2, 20, 1);
							break;
						
						case 2:
							break;
					}
					break;
				
				case 0:
					break;
			}
			break;
		
		case 3:
			switch (iParam1)
			{
				case 0:
					break;
				
				case 8:
				case 10:
				case 12:
				case 14:
				case 18:
				case 22:
				case 25:
				case 29:
				case 33:
				case 19:
				case 21:
					func_334(2, 29, uParam2, uParam3, uParam4, 0, 0);
					break;
				
				case 31:
					func_334(2, 30, uParam2, uParam3, uParam4, 0, 0);
					break;
				
				case 16:
				case 26:
				case 30:
					break;
			}
			break;
	}
}

void func_335(var uParam0, int iParam1, int iParam2)//Position - 0x199DB
{
	int iVar0;
	
	iVar0 = system::floor((system::to_float(iParam1) / 32f));
	if (iParam2)
	{
		gameplay::set_bit(uParam0[iVar0], (iParam1 - (32 * iVar0)));
	}
	else
	{
		gameplay::clear_bit(uParam0[iVar0], (iParam1 - iVar0 * 32));
	}
}

void func_336(var uParam0, int iParam1, int iParam2)//Position - 0x19A20
{
	func_337(uParam0, iParam1, iParam2);
}

void func_337(var uParam0, int iParam1, int iParam2)//Position - 0x19A32
{
	int iVar0;
	
	iVar0 = system::floor((system::to_float(iParam1) / 32f));
	if (iParam2)
	{
		gameplay::set_bit(uParam0[iVar0], (iParam1 - iVar0 * 32));
	}
	else
	{
		gameplay::clear_bit(uParam0[iVar0], (iParam1 - iVar0 * 32));
	}
}

void func_338(var uParam0, int iParam1, int iParam2)//Position - 0x19A76
{
	func_337(uParam0, iParam1, iParam2);
}

bool func_339(int iParam0, int iParam1)//Position - 0x19A88
{
	switch (iParam0)
	{
		case 1:
			switch (iParam1)
			{
				case 0:
				case 3:
					return false;
					break;
			}
			return true;
			break;
		
		case 2:
			switch (iParam1)
			{
				case 0:
				case 30:
				case 31:
				case 32:
				case 33:
				case 34:
					return false;
					break;
			}
			return true;
			break;
		
		case 3:
			switch (iParam1)
			{
				case 3:
				case 4:
				case 5:
				case 6:
					return true;
					break;
				
				case 7:
				case 8:
				case 9:
				case 10:
				case 11:
				case 12:
				case 13:
				case 14:
				case 15:
				case 16:
				case 17:
				case 18:
				case 19:
				case 20:
				case 21:
				case 22:
				case 23:
				case 24:
				case 25:
				case 26:
				case 27:
				case 28:
				case 29:
				case 30:
				case 31:
				case 32:
				case 33:
				case 34:
					return true;
					break;
				
				case 0:
				default:
					return false;
					break;
			}
			break;
	}
	return false;
}

bool func_340(int iParam0, int iParam1)//Position - 0x19BE9
{
	if ((((!entity::is_entity_dead(iParam0, 0) && ai::is_ped_still(iParam0)) && !ped::is_ped_in_any_vehicle(iParam0, 1)) && !func_258(iParam0)) && (func_353(iParam0) || iParam1))
	{
		if (!iParam1)
		{
			if (iParam0 == player::player_ped_id())
			{
				if (network::get_time_difference(func_319(), Global_2557205.f_791) < 1300)
				{
					return false;
				}
			}
		}
		return true;
	}
	return false;
}

void func_341(var uParam0)//Position - 0x19C60
{
	int iVar0;
	int iVar1;
	
	uParam0->f_2 = 0;
	uParam0->f_3 = 0;
	if (func_344(player::player_id(), 1, 1))
	{
		if (!ped::is_ped_injured(uParam0->f_119) && ped::is_ped_in_any_vehicle(uParam0->f_119, 0))
		{
			iVar1 = ped::get_vehicle_ped_is_in(uParam0->f_119, 0);
			iVar0 = func_292(uParam0->f_119);
			uParam0->f_2 = func_343(iVar0);
			uParam0->f_4 = func_291(iVar0);
			uParam0->f_3 = func_285(iVar1);
			uParam0->f_5 = func_342(iVar1);
			uParam0->f_6 = func_286(iVar1);
			uParam0->f_7 = func_290(iVar1);
		}
	}
}

bool func_342(int iParam0)//Position - 0x19CEA
{
	float fVar0;
	
	fVar0 = gameplay::absf((entity::get_entity_heading(iParam0) - entity::get_entity_heading(player::player_ped_id())));
	if (fVar0 > 180f)
	{
		fVar0 = (fVar0 + -360f);
	}
	fVar0 = gameplay::absf(fVar0);
	if (fVar0 > 40f)
	{
		return true;
	}
	return false;
}

bool func_343(int iParam0)//Position - 0x19D34
{
	switch (iParam0)
	{
		case -1:
		case 1:
		case 3:
		case 5:
		case 7:
			return true;
			break;
	}
	return false;
}

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

void func_345(var uParam0, var uParam1, int iParam2)//Position - 0x19DAD
{
	if ((*uParam0 != *uParam1 || uParam0->f_1 != uParam1->f_1) || iParam2)
	{
		uParam0->f_1120 = { *uParam0 };
		*uParam0 = *uParam1;
		uParam0->f_1 = uParam1->f_1;
		uParam0->f_114 = -1;
		func_346(*uParam0, uParam0->f_1, &(uParam0->f_121));
		func_341(uParam0);
		uParam0->f_1680 = 0;
	}
}

void func_346(int iParam0, int iParam1, var uParam2)//Position - 0x19E13
{
	*uParam2 = { Global_2558033 };
	switch (iParam0)
	{
		case 0:
			switch (iParam1)
			{
				case 0:
					break;
				
				case 1:
					StringCopy(uParam2[1 /*16*/], "amb@code_human_in_car_mp_actions@smoke@low@ps@base", 64);
					StringCopy(uParam2[4 /*16*/], "amb@code_human_in_car_mp_actions@smoke@std@rds@base", 64);
					StringCopy(uParam2[5 /*16*/], "amb@code_human_in_car_mp_actions@smoke@std@rps@base", 64);
					StringCopy(uParam2[3 /*16*/], "amb@code_human_in_car_mp_actions@smoke@std@ps@base", 64);
					StringCopy(uParam2[8 /*16*/], "amb@code_human_in_car_mp_actions@smoke@bodhi@rps@base", 64);
					StringCopy(uParam2[9 /*16*/], "amb@code_human_in_car_mp_actions@smoke@bodhi@rps@base", 64);
					StringCopy(uParam2[6 /*16*/], "amb@code_human_in_car_mp_actions@smoke@std@ds@base", 64);
					StringCopy(uParam2[7 /*16*/], "amb@code_human_in_car_mp_actions@smoke@std@ps@base", 64);
					StringCopy(uParam2[2 /*16*/], "amb@code_human_in_car_mp_actions@smoke@std@ds@base", 64);
					StringCopy(uParam2[0 /*16*/], "amb@code_human_in_car_mp_actions@smoke@low@ds@base", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_370 = 1;
					uParam2->f_372 = 1;
					uParam2->f_376 = joaat("prop_cs_ciggy_01");
					uParam2->f_378 = 1;
					StringCopy(&(uParam2->f_379), "ent_anim_cig_smoke_car", 64);
					uParam2->f_395 = { -0.08f, 0f, 0f };
					uParam2->f_398 = { 0f, 0f, 0f };
					uParam2->f_401 = 1;
					StringCopy(&(uParam2->f_402), "ent_anim_cig_exhale_mth_car", 64);
					uParam2->f_418 = 1;
					StringCopy(&(uParam2->f_419), "ent_anim_cig_exhale_nse_car", 64);
					uParam2->f_377 = 1;
					uParam2->f_373 = 1;
					uParam2->f_374 = 0;
					uParam2->f_375 = 0;
					break;
				
				case 2:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarfingerlow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarfingerstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarfingerstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarfingerstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarfingerbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarfingerbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarfingerbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarfingerbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarfingerstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarfingerlow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 3:
					StringCopy(uParam2[1 /*16*/], "amb@code_human_in_car_mp_actions@dance@low@ps@base", 64);
					StringCopy(uParam2[4 /*16*/], "amb@code_human_in_car_mp_actions@dance@std@rds@base", 64);
					StringCopy(uParam2[5 /*16*/], "amb@code_human_in_car_mp_actions@dance@std@rps@base", 64);
					StringCopy(uParam2[3 /*16*/], "amb@code_human_in_car_mp_actions@dance@std@ps@base", 64);
					StringCopy(uParam2[8 /*16*/], "amb@code_human_in_car_mp_actions@dance@bodhi@rds@base", 64);
					StringCopy(uParam2[9 /*16*/], "amb@code_human_in_car_mp_actions@dance@bodhi@rds@base", 64);
					StringCopy(uParam2[6 /*16*/], "amb@code_human_in_car_mp_actions@dance@std@ps@base", 64);
					StringCopy(uParam2[7 /*16*/], "amb@code_human_in_car_mp_actions@dance@std@ds@base", 64);
					StringCopy(uParam2[2 /*16*/], "amb@code_human_in_car_mp_actions@dance@std@ds@base", 64);
					StringCopy(uParam2[0 /*16*/], "amb@code_human_in_car_mp_actions@dance@low@ds@base", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 0;
					uParam2->f_375 = 0;
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					break;
				
				case 4:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarrocklow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarrockstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarrockstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarrockstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarrockbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarrockbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarrockbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarrockbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarrockstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarrocklow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 5:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarwanklow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarwankstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarwankstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarwankstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarwankbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarwankbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarwankbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarwankbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarwankstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarwanklow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 7:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarair_shagginglow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarair_shaggingstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarair_shaggingstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarair_shaggingstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarair_shaggingbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarair_shaggingbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarair_shaggingbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarair_shaggingbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarair_shaggingstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarair_shagginglow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 0;
					break;
				
				case 8:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincardocklow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincardockstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincardockstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincardockstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincardockbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincardockbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincardockbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincardockbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincardockstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincardocklow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 9:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarknuckle_crunchlow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarknuckle_crunchstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarknuckle_crunchstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarknuckle_crunchstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarknuckle_crunchbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarknuckle_crunchbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarknuckle_crunchbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarknuckle_crunchbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarknuckle_crunchstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarknuckle_crunchlow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_437 = 1;
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 10:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarsalutelow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarsalutestd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarsalutestd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarsalutestd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarsalutebodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarsalutebodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarsalutebodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarsalutebodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarsalutestd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarsalutelow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 6:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarblow_kisslow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarblow_kissstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarblow_kissstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarblow_kissstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarblow_kissbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarblow_kissbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarblow_kissbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarblow_kissbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarblow_kissstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarblow_kisslow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 0;
					break;
				
				case 11:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarslow_claplow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarslow_clapstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarslow_clapstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarslow_clapstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarslow_clapbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarslow_clapbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarslow_clapbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarslow_clapbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarslow_clapstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarslow_claplow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					uParam2->f_437 = 1;
					break;
				
				case 12:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarface_palmlow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarface_palmstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarface_palmstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarface_palmstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarface_palmbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarface_palmbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarface_palmbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarface_palmbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarface_palmstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarface_palmlow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 13:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarthumbs_uplow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarthumbs_upstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarthumbs_upstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarthumbs_upstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarthumbs_upbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarthumbs_upbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarthumbs_upbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarthumbs_upbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarthumbs_upstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarthumbs_uplow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 14:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarjazz_handslow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarjazz_handsstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarjazz_handsstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarjazz_handsstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarjazz_handsbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarjazz_handsbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarjazz_handsbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarjazz_handsbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarjazz_handsstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarjazz_handslow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 15:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarnose_picklow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarnose_pickstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarnose_pickstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarnose_pickstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarnose_pickbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarnose_pickbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarnose_pickbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarnose_pickbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarnose_pickstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarnose_picklow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 17:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarwavelow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarwavestd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarwavestd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarwavestd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarwavebodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarwavebodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarwavebodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarwavebodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarwavestd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarwavelow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 16:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarair_guitarlow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarair_guitarstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarair_guitarstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarair_guitarstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarair_guitarbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarair_guitarbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarair_guitarbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarair_guitarbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarair_guitarstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarair_guitarlow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 18:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarsurrenderlow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarsurrenderstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarsurrenderstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarsurrenderstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarsurrenderbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarsurrenderbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarsurrenderbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarsurrenderbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarsurrenderstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarsurrenderlow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 19:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarshushlow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarshushstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarshushstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarshushstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarshushbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarshushbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarshushbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarshushbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarshushstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarshushlow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 20:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarphotographylow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarphotographystd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarphotographystd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarphotographystd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarphotographybodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarphotographybodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarphotographybodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarphotographybodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarphotographystd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarphotographylow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 21:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincardjlow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincardjstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincardjstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincardjstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincardjbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincardjbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincardjbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincardjbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincardjstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincardjlow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 22:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarair_synthlow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarair_synthstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarair_synthstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarair_synthstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarair_synthbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarair_synthbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarair_synthbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarair_synthbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarair_synthstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarair_synthlow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 23:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarno_waylow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarno_waystd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarno_waystd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarno_waystd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarno_waybodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarno_waybodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarno_waybodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarno_waybodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarno_waystd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarno_waylow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 25:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarchin_brushlow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarchin_brushstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarchin_brushstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarchin_brushstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarchin_brushbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarchin_brushbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarchin_brushbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarchin_brushbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarchin_brushstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarchin_brushlow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 24:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarchicken_tauntlow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarchicken_tauntstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarchicken_tauntstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarchicken_tauntstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarchicken_tauntbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarchicken_tauntbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarchicken_tauntbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarchicken_tauntbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarchicken_tauntstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarchicken_tauntlow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 26:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarfinger_kisslow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarfinger_kissstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarfinger_kissstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarfinger_kissstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarfinger_kissbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarfinger_kissbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarfinger_kissbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarfinger_kissbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarfinger_kissstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarfinger_kisslow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 27:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarpeacelow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarpeacestd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarpeacestd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarpeacestd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarpeacebodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarpeacebodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarpeacebodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarpeacebodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarpeacestd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarpeacelow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 28:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincaryou_locolow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincaryou_locostd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincaryou_locostd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincaryou_locostd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincaryou_locobodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincaryou_locobodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincaryou_locobodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincaryou_locobodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincaryou_locostd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincaryou_locolow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 29:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarfreakoutlow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarfreakoutstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarfreakoutstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarfreakoutstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarfreakoutbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarfreakoutbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarfreakoutbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarfreakoutbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarfreakoutstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarfreakoutlow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 30:
					StringCopy(uParam2[1 /*16*/], "anim@mp_player_intincarthumb_on_earslow@ps@", 64);
					StringCopy(uParam2[4 /*16*/], "anim@mp_player_intincarthumb_on_earsstd@rds@", 64);
					StringCopy(uParam2[5 /*16*/], "anim@mp_player_intincarthumb_on_earsstd@rps@", 64);
					StringCopy(uParam2[3 /*16*/], "anim@mp_player_intincarthumb_on_earsstd@ps@", 64);
					StringCopy(uParam2[8 /*16*/], "anim@mp_player_intincarthumb_on_earsbodhi@rds@", 64);
					StringCopy(uParam2[9 /*16*/], "anim@mp_player_intincarthumb_on_earsbodhi@rps@", 64);
					StringCopy(uParam2[6 /*16*/], "anim@mp_player_intincarthumb_on_earsbodhi@ds@", 64);
					StringCopy(uParam2[7 /*16*/], "anim@mp_player_intincarthumb_on_earsbodhi@ps@", 64);
					StringCopy(uParam2[2 /*16*/], "anim@mp_player_intincarthumb_on_earsstd@ds@", 64);
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intincarthumb_on_earslow@ds@", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_209), "ENTER", 64);
					StringCopy(&(uParam2->f_225), "IDLE_A", 64);
					StringCopy(&(uParam2->f_241), "EXIT", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
			}
			break;
		
		case 1:
			switch (iParam1)
			{
				case 0:
					StringCopy(uParam2[0 /*16*/], "mp_player_int_upperbro_love", 64);
					StringCopy(&(uParam2->f_209), "mp_player_int_bro_love_ENTER", 64);
					StringCopy(&(uParam2->f_225), "mp_player_int_bro_love", 64);
					StringCopy(&(uParam2->f_241), "mp_player_int_bro_love_EXIT", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@bro_love", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationmale@bro_love", 64);
					StringCopy(&(uParam2->f_257), "bro_love", 64);
					uParam2->f_369 = 1;
					uParam2->f_436 = 2;
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					StringCopy(uParam2[12 /*16*/], "mp_player_int_upperbro_love", 64);
					break;
				
				case 1:
					StringCopy(uParam2[0 /*16*/], "mp_player_int_upperfinger", 64);
					StringCopy(&(uParam2->f_209), "mp_player_int_finger_02_ENTER", 64);
					StringCopy(&(uParam2->f_225), "mp_player_int_finger_02", 64);
					StringCopy(&(uParam2->f_241), "mp_player_int_finger_02_EXIT", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@finger", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@finger", 64);
					StringCopy(&(uParam2->f_257), "finger", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
				
				case 2:
					StringCopy(uParam2[0 /*16*/], "mp_player_int_upperwank", 64);
					StringCopy(&(uParam2->f_209), "mp_player_int_wank_02_ENTER", 64);
					StringCopy(&(uParam2->f_225), "mp_player_int_wank_02", 64);
					StringCopy(&(uParam2->f_241), "mp_player_int_wank_02_EXIT", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@wank", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationmale@wank", 64);
					StringCopy(&(uParam2->f_257), "wank", 64);
					uParam2->f_369 = 1;
					uParam2->f_373 = 1;
					uParam2->f_374 = 0;
					uParam2->f_375 = 0;
					break;
				
				case 3:
					StringCopy(uParam2[0 /*16*/], "mp_player_int_upperup_yours", 64);
					StringCopy(&(uParam2->f_209), "mp_player_int_up_yours_ENTER", 64);
					StringCopy(&(uParam2->f_225), "mp_player_int_up_yours", 64);
					StringCopy(&(uParam2->f_241), "mp_player_int_up_yours_EXIT", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@up_yours", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@up_yours", 64);
					StringCopy(&(uParam2->f_257), "up_yours", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
			}
			break;
		
		case 2:
			switch (iParam1)
			{
				case 0:
					break;
				
				case 1:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperfinger", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@finger", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@finger", 64);
					StringCopy(&(uParam2->f_257), "finger", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intselfiethe_bird", 64);
					break;
				
				case 2:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperrock", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@rock", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationmale@rock", 64);
					StringCopy(&(uParam2->f_257), "rock", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intupperrock", 64);
					break;
				
				case 3:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intuppersalute", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@salute", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationmale@salute", 64);
					StringCopy(&(uParam2->f_257), "salute", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					uParam2->f_369 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intuppersalute", 64);
					break;
				
				case 4:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperwank", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@wank", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationmale@wank", 64);
					StringCopy(&(uParam2->f_257), "wank", 64);
					uParam2->f_369 = 1;
					uParam2->f_373 = 1;
					uParam2->f_374 = 0;
					uParam2->f_375 = 0;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intselfiewank", 64);
					break;
				
				case 29:
					StringCopy(uParam2[0 /*16*/], "mp_player_int_uppersmoke", 64);
					StringCopy(&(uParam2->f_209), "mp_player_int_smoke_ENTER", 64);
					StringCopy(&(uParam2->f_225), "mp_player_int_smoke", 64);
					StringCopy(&(uParam2->f_241), "mp_player_int_smoke_EXIT", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@smoke_flick", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationmale@smoke_flick", 64);
					StringCopy(&(uParam2->f_257), "smoke_flick", 64);
					uParam2->f_369 = 1;
					uParam2->f_373 = 1;
					uParam2->f_374 = 0;
					uParam2->f_375 = 0;
					uParam2->f_370 = 1;
					uParam2->f_372 = 1;
					uParam2->f_376 = joaat("prop_cs_ciggy_01");
					uParam2->f_378 = 1;
					StringCopy(&(uParam2->f_379), "ent_anim_cig_smoke", 64);
					uParam2->f_395 = { -0.08f, 0f, 0f };
					uParam2->f_398 = { 0f, 0f, 0f };
					uParam2->f_401 = 1;
					StringCopy(&(uParam2->f_402), "ent_anim_cig_exhale_mth", 64);
					uParam2->f_418 = 1;
					StringCopy(&(uParam2->f_419), "ent_anim_cig_exhale_nse", 64);
					uParam2->f_377 = 1;
					break;
				
				case 30:
					StringCopy(uParam2[0 /*16*/], "mp_player_intdrink", 64);
					StringCopy(&(uParam2->f_209), "Intro", 64);
					StringCopy(&(uParam2->f_225), "Loop", 64);
					StringCopy(&(uParam2->f_241), "Outro", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@rock", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationmale@rock", 64);
					StringCopy(&(uParam2->f_257), "rock", 64);
					uParam2->f_369 = 1;
					uParam2->f_373 = 1;
					uParam2->f_374 = 0;
					uParam2->f_375 = 0;
					uParam2->f_370 = 1;
					uParam2->f_376 = joaat("prop_ecola_can");
					uParam2->f_377 = 1;
					uParam2->f_437 = 1;
					break;
				
				case 31:
					StringCopy(uParam2[0 /*16*/], "mp_player_intdrink", 64);
					StringCopy(&(uParam2->f_209), "Intro_bottle", 64);
					StringCopy(&(uParam2->f_225), "Loop_bottle", 64);
					StringCopy(&(uParam2->f_241), "Outro_bottle", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@rock", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationmale@rock", 64);
					StringCopy(&(uParam2->f_257), "rock", 64);
					uParam2->f_369 = 1;
					uParam2->f_373 = 1;
					uParam2->f_374 = 0;
					uParam2->f_375 = 0;
					uParam2->f_370 = 1;
					uParam2->f_376 = joaat("prop_amb_beer_bottle");
					uParam2->f_435 = 3;
					uParam2->f_377 = 1;
					uParam2->f_437 = 1;
					break;
				
				case 32:
					StringCopy(uParam2[0 /*16*/], "mp_player_inteat@pnq", 64);
					StringCopy(&(uParam2->f_209), "intro", 64);
					StringCopy(&(uParam2->f_225), "loop", 64);
					StringCopy(&(uParam2->f_241), "outro", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@rock", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationmale@rock", 64);
					StringCopy(&(uParam2->f_257), "rock", 64);
					uParam2->f_369 = 1;
					uParam2->f_373 = 1;
					uParam2->f_374 = 0;
					uParam2->f_375 = 0;
					uParam2->f_370 = 1;
					uParam2->f_376 = joaat("prop_choc_pq");
					uParam2->f_436 = 2;
					uParam2->f_377 = 1;
					uParam2->f_437 = 1;
					break;
				
				case 33:
					StringCopy(uParam2[0 /*16*/], "mp_player_inteat@burger", 64);
					StringCopy(&(uParam2->f_209), "mp_player_int_eat_burger_enter", 64);
					StringCopy(&(uParam2->f_225), "mp_player_int_eat_burger", 64);
					StringCopy(&(uParam2->f_241), "mp_player_int_eat_exit_burger", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@rock", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationmale@rock", 64);
					StringCopy(&(uParam2->f_257), "rock", 64);
					uParam2->f_369 = 1;
					uParam2->f_373 = 1;
					uParam2->f_374 = 0;
					uParam2->f_375 = 0;
					uParam2->f_370 = 1;
					uParam2->f_376 = joaat("prop_choc_ego");
					uParam2->f_436 = 2;
					uParam2->f_377 = 1;
					uParam2->f_437 = 1;
					break;
				
				case 34:
					StringCopy(uParam2[0 /*16*/], "mp_player_inteat@burger", 64);
					StringCopy(&(uParam2->f_209), "mp_player_int_eat_burger_enter", 64);
					StringCopy(&(uParam2->f_225), "mp_player_int_eat_burger", 64);
					StringCopy(&(uParam2->f_241), "mp_player_int_eat_exit_burger", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@rock", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationmale@rock", 64);
					StringCopy(&(uParam2->f_257), "rock", 64);
					uParam2->f_369 = 1;
					uParam2->f_373 = 1;
					uParam2->f_374 = 0;
					uParam2->f_375 = 0;
					uParam2->f_370 = 1;
					uParam2->f_376 = joaat("prop_choc_meto");
					uParam2->f_436 = 2;
					uParam2->f_377 = 1;
					uParam2->f_437 = 1;
					break;
				
				case 6:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperair_shagging", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@air_shagging", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@air_shagging", 64);
					StringCopy(&(uParam2->f_257), "air_shagging", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 0;
					uParam2->f_436 = -3;
					break;
				
				case 7:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperdock", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@dock", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@dock", 64);
					StringCopy(&(uParam2->f_257), "dock", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intselfiedock", 64);
					break;
				
				case 8:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperknuckle_crunch", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@knuckle_crunch", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@knuckle_crunch", 64);
					StringCopy(&(uParam2->f_257), "knuckle_crunch", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					uParam2->f_437 = 1;
					break;
				
				case 5:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperblow_kiss", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@blow_kiss", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@blow_kiss", 64);
					StringCopy(&(uParam2->f_257), "blow_kiss", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 0;
					uParam2->f_369 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intselfieblow_kiss", 64);
					break;
				
				case 9:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperslow_clap", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@slow_clap", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@slow_clap", 64);
					StringCopy(&(uParam2->f_257), "slow_clap", 64);
					uParam2->f_373 = 1;
					uParam2->f_375 = 1;
					uParam2->f_374 = 1;
					uParam2->f_437 = 1;
					break;
				
				case 10:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperface_palm", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@face_palm", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@face_palm", 64);
					StringCopy(&(uParam2->f_257), "face_palm", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					uParam2->f_369 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intupperface_palm", 64);
					break;
				
				case 11:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperthumbs_up", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@thumbs_up", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@thumbs_up", 64);
					StringCopy(&(uParam2->f_257), "thumbs_up", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intselfiethumbs_up", 64);
					break;
				
				case 12:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperjazz_hands", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@jazz_hands", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@jazz_hands", 64);
					StringCopy(&(uParam2->f_257), "jazz_hands", 64);
					uParam2->f_373 = 1;
					uParam2->f_375 = 1;
					uParam2->f_374 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intupperjazz_hands", 64);
					break;
				
				case 13:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intuppernose_pick", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@nose_pick", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@nose_pick", 64);
					StringCopy(&(uParam2->f_257), "nose_pick", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					uParam2->f_369 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intuppernose_pick", 64);
					break;
				
				case 15:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperwave", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@wave", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@wave", 64);
					StringCopy(&(uParam2->f_257), "wave", 64);
					uParam2->f_373 = 1;
					uParam2->f_375 = 1;
					uParam2->f_374 = 1;
					uParam2->f_369 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intupperwave", 64);
					break;
				
				case 14:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperair_guitar", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@air_guitar", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@air_guitar", 64);
					StringCopy(&(uParam2->f_257), "air_guitar", 64);
					uParam2->f_373 = 1;
					uParam2->f_375 = 1;
					uParam2->f_374 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intupperair_guitar", 64);
					break;
				
				case 16:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intuppersurrender", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@surrender", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@surrender", 64);
					StringCopy(&(uParam2->f_257), "surrender", 64);
					uParam2->f_373 = 1;
					uParam2->f_375 = 1;
					uParam2->f_374 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intuppersurrender", 64);
					break;
				
				case 17:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intuppershush", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@shush", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@shush", 64);
					StringCopy(&(uParam2->f_257), "shush", 64);
					uParam2->f_373 = 1;
					uParam2->f_375 = 1;
					uParam2->f_374 = 1;
					uParam2->f_369 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intuppershush", 64);
					break;
				
				case 18:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperphotography", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@photography", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@photography", 64);
					StringCopy(&(uParam2->f_257), "photography", 64);
					uParam2->f_373 = 1;
					uParam2->f_375 = 1;
					uParam2->f_374 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intupperphotography", 64);
					break;
				
				case 19:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperdj", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@dj", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@dj", 64);
					StringCopy(&(uParam2->f_257), "dj", 64);
					uParam2->f_373 = 1;
					uParam2->f_375 = 1;
					uParam2->f_374 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intupperdj", 64);
					break;
				
				case 20:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperair_synth", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@air_synth", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@air_synth", 64);
					StringCopy(&(uParam2->f_257), "air_synth", 64);
					uParam2->f_373 = 1;
					uParam2->f_375 = 1;
					uParam2->f_374 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intupperair_synth", 64);
					break;
				
				case 21:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperno_way", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@no_way", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@no_way", 64);
					StringCopy(&(uParam2->f_257), "no_way", 64);
					uParam2->f_373 = 1;
					uParam2->f_375 = 1;
					uParam2->f_374 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intupperno_way", 64);
					break;
				
				case 23:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperchin_brush", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@chin_brush", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@chin_brush", 64);
					StringCopy(&(uParam2->f_257), "chin_brush", 64);
					uParam2->f_373 = 1;
					uParam2->f_375 = 1;
					uParam2->f_374 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intupperchin_brush", 64);
					break;
				
				case 22:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperchicken_taunt", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@chicken_taunt", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@chicken_taunt", 64);
					StringCopy(&(uParam2->f_257), "chicken_taunt", 64);
					uParam2->f_373 = 1;
					uParam2->f_375 = 1;
					uParam2->f_374 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intupperchicken_taunt", 64);
					break;
				
				case 25:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperpeace", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@peace", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@peace", 64);
					StringCopy(&(uParam2->f_257), "peace", 64);
					uParam2->f_373 = 1;
					uParam2->f_375 = 1;
					uParam2->f_374 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intupperpeace", 64);
					break;
				
				case 24:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperfinger_kiss", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@finger_kiss", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@finger_kiss", 64);
					StringCopy(&(uParam2->f_257), "finger_kiss", 64);
					uParam2->f_373 = 1;
					uParam2->f_375 = 1;
					uParam2->f_374 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intupperfinger_kiss", 64);
					break;
				
				case 26:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperyou_loco", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@you_loco", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@you_loco", 64);
					StringCopy(&(uParam2->f_257), "you_loco", 64);
					uParam2->f_373 = 1;
					uParam2->f_375 = 1;
					uParam2->f_374 = 1;
					StringCopy(uParam2[12 /*16*/], "anim@mp_player_intupperyou_loco", 64);
					break;
				
				case 27:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperfreakout", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@freakout", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@freakout", 64);
					StringCopy(&(uParam2->f_257), "freakout", 64);
					uParam2->f_373 = 1;
					uParam2->f_375 = 1;
					uParam2->f_374 = 1;
					break;
				
				case 28:
					StringCopy(uParam2[0 /*16*/], "anim@mp_player_intupperthumb_on_ears", 64);
					StringCopy(&(uParam2->f_209), "enter", 64);
					StringCopy(&(uParam2->f_225), "idle_a", 64);
					StringCopy(&(uParam2->f_241), "exit", 64);
					StringCopy(uParam2[10 /*16*/], "anim@mp_player_intcelebrationmale@thumb_on_ears", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_player_intcelebrationfemale@thumb_on_ears", 64);
					StringCopy(&(uParam2->f_257), "thumb_on_ears", 64);
					uParam2->f_373 = 1;
					uParam2->f_374 = 1;
					uParam2->f_375 = 1;
					break;
			}
			break;
		
		case 3:
			switch (iParam1)
			{
				case 0:
					StringCopy(uParam2[0 /*16*/], "mp_player_int_upper_nod", 64);
					StringCopy(&(uParam2->f_225), "mp_player_int_nod_no", 64);
					uParam2->f_373 = 0;
					uParam2->f_369 = 0;
					uParam2->f_436 = 2;
					StringCopy(uParam2[12 /*16*/], "mp_player_int_upper_nod", 64);
					break;
				
				case 1:
					StringCopy(uParam2[0 /*16*/], "amb@code_human_in_car_mp_actions@nod@low@ds@base", 64);
					StringCopy(&(uParam2->f_225), "nod_no", 64);
					uParam2->f_373 = 0;
					uParam2->f_369 = 0;
					uParam2->f_436 = 1;
					break;
				
				case 2:
					StringCopy(uParam2[0 /*16*/], "amb@code_human_in_car_mp_actions@nod@std@ds@base", 64);
					StringCopy(&(uParam2->f_225), "nod_no", 64);
					uParam2->f_373 = 0;
					uParam2->f_369 = 0;
					uParam2->f_436 = 1;
					break;
				
				case 3:
					StringCopy(uParam2[10 /*16*/], "anim@mp_freemode_return@m@idle", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_freemode_return@f@idle", 64);
					StringCopy(&(uParam2->f_257), "idle_a", 64);
					break;
				
				case 4:
					StringCopy(uParam2[10 /*16*/], "anim@mp_freemode_return@m@idle", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_freemode_return@f@idle", 64);
					StringCopy(&(uParam2->f_257), "idle_b", 64);
					break;
				
				case 5:
					StringCopy(uParam2[10 /*16*/], "anim@mp_freemode_return@m@idle", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_freemode_return@f@idle", 64);
					StringCopy(&(uParam2->f_257), "idle_c", 64);
					uParam2->f_370 = 1;
					uParam2->f_371 = 1;
					uParam2->f_376 = joaat("prop_npc_phone");
					break;
				
				case 6:
					StringCopy(uParam2[10 /*16*/], "anim@mp_freemode_return@m@fail", 64);
					StringCopy(uParam2[11 /*16*/], "anim@mp_freemode_return@f@fail", 64);
					StringCopy(&(uParam2->f_257), "fail_a", 64);
					break;
				
				case 7:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_a", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_a", 64);
					StringCopy(&(uParam2->f_257), "respawn_a_ped_a", 64);
					break;
				
				case 8:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_a", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_a", 64);
					StringCopy(&(uParam2->f_257), "respawn_a_ped_b_smoke", 64);
					uParam2->f_370 = 1;
					uParam2->f_372 = 1;
					uParam2->f_376 = joaat("prop_cs_ciggy_01");
					uParam2->f_378 = 1;
					StringCopy(&(uParam2->f_379), "ent_anim_cig_smoke", 64);
					uParam2->f_395 = { -0.08f, 0f, 0f };
					uParam2->f_398 = { 0f, 0f, 0f };
					uParam2->f_401 = 1;
					StringCopy(&(uParam2->f_402), "ent_anim_cig_exhale_mth", 64);
					uParam2->f_418 = 1;
					StringCopy(&(uParam2->f_419), "ent_anim_cig_exhale_nse", 64);
					break;
				
				case 9:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_a", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_a", 64);
					StringCopy(&(uParam2->f_257), "respawn_a_ped_c", 64);
					break;
				
				case 10:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_a", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_a", 64);
					StringCopy(&(uParam2->f_257), "respawn_a_ped_d_smoke", 64);
					uParam2->f_370 = 1;
					uParam2->f_372 = 1;
					uParam2->f_376 = joaat("prop_cs_ciggy_01");
					uParam2->f_378 = 1;
					StringCopy(&(uParam2->f_379), "ent_anim_cig_smoke", 64);
					uParam2->f_395 = { -0.08f, 0f, 0f };
					uParam2->f_398 = { 0f, 0f, 0f };
					uParam2->f_401 = 1;
					StringCopy(&(uParam2->f_402), "ent_anim_cig_exhale_mth", 64);
					uParam2->f_418 = 1;
					StringCopy(&(uParam2->f_419), "ent_anim_cig_exhale_nse", 64);
					break;
				
				case 11:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_b", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_b", 64);
					StringCopy(&(uParam2->f_257), "respawn_b_ped_a", 64);
					break;
				
				case 12:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_b", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_b", 64);
					StringCopy(&(uParam2->f_257), "respawn_b_ped_b_smoke", 64);
					uParam2->f_370 = 1;
					uParam2->f_372 = 1;
					uParam2->f_376 = joaat("prop_cs_ciggy_01");
					uParam2->f_378 = 1;
					StringCopy(&(uParam2->f_379), "ent_anim_cig_smoke", 64);
					uParam2->f_395 = { -0.08f, 0f, 0f };
					uParam2->f_398 = { 0f, 0f, 0f };
					uParam2->f_401 = 1;
					StringCopy(&(uParam2->f_402), "ent_anim_cig_exhale_mth", 64);
					uParam2->f_418 = 1;
					StringCopy(&(uParam2->f_419), "ent_anim_cig_exhale_nse", 64);
					break;
				
				case 13:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_b", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_b", 64);
					StringCopy(&(uParam2->f_257), "respawn_b_ped_c", 64);
					break;
				
				case 14:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_b", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_b", 64);
					StringCopy(&(uParam2->f_257), "respawn_b_ped_d_smoke", 64);
					uParam2->f_370 = 1;
					uParam2->f_372 = 1;
					uParam2->f_376 = joaat("prop_cs_ciggy_01");
					uParam2->f_378 = 1;
					StringCopy(&(uParam2->f_379), "ent_anim_cig_smoke", 64);
					uParam2->f_395 = { -0.08f, 0f, 0f };
					uParam2->f_398 = { 0f, 0f, 0f };
					uParam2->f_401 = 1;
					StringCopy(&(uParam2->f_402), "ent_anim_cig_exhale_mth", 64);
					uParam2->f_418 = 1;
					StringCopy(&(uParam2->f_419), "ent_anim_cig_exhale_nse", 64);
					break;
				
				case 15:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_c", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_c", 64);
					StringCopy(&(uParam2->f_257), "respawn_c_ped_a", 64);
					break;
				
				case 16:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_c", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_c", 64);
					StringCopy(&(uParam2->f_257), "respawn_c_ped_b", 64);
					uParam2->f_370 = 1;
					uParam2->f_371 = 1;
					uParam2->f_376 = joaat("prop_npc_phone");
					break;
				
				case 17:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_c", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_c", 64);
					StringCopy(&(uParam2->f_257), "respawn_c_ped_c", 64);
					break;
				
				case 18:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_c", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_c", 64);
					StringCopy(&(uParam2->f_257), "respawn_c_ped_d", 64);
					uParam2->f_370 = 1;
					uParam2->f_372 = 1;
					uParam2->f_376 = joaat("prop_cs_ciggy_01");
					uParam2->f_378 = 1;
					StringCopy(&(uParam2->f_379), "ent_anim_cig_smoke", 64);
					uParam2->f_395 = { -0.08f, 0f, 0f };
					uParam2->f_398 = { 0f, 0f, 0f };
					uParam2->f_401 = 1;
					StringCopy(&(uParam2->f_402), "ent_anim_cig_exhale_mth", 64);
					uParam2->f_418 = 1;
					StringCopy(&(uParam2->f_419), "ent_anim_cig_exhale_nse", 64);
					break;
				
				case 19:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_d", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_d", 64);
					StringCopy(&(uParam2->f_257), "respawn_d_ped_a", 64);
					uParam2->f_370 = 1;
					uParam2->f_372 = 1;
					uParam2->f_376 = joaat("prop_cs_ciggy_01");
					uParam2->f_378 = 1;
					StringCopy(&(uParam2->f_379), "ent_anim_cig_smoke", 64);
					uParam2->f_395 = { -0.08f, 0f, 0f };
					uParam2->f_398 = { 0f, 0f, 0f };
					uParam2->f_401 = 1;
					StringCopy(&(uParam2->f_402), "ent_anim_cig_exhale_mth", 64);
					uParam2->f_418 = 1;
					StringCopy(&(uParam2->f_419), "ent_anim_cig_exhale_nse", 64);
					break;
				
				case 20:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_d", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_d", 64);
					StringCopy(&(uParam2->f_257), "respawn_d_ped_b", 64);
					break;
				
				case 21:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_d", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_d", 64);
					StringCopy(&(uParam2->f_257), "respawn_d_ped_c", 64);
					uParam2->f_370 = 1;
					uParam2->f_372 = 1;
					uParam2->f_376 = joaat("prop_cs_ciggy_01");
					uParam2->f_378 = 1;
					StringCopy(&(uParam2->f_379), "ent_anim_cig_smoke", 64);
					uParam2->f_395 = { -0.08f, 0f, 0f };
					uParam2->f_398 = { 0f, 0f, 0f };
					uParam2->f_401 = 1;
					StringCopy(&(uParam2->f_402), "ent_anim_cig_exhale_mth", 64);
					uParam2->f_418 = 1;
					StringCopy(&(uParam2->f_419), "ent_anim_cig_exhale_nse", 64);
					break;
				
				case 22:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_d", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_d", 64);
					StringCopy(&(uParam2->f_257), "respawn_d_ped_d", 64);
					uParam2->f_370 = 1;
					uParam2->f_372 = 1;
					uParam2->f_376 = joaat("prop_cs_ciggy_01");
					uParam2->f_378 = 1;
					StringCopy(&(uParam2->f_379), "ent_anim_cig_smoke", 64);
					uParam2->f_395 = { -0.08f, 0f, 0f };
					uParam2->f_398 = { 0f, 0f, 0f };
					uParam2->f_401 = 1;
					StringCopy(&(uParam2->f_402), "ent_anim_cig_exhale_mth", 64);
					uParam2->f_418 = 1;
					StringCopy(&(uParam2->f_419), "ent_anim_cig_exhale_nse", 64);
					break;
				
				case 23:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_e", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_e", 64);
					StringCopy(&(uParam2->f_257), "respawn_e_ped_a", 64);
					break;
				
				case 24:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_e", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_e", 64);
					StringCopy(&(uParam2->f_257), "respawn_e_ped_b", 64);
					break;
				
				case 25:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_e", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_e", 64);
					StringCopy(&(uParam2->f_257), "respawn_e_ped_c", 64);
					uParam2->f_370 = 1;
					uParam2->f_372 = 1;
					uParam2->f_376 = joaat("prop_cs_ciggy_01");
					uParam2->f_378 = 1;
					StringCopy(&(uParam2->f_379), "ent_anim_cig_smoke", 64);
					uParam2->f_395 = { -0.08f, 0f, 0f };
					uParam2->f_398 = { 0f, 0f, 0f };
					uParam2->f_401 = 1;
					StringCopy(&(uParam2->f_402), "ent_anim_cig_exhale_mth", 64);
					uParam2->f_418 = 1;
					StringCopy(&(uParam2->f_419), "ent_anim_cig_exhale_nse", 64);
					break;
				
				case 26:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_e", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_e", 64);
					StringCopy(&(uParam2->f_257), "respawn_e_ped_d", 64);
					uParam2->f_370 = 1;
					uParam2->f_371 = 1;
					uParam2->f_376 = joaat("prop_npc_phone");
					break;
				
				case 27:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_f", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_f", 64);
					StringCopy(&(uParam2->f_257), "respawn_f_ped_a", 64);
					break;
				
				case 28:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_f", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_f", 64);
					StringCopy(&(uParam2->f_257), "respawn_f_ped_b", 64);
					break;
				
				case 29:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_f", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_f", 64);
					StringCopy(&(uParam2->f_257), "respawn_f_ped_c", 64);
					uParam2->f_370 = 1;
					uParam2->f_372 = 1;
					uParam2->f_376 = joaat("prop_cs_ciggy_01");
					uParam2->f_378 = 1;
					StringCopy(&(uParam2->f_379), "ent_anim_cig_smoke", 64);
					uParam2->f_395 = { -0.08f, 0f, 0f };
					uParam2->f_398 = { 0f, 0f, 0f };
					uParam2->f_401 = 1;
					StringCopy(&(uParam2->f_402), "ent_anim_cig_exhale_mth", 64);
					uParam2->f_418 = 1;
					StringCopy(&(uParam2->f_419), "ent_anim_cig_exhale_nse", 64);
					break;
				
				case 30:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_f", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_f", 64);
					StringCopy(&(uParam2->f_257), "respawn_f_ped_d", 64);
					uParam2->f_370 = 1;
					uParam2->f_371 = 1;
					uParam2->f_376 = joaat("prop_npc_phone");
					break;
				
				case 31:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_g", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_g", 64);
					StringCopy(&(uParam2->f_257), "respawn_g_ped_a", 64);
					uParam2->f_370 = 1;
					uParam2->f_376 = joaat("prop_ecola_can");
					break;
				
				case 32:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_g", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_g", 64);
					StringCopy(&(uParam2->f_257), "respawn_g_ped_b", 64);
					break;
				
				case 33:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_g", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_g", 64);
					StringCopy(&(uParam2->f_257), "respawn_g_ped_c", 64);
					uParam2->f_370 = 1;
					uParam2->f_372 = 1;
					uParam2->f_376 = joaat("prop_cs_ciggy_01");
					uParam2->f_378 = 1;
					StringCopy(&(uParam2->f_379), "ent_anim_cig_smoke", 64);
					uParam2->f_395 = { -0.08f, 0f, 0f };
					uParam2->f_398 = { 0f, 0f, 0f };
					uParam2->f_401 = 1;
					StringCopy(&(uParam2->f_402), "ent_anim_cig_exhale_mth", 64);
					uParam2->f_418 = 1;
					StringCopy(&(uParam2->f_419), "ent_anim_cig_exhale_nse", 64);
					break;
				
				case 34:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@variations@variation_g", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@variations@variation_g", 64);
					StringCopy(&(uParam2->f_257), "respawn_g_ped_d", 64);
					break;
				
				case 35:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@pacific", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@pacific", 64);
					StringCopy(&(uParam2->f_257), "post_pacific_standard_respawn_ped_a", 64);
					break;
				
				case 36:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@pacific", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@pacific", 64);
					StringCopy(&(uParam2->f_257), "post_pacific_standard_respawn_ped_b", 64);
					break;
				
				case 37:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@pacific", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@pacific", 64);
					StringCopy(&(uParam2->f_257), "post_pacific_standard_respawn_ped_c", 64);
					break;
				
				case 38:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@pacific", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@pacific", 64);
					StringCopy(&(uParam2->f_257), "post_pacific_standard_respawn_ped_d", 64);
					break;
				
				case 39:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@fleeca", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@fleeca", 64);
					StringCopy(&(uParam2->f_257), "post_fleeca_finale_respawn_ped_a", 64);
					break;
				
				case 40:
					StringCopy(uParam2[10 /*16*/], "anim@heists@team_respawn@fleeca", 64);
					StringCopy(uParam2[11 /*16*/], "anim@heists@team_respawn@fleeca", 64);
					StringCopy(&(uParam2->f_257), "post_fleeca_finale_respawn_ped_b", 64);
					break;
			}
			break;
	}
}

void func_347(var uParam0)//Position - 0x1D186
{
	switch (*uParam0)
	{
		case 0:
			if (uParam0->f_1 >= func_349())
			{
				uParam0->f_1 = (func_349() - 1);
			}
			break;
		
		case 1:
			if (uParam0->f_1 >= 4)
			{
				uParam0->f_1 = (4 - 1);
			}
			break;
		
		case 2:
			if (uParam0->f_1 >= func_348())
			{
				uParam0->f_1 = (func_348() - 1);
			}
			break;
	}
}

int func_348()//Position - 0x1D1EA
{
	return 35;
}

int func_349()//Position - 0x1D1F4
{
	return 31;
}

bool func_350(var uParam0, int iParam1)//Position - 0x1D1FE
{
	if (*uParam0 == 3)
	{
		return true;
	}
	else if (*uParam0 == 0)
	{
		if (ped::is_ped_in_any_vehicle(iParam1, 0))
		{
			return true;
		}
	}
	else if (!ped::is_ped_in_any_vehicle(iParam1, 0))
	{
		return true;
	}
	return false;
}

void func_351(var uParam0)//Position - 0x1D23C
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = func_300(func_301(2, 34), -1, 0);
	iVar1 = func_300(func_301(2, 33), -1, 0);
	iVar2 = func_300(func_301(2, 32), -1, 0);
	if (iVar0 > 0)
	{
		uParam0->f_1 = 34;
	}
	else if (iVar1 > 0)
	{
		uParam0->f_1 = 33;
	}
	else if (iVar2 > 0)
	{
		uParam0->f_1 = 32;
	}
}

bool func_352(var uParam0)//Position - 0x1D29B
{
	if (*uParam0 == 2)
	{
		if ((uParam0->f_1 == 32 || uParam0->f_1 == 33) || uParam0->f_1 == 34)
		{
			return true;
		}
	}
	return false;
}

bool func_353(int iParam0)//Position - 0x1D2D3
{
	if ((!ped::get_ped_stealth_movement(iParam0) && !ped::is_ped_ducking(iParam0)) && ped::get_ped_combat_movement(iParam0) == 0)
	{
		return true;
	}
	return false;
}

void func_354()//Position - 0x1D303
{
	vector3 vVar0;
	
	if (func_80() == 5 && !entity::is_entity_dead(player::player_ped_id(), 0))
	{
		if (func_63(entity::get_entity_model(player::player_ped_id())))
		{
			if (cam::is_screen_faded_in() && func_355(&iLocal_9680))
			{
				if (!ped::is_ped_injured(player::player_ped_id()))
				{
					entity::set_entity_health(player::player_ped_id(), 0);
				}
			}
		}
		else
		{
			vVar0 = { entity::get_entity_coords(player::player_ped_id(), 1) };
			if ((vVar0.y < -170f && entity::is_entity_in_water(player::player_ped_id())) && gameplay::get_game_timer() > iLocal_9680)
			{
				entity::set_entity_health(player::player_ped_id(), (entity::get_entity_health(player::player_ped_id()) - 15));
				controls::set_pad_shake(0, 100, 100);
				iLocal_9680 = gameplay::get_game_timer() + 1000;
			}
		}
	}
}

bool func_355(int iParam0)//Position - 0x1D3B6
{
	if (!entity::is_entity_dead(player::player_ped_id(), 0))
	{
		if (func_358(iParam0))
		{
			return true;
		}
		if (func_356())
		{
			return true;
		}
	}
	return false;
}

bool func_356()//Position - 0x1D3E4
{
	if (!entity::is_entity_dead(player::player_ped_id(), 0))
	{
		if (!entity::is_entity_in_water(player::player_ped_id()))
		{
			if (func_357(0))
			{
				if (Global_25308 == -1)
				{
					Global_25308 = gameplay::get_game_timer() + 3000;
				}
				else if (gameplay::get_game_timer() > Global_25308)
				{
					return true;
				}
			}
		}
		else
		{
			Global_25308 = -1;
		}
	}
	return false;
}

int func_357(int iParam0)//Position - 0x1D437
{
	switch (func_95())
	{
		case -1950698411:
		case joaat("a_c_fish"):
		case -1920284487:
		case 1015224100:
		case joaat("a_c_sharktiger"):
		case -1589092019:
			return 1;
		
		case joaat("ig_orleans"):
			return iParam0;
			break;
	}
	return 0;
}

bool func_358(var uParam0)//Position - 0x1D47F
{
	float fVar0;
	vector3 vVar1;
	float fVar4;
	vector3 vVar5;
	int iVar8;
	
	if (!entity::is_entity_dead(player::player_ped_id(), 0))
	{
		if (entity::is_entity_in_water(player::player_ped_id()))
		{
			if (!func_357(1))
			{
				vVar1 = { ped::get_ped_bone_coords(player::player_ped_id(), 31086, 0f, 0f, 0f) };
				vVar1.z = (vVar1.y + 0.75f);
				if (water::test_vertical_probe_against_all_water(vVar1, 208, &fVar0) == 1)
				{
					fVar4 = -0.32f;
					if (func_95() == joaat("a_c_hen"))
					{
						fVar4 = -0.24f;
					}
					if (((vVar1.y - fVar0) - 0.75f) < fVar4)
					{
						return true;
					}
				}
			}
			vVar5 = { entity::get_entity_coords(player::player_ped_id(), 1) };
			if (vVar5.y <= -150f)
			{
				if (func_95() == joaat("ig_orleans"))
				{
					iVar8 = entity::get_entity_health(player::player_ped_id());
					if (iVar8 < 500)
					{
						return true;
					}
					else if (gameplay::get_game_timer() > *uParam0 + 2000)
					{
						entity::set_entity_health(player::player_ped_id(), (iVar8 - 500));
						*uParam0 = gameplay::get_game_timer();
					}
				}
			}
		}
		if (system::vdist2(entity::get_entity_coords(player::player_ped_id(), 1), -1031.02f, -399.0387f, 37.4325f) < 40f)
		{
			if (entity::is_entity_in_angled_area(player::player_ped_id(), -1027.634f, -397.8321f, 38.1158f, -1026.092f, -397.068f, 37.5389f, 1.5f, 0, true, 0))
			{
				return true;
			}
			if (entity::is_entity_in_angled_area(player::player_ped_id(), -1033.187f, -400.7195f, 38.1248f, -1034.797f, -401.579f, 37.6024f, 1.5f, 0, true, 0))
			{
				return true;
			}
		}
	}
	return false;
}

void func_359()//Position - 0x1D5FA
{
	int iVar0;
	int iVar1;
	vector3 vVar2;
	vector3 vVar5;
	
	if (iLocal_6555 == 5)
	{
		if (iLocal_9725)
		{
			if (((!gameplay::is_bit_set(iLocal_9771, 4) && !gameplay::is_bit_set(iLocal_9771, 7)) && !gameplay::is_bit_set(iLocal_9771, 14)) && !gameplay::is_bit_set(iLocal_9771, 5))
			{
				if (gameplay::is_bit_set(iLocal_9771, 8))
				{
					func_377();
				}
				else if (iLocal_7921 > 1 && !func_376())
				{
					func_372();
				}
			}
		}
		if (iLocal_9724)
		{
			if (func_96(3))
			{
				if (iLocal_9729)
				{
					func_371(1);
				}
				else
				{
					func_371(0);
				}
			}
		}
		else if (iLocal_7717)
		{
			iVar0 = (0 + iLocal_7676[2]);
			func_284(2, iVar0, 0, 1, 0, 0, 0, 0);
			iLocal_7717 = 0;
		}
		if (iLocal_9718)
		{
			if (func_96(1) && Local_5662.f_90 == 4)
			{
				func_370(7, 0);
			}
			else
			{
				iLocal_9718 = 0;
			}
		}
		if (iLocal_9726)
		{
			if (func_96(5))
			{
				iVar1 = iLocal_9639[iLocal_7676[1]];
				if (iVar1 >= 0)
				{
					audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
					func_369(iVar1, 0);
					if (func_368())
					{
						if (!func_367(67))
						{
							iLocal_9814 = 1;
						}
					}
					func_364(iVar1);
				}
			}
		}
		if (iLocal_9727)
		{
			if (func_96(4))
			{
				if (iLocal_9639[iLocal_7676[1]] == 0 || iLocal_9639[iLocal_7676[1]] == 1)
				{
					audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
					Local_9128[iLocal_9639[iLocal_7676[1]] /*17*/] = { ped::get_ped_bone_coords(player::player_ped_id(), 2108, 0f, 0f, 0f) + ped::get_ped_bone_coords(player::player_ped_id(), 20781, 0f, 0f, 0f) / Vector(2f, 2f, 2f) };
					Local_9128[iLocal_9639[iLocal_7676[1]] /*17*/].f_3 = entity::get_entity_heading(player::player_ped_id());
					Local_9128[iLocal_9639[iLocal_7676[1]] /*17*/].f_4 = cam::get_gameplay_cam_relative_pitch();
					Local_9128[iLocal_9639[iLocal_7676[1]] /*17*/].f_5 = cam::get_gameplay_cam_relative_heading();
					if (interior::get_interior_at_coords(Local_9128[iLocal_7676[1] /*17*/]) != 0)
					{
						Local_9128[iLocal_9639[iLocal_7676[1]] /*17*/].f_11 = 1;
					}
					else
					{
						Local_9128[iLocal_9639[iLocal_7676[1]] /*17*/].f_11 = 0;
					}
					func_170(-1);
					func_100();
				}
			}
		}
		if (iLocal_9733)
		{
			vVar2 = { Local_9128[iLocal_9639[iLocal_7676[1]] /*17*/] };
			vVar5 = { func_119(player::player_id()) };
			if (((func_96(5) && !func_87(Local_9128[iLocal_9639[iLocal_7676[1]] /*17*/])) && iLocal_9639[iLocal_7676[1]] != 29) && system::vdist2(vVar2, vVar5) > (50f * 50f))
			{
				audio::play_sound_frontend(-1, "WAYPOINT_SET", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
				ui::set_new_waypoint(Local_9128[iLocal_9639[iLocal_7676[1]] /*17*/], Local_9128[iLocal_9639[iLocal_7676[1]] /*17*/].f_1);
				iLocal_9737 = iLocal_7676[1];
				func_363();
			}
			iLocal_9733 = 0;
		}
		else if (iLocal_9734)
		{
			func_362();
			iLocal_5757 = 1;
			iLocal_9734 = 0;
		}
		func_361();
		func_360();
	}
}

void func_360()//Position - 0x1D908
{
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		if (!func_62(0))
		{
			controls::disable_control_action(0, 47, 1);
			controls::disable_control_action(0, 37, 1);
			controls::disable_control_action(0, 45, 1);
			controls::disable_control_action(0, 25, 1);
			controls::disable_control_action(0, 50, 1);
			controls::disable_control_action(0, 58, 1);
			controls::disable_control_action(0, 262, 1);
			controls::disable_control_action(0, 261, 1);
			controls::disable_control_action(0, 53, 1);
			controls::disable_control_action(0, 54, 1);
			controls::disable_control_action(0, 56, 1);
			controls::disable_control_action(0, 57, 1);
		}
	}
}

void func_361()//Position - 0x1D987
{
	if (!func_98(player::player_ped_id()))
	{
		controls::disable_control_action(0, 23, 1);
	}
}

void func_362()//Position - 0x1D9A3
{
	ui::set_waypoint_off();
	iLocal_9737 = -1;
}

void func_363()//Position - 0x1D9B3
{
	iLocal_5757 = 1;
}

void func_364(int iParam0)//Position - 0x1D9BF
{
	if (!func_87(Local_9128[iParam0 /*17*/]))
	{
		func_370(6, 0);
		func_94(1);
		func_172();
		iLocal_7596 = 0;
		iLocal_7597 = 0;
		func_365(1, -1);
		iLocal_9127 = iParam0;
	}
}

void func_365(int iParam0, int iParam1)//Position - 0x1D9FA
{
	var uVar0;
	
	if (!func_171(&uVar0, 0, iParam1))
	{
		return;
	}
	if (Global_17257.f_7894)
	{
		ui::reset_hud_component_values(15);
		Global_17257.f_7894 = 0;
	}
	ui::_0x55598D21339CB998(0f);
	if (Global_17257.f_5498[uVar0])
	{
		ui::clear_additional_text(9, false);
		Global_17257.f_5498[uVar0] = 0;
	}
	if (Global_17257.f_5484[uVar0])
	{
		graphics::set_streamed_texture_dict_as_no_longer_needed("CommonMenu");
		Global_17257.f_5484[uVar0] = 0;
	}
	if (Global_17257.f_5491[uVar0])
	{
		graphics::set_streamed_texture_dict_as_no_longer_needed("MPShopSale");
		Global_17257.f_5491[uVar0] = 0;
	}
	if (iParam0)
	{
		func_366(&(Global_17257.f_5530[uVar0 /*10*/]));
		Global_17257.f_5591[uVar0] = 0;
	}
	else
	{
		Global_17257.f_5591[uVar0] = 0;
	}
}

void func_366(int iParam0)//Position - 0x1DAB8
{
	if (iParam0->f_9 != 0)
	{
		if (graphics::has_scaleform_movie_loaded(*iParam0))
		{
			graphics::set_scaleform_movie_as_no_longer_needed(iParam0);
		}
		*iParam0 = 0;
		iParam0->f_9 = 0;
	}
}

int func_367(int iParam0)//Position - 0x1DAE1
{
	return player::has_achievement_been_passed(iParam0);
}

bool func_368()//Position - 0x1DAEF
{
	if (Global_101186.f_31035.f_4 == Global_100139)
	{
		return true;
	}
	return false;
}

void func_369(int iParam0, int iParam1)//Position - 0x1DB0F
{
	if (!func_89(iParam0))
	{
		gameplay::set_bit(&(Global_101186.f_31035.f_4), iParam0);
		if (!iParam1)
		{
		}
	}
}

void func_370(int iParam0, int iParam1)//Position - 0x1DB36
{
	if (iParam1)
	{
		iLocal_6557 = iLocal_6555;
	}
	iLocal_6555 = iParam0;
}

void func_371(int iParam0)//Position - 0x1DB4E
{
	int iVar0;
	
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		if (!audio::is_ambient_speech_playing(player::player_ped_id()))
		{
			iLocal_7717 = 1;
			iVar0 = (0 + iLocal_7676[2]);
			func_284(2, iVar0, 1, 1, iParam0, 0, 0, 0);
		}
	}
}

void func_372()//Position - 0x1DB8A
{
	if (iLocal_5754 == 3)
	{
		return;
	}
	if (!gameplay::is_string_null_or_empty(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/])))
	{
		if ((func_375() || func_178()) || player::is_player_free_aiming(player::player_id()))
		{
			iLocal_7700 = 1;
			ped::set_ped_can_play_gesture_anims(player::player_ped_id(), 0);
		}
		else
		{
			iLocal_7700 = 0;
			ped::set_ped_can_play_gesture_anims(player::player_ped_id(), 1);
		}
		func_373(player::player_ped_id(), &(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), 6);
	}
}

void func_373(int iParam0, char* sParam1, int iParam2)//Position - 0x1DC0C
{
	audio::_play_ambient_speech1(iParam0, sParam1, func_374(iParam2), 1);
}

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

bool func_375()//Position - 0x1DE18
{
	switch (entity::get_entity_model(player::player_ped_id()))
	{
		case joaat("s_m_y_hwaycop_01"):
		case joaat("a_f_m_trampbeac_01"):
		case joaat("a_m_m_skidrow_01"):
		case joaat("a_f_m_skidrow_01"):
		case joaat("s_m_y_chef_01"):
		case joaat("a_f_y_runner_01"):
		case joaat("a_m_y_yoga_01"):
			if (gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_SHOCKED_MED"))
			{
				return true;
			}
			break;
		
		case joaat("a_m_y_stwhi_01"):
		case joaat("a_f_m_tramp_01"):
			if (gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_INSULT_MED"))
			{
				return true;
			}
			break;
		
		case joaat("a_m_y_epsilon_02"):
		case joaat("u_m_y_imporage"):
		case joaat("u_m_y_militarybum"):
			if (gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_INSULT_HIGH"))
			{
				return true;
			}
			break;
		
		case joaat("u_m_o_finguru_01"):
			if (gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_INSULT_HIGH") || gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_INSULT_MED"))
			{
				return true;
			}
			break;
		
		case joaat("a_m_o_tramp_01"):
		case joaat("s_m_y_prisoner_01"):
		case joaat("g_m_y_lost_01"):
		case joaat("a_m_y_motox_02"):
		case joaat("a_m_y_vinewood_03"):
			if (gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_FRIGHTENED_MED"))
			{
				return true;
			}
			break;
		
		case joaat("player_one"):
		case joaat("ig_wade"):
		case joaat("ig_lamardavis"):
			if (gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_FRIGHTENED_HIGH"))
			{
				return true;
			}
			break;
		
		case joaat("u_f_o_moviestar"):
			if (gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_WHATEVER"))
			{
				return true;
			}
			break;
		
		case joaat("s_m_m_postal_01"):
		case joaat("s_m_m_ups_02"):
			if (gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_NO"))
			{
				return true;
			}
			break;
		
		case joaat("a_m_m_tramp_01"):
			if (gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_FRIGHTENED_MED") || gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_SHOCKED_MED"))
			{
				return true;
			}
			break;
		
		case joaat("ig_maude"):
			if (gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_SHOCKED_MED") || gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_INSULT_HIGH"))
			{
				return true;
			}
			break;
		
		case joaat("a_m_y_beach_01"):
			if (gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_SHOCKED_MED") || gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_CURSE_MED"))
			{
				return true;
			}
			break;
		
		case joaat("a_m_y_beach_02"):
		case joaat("a_m_y_runner_02"):
			if (!gameplay::is_pc_version())
			{
				if (((((gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_HI") || gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_THANKS")) || gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_INSULT_MED")) || gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_CURSE_MED")) || gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_SHOCKED_HIGH")) || gameplay::are_strings_equal(&(Local_7757[iLocal_7902[iLocal_7676[3]] /*8*/]), "GENERIC_SHOCKED_MED"))
				{
					return true;
				}
			}
			break;
	}
	return false;
}

bool func_376()//Position - 0x1E18A
{
	if (script::_get_number_of_instances_of_streamed_script(joaat("appcamera")) > 0)
	{
		return true;
	}
	return false;
}

void func_377()//Position - 0x1E1A7
{
	func_378(&Local_6811, &(Local_6811.f_16), &(Local_6811.f_65), iLocal_5659, &(Local_6811.f_64), &(Local_6811.f_20.f_28));
}

void func_378(char* sParam0, char* sParam1, var uParam2, int iParam3, var uParam4, char* sParam5)//Position - 0x1E1CF
{
	if ((((!func_379() && !audio::_0xC265DF9FB44A9FBD(player::player_ped_id())) && (gameplay::is_string_null_or_empty(sParam0) || !entity::is_entity_playing_anim(player::player_ped_id(), sParam0, sParam1, 3))) && gameplay::get_game_timer() > *uParam2) && !ped::is_ped_injured(player::player_ped_id()))
	{
		audio::stop_ped_speaking(player::player_ped_id(), 0);
		switch (entity::get_entity_model(player::player_ped_id()))
		{
			case joaat("a_c_fish"):
			case 1015224100:
			case joaat("a_c_sharktiger"):
			case -1589092019:
				switch (iParam3)
				{
					case 0:
						audio::_0xED640017ED337E45("DROWNING", "WAVELOAD_PAIN_MICHAEL", 0f, 0f, 0f, "SPEECH_PARAMS_FORCE_FRONTEND");
						break;
					
					case 1:
						audio::_0xED640017ED337E45("DROWNING", "WAVELOAD_PAIN_FRANKLIN", 0f, 0f, 0f, "SPEECH_PARAMS_FORCE_FRONTEND");
						break;
					
					case 2:
						audio::_0xED640017ED337E45("DROWNING", "WAVELOAD_PAIN_TREVOR", 0f, 0f, 0f, "SPEECH_PARAMS_FORCE_FRONTEND");
						break;
					
					default:
						audio::_0xED640017ED337E45("DROWNING", "WAVELOAD_PAIN_MICHAEL", 0f, 0f, 0f, "SPEECH_PARAMS_FORCE_FRONTEND");
						break;
				}
				break;
			
			case joaat("ig_orleans"):
				if (*uParam4 == -1)
				{
					*uParam4 = audio::get_sound_id();
				}
				audio::play_sound_from_entity(*uParam4, sParam5, player::player_ped_id(), 0, 0, 0);
				break;
			
			default:
				if (!gameplay::is_string_null_or_empty(sParam5))
				{
					audio::_0xEE066C7006C49C0A(player::player_ped_id(), -1, sParam5);
				}
				break;
		}
		audio::stop_ped_speaking(player::player_ped_id(), 1);
		if (!gameplay::is_string_null_or_empty(sParam0))
		{
			ai::task_play_anim(player::player_ped_id(), sParam0, sParam1, 8f, -4f, -1, 32, 0f, 0, 0, 0);
			*uParam2 = gameplay::get_game_timer() + 500;
		}
	}
}

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

void func_380()//Position - 0x1E364
{
	struct<8> Var0;
	
	if (unk1::_is_recording())
	{
		if (!iLocal_9817)
		{
			iLocal_9817 = 1;
			Var0 = gameplay::get_hash_key(func_153(iLocal_6806));
			Var0.f_1 = iLocal_7520[0];
			if (iLocal_7520[2] > 0)
			{
				Var0.f_3 = 1;
			}
			else
			{
				Var0.f_3 = 0;
			}
			Var0.f_4 = iLocal_7520[3];
			Var0.f_5 = iLocal_7520[4];
			if (iLocal_7520[5] == 0)
			{
				Var0.f_6 = 0;
			}
			else
			{
				Var0.f_6 = 1;
			}
			if (iLocal_7520[6] == 0)
			{
				Var0.f_7 = 0;
			}
			else
			{
				Var0.f_7 = 1;
			}
			stats::_0x46326E13DA4E0546(&Var0);
		}
	}
	else if (iLocal_9817)
	{
		iLocal_9817 = 0;
	}
}

void func_381()//Position - 0x1E401
{
	int iVar0;
	
	if (func_754())
	{
		func_753(0);
	}
	func_738();
	if (iLocal_6555 == 7)
	{
		if (Local_5662.f_90 == 4 && iLocal_7676[4] != iLocal_7716)
		{
			if (func_737() == 2)
			{
				iVar0 = func_106(iLocal_7676[4]);
				if (iVar0 >= 10)
				{
					iLocal_6564 = 8;
					iLocal_6561 = (iVar0 - 10);
				}
				else
				{
					iLocal_6564 = 7;
					iLocal_6561 = iVar0;
				}
				iLocal_7749 = player::player_ped_id();
				if (!iLocal_6877)
				{
					func_735(0);
					iLocal_6877 = 1;
				}
				streaming::request_model(Local_6878[iVar0 /*32*/].f_27);
				iLocal_7754 = Local_6878[iVar0 /*32*/].f_27;
				if (streaming::has_model_loaded(Local_6878[iVar0 /*32*/].f_27) && func_732(Local_6878[iVar0 /*32*/].f_27))
				{
					iLocal_7755 = iLocal_7754;
					vLocal_7704 = { func_728(entity::get_entity_coords(player::player_ped_id(), 1), 0, 1, 0, iLocal_7755) };
					fLocal_7707 = entity::get_entity_heading(player::player_ped_id());
					if (func_721(entity::get_entity_coords(player::player_ped_id(), 1), Local_6878[iVar0 /*32*/].f_27, vLocal_7704, fLocal_7707, &uLocal_7923, &uLocal_7924, 0, 0, 0))
					{
						iLocal_7716 = iLocal_7676[4];
						iLocal_7754 = Local_6878[iVar0 /*32*/].f_27;
						func_720();
						ped::set_enable_scuba(player::player_ped_id(), 0);
						ped::set_ped_max_time_underwater(player::player_ped_id(), -1f);
						ped::set_ped_dies_in_water(player::player_ped_id(), 1);
						if (Local_6878[iVar0 /*32*/] == 327)
						{
							func_689(Local_7925[0 /*401*/].f_399, vLocal_7704, 0, 0);
						}
						else if (Local_6878[iVar0 /*32*/] == 328)
						{
							func_689(Local_7925[1 /*401*/].f_399, vLocal_7704, 0, 1);
						}
						else
						{
							func_689(Local_6878[iVar0 /*32*/].f_27, vLocal_7704, 0, -1);
							func_672(iVar0);
						}
						entity::set_entity_heading(player::player_ped_id(), fLocal_7707);
						func_44();
						func_671();
						func_669();
						func_666();
						func_665();
						func_662(Local_6878[iVar0 /*32*/], 0, 1, 0);
						func_661();
						iLocal_6877 = 0;
						if (entity::does_entity_exist(iLocal_7749))
						{
							if (iLocal_7749 != player::player_ped_id())
							{
								if (!entity::is_entity_a_mission_entity(iLocal_7749))
								{
								}
								if (!entity::does_entity_belong_to_this_script(iLocal_7749, 0))
								{
									entity::set_entity_as_mission_entity(iLocal_7749, true, 1);
								}
								ped::delete_ped(&iLocal_7749);
							}
						}
					}
				}
			}
		}
		else
		{
			iLocal_9718 = 0;
		}
	}
	if (iLocal_6555 == 3 && ((iLocal_6564 > 32 || iLocal_6564 == 7) || iLocal_6564 == 8))
	{
		if ((iLocal_7753 && streaming::is_model_valid(iLocal_7754)) && streaming::has_model_loaded(iLocal_7754))
		{
			iLocal_7755 = iLocal_7754;
			func_720();
			iLocal_7519 = 0;
			if (!ped::is_ped_injured(player::player_ped_id()))
			{
				iLocal_7749 = player::player_ped_id();
				if (iLocal_6564 == 42)
				{
					if (Local_6565[iLocal_6561 /*5*/] == 327)
					{
						func_689(iLocal_7755, 0f, 0f, 0f, iLocal_7745, 0);
					}
					else if (Local_6565[iLocal_6561 /*5*/] == 328)
					{
						func_689(iLocal_7755, 0f, 0f, 0f, iLocal_7745, 1);
					}
				}
				else
				{
					func_689(iLocal_7755, 0f, 0f, 0f, iLocal_7745, -1);
					func_411(player::player_ped_id());
					func_399(player::player_ped_id());
					if (iLocal_6564 == 7 || iLocal_6564 == 8)
					{
						if (iLocal_6564 == 7)
						{
							func_672(iLocal_6561);
						}
						else
						{
							func_672(iLocal_6561 + 10);
						}
					}
				}
				if (iLocal_6564 != 7 && iLocal_6564 != 8)
				{
					func_396(iLocal_7755);
				}
				func_671();
				func_669();
				func_666();
				func_665();
				func_661();
				if (func_46(entity::get_entity_model(player::player_ped_id())))
				{
					player::_0xCAC57395B151135F(player::player_id(), 0);
				}
				else
				{
					player::_0xCAC57395B151135F(player::player_id(), 1);
				}
				if (entity::does_entity_exist(iLocal_7749) && !iLocal_7747)
				{
					if (iLocal_7749 != player::player_ped_id())
					{
						if (!entity::does_entity_belong_to_this_script(iLocal_7749, 0))
						{
							entity::set_entity_as_mission_entity(iLocal_7749, true, 1);
						}
						ped::delete_ped(&iLocal_7749);
					}
				}
			}
			func_382();
		}
		ui::display_hud(false);
		ui::display_radar(false);
	}
}

void func_382()//Position - 0x1E7B6
{
	func_170(-1);
	if (iLocal_6564 == 3)
	{
		if (Local_6565[iLocal_6561 /*5*/] == 7 && func_109(0) > 0)
		{
			func_120(iLocal_7659, "ITEM_SELECT", -1, 0);
		}
		if (Local_6565[iLocal_6561 /*5*/] == 8 && func_109(1) > 0)
		{
			func_120(iLocal_7659, "ITEM_SELECT", -1, 0);
		}
		if (Local_6565[iLocal_6561 /*5*/] != 7 && Local_6565[iLocal_6561 /*5*/] != 8)
		{
			func_120(iLocal_7659, "ITEM_SELECT", -1, 0);
		}
	}
	else if (iLocal_6564 == 5)
	{
		func_120(iLocal_7660, "ITEM_BACK", -1, 0);
		if (func_27(iLocal_6561))
		{
			func_118(5, "CM_CHNGSET", -1);
		}
	}
	else
	{
		if (((func_391(Local_6565[iLocal_6561 /*5*/]) && func_386(Local_6565[iLocal_6561 /*5*/])) && Local_6565[iLocal_6561 /*5*/] != 0) && Local_6565[iLocal_6561 /*5*/] != 1)
		{
			func_120(iLocal_7659, "ITEM_SELECT", -1, 0);
		}
		func_120(iLocal_7660, "ITEM_BACK", -1, 0);
		if ((iLocal_6564 != 7 && iLocal_6564 >= 32) || iLocal_6564 == 8)
		{
			if ((func_385(0) == -1 && Local_6565[iLocal_6561 /*5*/] > 32) && func_391(Local_6565[iLocal_6561 /*5*/]))
			{
				func_120(204, "CM_BOOK", -1, 0);
			}
			if (Local_6565[iLocal_6561 /*5*/] != 0 && func_384())
			{
				func_120(203, "CM_HLPR", -1, 0);
			}
		}
		else if (iLocal_6564 == 7 && func_109(0) > 0)
		{
			func_120(204, "CM_REMO", -1, 0);
		}
		if (iLocal_6564 == 4)
		{
		}
		else
		{
			if (Local_6565[iLocal_6561 /*5*/] == 1)
			{
				func_118(5, "CM_CHNGGEND", -1);
			}
			if ((iLocal_6564 == 7 && func_109(0) <= 1) || (iLocal_6564 == 8 && func_109(1) <= 1))
			{
			}
		}
	}
	func_120(func_383(), "CM_BUTLT", -1, 0);
}

int func_383()//Position - 0x1E9BC
{
	return 207;
}

bool func_384()//Position - 0x1E9C6
{
	if (iLocal_6564 < 32)
	{
		return false;
	}
	switch (Local_6565[iLocal_6561 /*5*/])
	{
		case 1:
		case 445:
		case 446:
		case 447:
		case 448:
		case 438:
		case 451:
		case 450:
		case 223:
		case 221:
		case 222:
		case 301:
		case 302:
		case 303:
		case 304:
		case 305:
		case 307:
		case 308:
		case 309:
		case 310:
		case 311:
		case 312:
		case 313:
		case 291:
		case 289:
		case 290:
		case 297:
		case 279:
		case 296:
		case 292:
		case 277:
		case 294:
		case 225:
		case 219:
		case 246:
		case 89:
		case 103:
		case 107:
		case 287:
		case 327:
		case 328:
		case 0:
			return false;
			break;
	}
	return true;
}

int func_385(int iParam0)//Position - 0x1EAEB
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (iParam0)
	{
		iVar1 = 10;
		iVar2 = 19;
	}
	else
	{
		iVar1 = 0;
		iVar2 = 9;
	}
	iVar0 = iVar1;
	while (iVar0 <= iVar2)
	{
		if (!ped::is_ped_injured(player::player_ped_id()))
		{
			if (entity::get_entity_model(player::player_ped_id()) == Local_6878[iVar0 /*32*/].f_27)
			{
				if (((((((((((((((((((((((Local_6878[iVar0 /*32*/].f_1[0] == ped::get_ped_drawable_variation(player::player_ped_id(), 0) && Local_6878[iVar0 /*32*/].f_1[1] == ped::get_ped_drawable_variation(player::player_ped_id(), 1)) && Local_6878[iVar0 /*32*/].f_1[2] == ped::get_ped_drawable_variation(player::player_ped_id(), 2)) && Local_6878[iVar0 /*32*/].f_1[3] == ped::get_ped_drawable_variation(player::player_ped_id(), 3)) && Local_6878[iVar0 /*32*/].f_1[4] == ped::get_ped_drawable_variation(player::player_ped_id(), 4)) && Local_6878[iVar0 /*32*/].f_1[5] == ped::get_ped_drawable_variation(player::player_ped_id(), 5)) && Local_6878[iVar0 /*32*/].f_1[6] == ped::get_ped_drawable_variation(player::player_ped_id(), 6)) && Local_6878[iVar0 /*32*/].f_1[7] == ped::get_ped_drawable_variation(player::player_ped_id(), 8)) && Local_6878[iVar0 /*32*/].f_1[8] == ped::get_ped_drawable_variation(player::player_ped_id(), 9)) && Local_6878[iVar0 /*32*/].f_1[9] == ped::get_ped_drawable_variation(player::player_ped_id(), 10)) && Local_6878[iVar0 /*32*/].f_1[10] == ped::get_ped_drawable_variation(player::player_ped_id(), 11)) && Local_6878[iVar0 /*32*/].f_1[11] == ped::get_ped_prop_index(player::player_ped_id(), 0)) && Local_6878[iVar0 /*32*/].f_1[12] == ped::get_ped_prop_index(player::player_ped_id(), 1)) && Local_6878[iVar0 /*32*/].f_15[0] == ped::get_ped_texture_variation(player::player_ped_id(), 0)) && Local_6878[iVar0 /*32*/].f_15[1] == ped::get_ped_texture_variation(player::player_ped_id(), 1)) && Local_6878[iVar0 /*32*/].f_15[2] == ped::get_ped_texture_variation(player::player_ped_id(), 2)) && Local_6878[iVar0 /*32*/].f_15[3] == ped::get_ped_texture_variation(player::player_ped_id(), 3)) && Local_6878[iVar0 /*32*/].f_15[4] == ped::get_ped_texture_variation(player::player_ped_id(), 4)) && Local_6878[iVar0 /*32*/].f_15[5] == ped::get_ped_texture_variation(player::player_ped_id(), 5)) && Local_6878[iVar0 /*32*/].f_15[6] == ped::get_ped_texture_variation(player::player_ped_id(), 6)) && Local_6878[iVar0 /*32*/].f_15[7] == ped::get_ped_texture_variation(player::player_ped_id(), 8)) && Local_6878[iVar0 /*32*/].f_15[8] == ped::get_ped_texture_variation(player::player_ped_id(), 9)) && Local_6878[iVar0 /*32*/].f_15[9] == ped::get_ped_texture_variation(player::player_ped_id(), 10)) && Local_6878[iVar0 /*32*/].f_15[10] == ped::get_ped_texture_variation(player::player_ped_id(), 11))
				{
					return iVar0;
				}
			}
		}
		iVar0++;
	}
	return -1;
}

bool func_386(int iParam0)//Position - 0x1EDDA
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_390(iParam0);
	if (iVar0 != -1)
	{
		if (!func_389(iVar0))
		{
			return false;
		}
	}
	iVar1 = func_388(iParam0);
	if (iVar1 != -1)
	{
		if (!func_387(iVar1))
		{
			return false;
		}
	}
	return true;
}

int func_387(int iParam0)//Position - 0x1EE1B
{
	int iVar0;
	
	iVar0 = iParam0;
	if (iVar0 >= 0 && iVar0 <= 31)
	{
		return gameplay::is_bit_set(Global_101186.f_31035.f_3, iVar0);
	}
	return false;
}

int func_388(int iParam0)//Position - 0x1EE4E
{
	switch (iParam0)
	{
		case 430:
			return 0;
			break;
		
		case 431:
			return 1;
			break;
		
		case 432:
			return 2;
			break;
		
		case 433:
			return 3;
			break;
		
		case 434:
			return 4;
			break;
		
		case 448:
			return 18;
			break;
		
		case 435:
			return 5;
			break;
		
		case 436:
			return 6;
			break;
		
		case 437:
			return 7;
			break;
		
		case 438:
			return 8;
			break;
		
		case 439:
			return 9;
			break;
		
		case 440:
			return 10;
			break;
		
		case 441:
			return 11;
			break;
		
		case 442:
			return 12;
			break;
		
		case 443:
			return 13;
			break;
		
		case 444:
			return 14;
			break;
		
		case 445:
			return 15;
			break;
		
		case 446:
			return 16;
			break;
		
		case 447:
			return 17;
			break;
		
		case 449:
			return 19;
			break;
		
		case 450:
			return 20;
			break;
		
		case 451:
			return 21;
			break;
	}
	return -1;
}

int func_389(int iParam0)//Position - 0x1EF8A
{
	int iVar0;
	
	iVar0 = iParam0;
	if (iVar0 >= 0 && iVar0 <= 31)
	{
		return gameplay::is_bit_set(Global_101186.f_31035, iVar0);
	}
	return false;
}

int func_390(int iParam0)//Position - 0x1EFBB
{
	switch (iParam0)
	{
		case 273:
			return 1;
			break;
		
		case 274:
			return 2;
			break;
		
		case 275:
			return 0;
			break;
		
		case 276:
			return 3;
			break;
		
		case 277:
			return 4;
			break;
		
		case 278:
			return 5;
			break;
		
		case 279:
			return 6;
			break;
		
		case 280:
			return 7;
			break;
		
		case 281:
			return 8;
			break;
		
		case 282:
			return 9;
			break;
		
		case 283:
			return 10;
			break;
		
		case 284:
			return 11;
			break;
		
		case 285:
			return 12;
			break;
		
		case 286:
			return 13;
			break;
		
		case 287:
			return 14;
			break;
		
		case 288:
			return 15;
			break;
		
		case 289:
			return 16;
			break;
		
		case 290:
			return 17;
			break;
		
		case 291:
			return 18;
			break;
		
		case 292:
			return 19;
			break;
		
		case 293:
			return 20;
			break;
		
		case 294:
			return 21;
			break;
		
		case 295:
			return 22;
			break;
		
		case 296:
			return 23;
			break;
		
		case 297:
			return 24;
			break;
		
		case 298:
			return 25;
			break;
		
		case 299:
			return 26;
			break;
		
		case 300:
			return 27;
			break;
	}
	return -1;
}

bool func_391(int iParam0)//Position - 0x1F14B
{
	int iVar0;
	int iVar1;
	
	if (iParam0 == 5)
	{
		return false;
	}
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = func_395(iParam0);
	if (iVar0 != -1)
	{
		if (!func_394(iVar0))
		{
			return false;
		}
	}
	iVar1 = func_393(iParam0);
	if (iVar1 != -1)
	{
		if (!func_392(iVar1))
		{
			return false;
		}
	}
	if (iParam0 == 327)
	{
		if (!Local_7925[0 /*401*/].f_400)
		{
			return false;
		}
	}
	else if (iParam0 == 328)
	{
		if (!Local_7925[1 /*401*/].f_400)
		{
			return false;
		}
	}
	return true;
}

int func_392(int iParam0)//Position - 0x1F1D7
{
	int iVar0;
	
	iVar0 = iParam0;
	if (iVar0 >= 0 && iVar0 <= 31)
	{
		return gameplay::is_bit_set(Global_101186.f_31035.f_2, iVar0);
	}
	return false;
}

int func_393(int iParam0)//Position - 0x1F20A
{
	switch (iParam0)
	{
		case 301:
			return 0;
			break;
		
		case 302:
			return 1;
			break;
		
		case 303:
			return 2;
			break;
		
		case 304:
			return 3;
			break;
		
		case 305:
			return 4;
			break;
		
		case 306:
			return 5;
			break;
		
		case 307:
			return 6;
			break;
		
		case 308:
			return 7;
			break;
		
		case 309:
			return 8;
			break;
		
		case 310:
			return 9;
			break;
		
		case 311:
			return 10;
			break;
		
		case 312:
			return 11;
			break;
		
		case 313:
			return 12;
			break;
	}
	return -1;
}

int func_394(int iParam0)//Position - 0x1F2C8
{
	int iVar0;
	
	iVar0 = iParam0;
	if (iVar0 >= 0 && iVar0 <= 31)
	{
		return gameplay::is_bit_set(Global_101186.f_31035.f_1, iVar0);
	}
	return false;
}

int func_395(int iParam0)//Position - 0x1F2FB
{
	switch (iParam0)
	{
		case 317:
			return 0;
			break;
		
		case 322:
			return 1;
			break;
		
		case 320:
			return 2;
			break;
		
		case 324:
			return 3;
			break;
		
		case 314:
			return 4;
			break;
		
		case 318:
			return 5;
			break;
		
		case 326:
			return 6;
			break;
		
		case 315:
			return 7;
			break;
		
		case 319:
			return 8;
			break;
		
		case 316:
			return 9;
			break;
		
		case 321:
			return 10;
			break;
		
		case 323:
			return 11;
			break;
		
		case 325:
			return 12;
			break;
	}
	return -1;
}

void func_396(int iParam0)//Position - 0x1F3B9
{
	int iVar0;
	
	switch (iParam0)
	{
		case joaat("a_f_m_bodybuild_01"):
			if (func_74(player::player_ped_id(), 2, 2))
			{
				ped::set_ped_component_variation(player::player_ped_id(), 2, func_398(0, 1, -1, -1, -1, -1, -1), func_398(0, 1, 2, -1, -1, -1, -1), 0);
			}
			break;
		
		case joaat("a_f_y_bevhills_04"):
			if (func_74(player::player_ped_id(), 3, 0))
			{
				func_397(player::player_ped_id(), 0, 0, func_398(0, 1, -1, -1, -1, -1, -1), 1, 1, 0, 0, 0, 0, 0, 0);
			}
			break;
		
		case joaat("a_f_y_eastsa_01"):
			if (func_74(player::player_ped_id(), 8, 0))
			{
				ped::set_ped_component_variation(player::player_ped_id(), 8, 1, func_398(0, 1, -1, -1, -1, -1, -1), 0);
			}
			break;
		
		case joaat("a_f_y_runner_01"):
		case joaat("a_m_y_beach_02"):
		case joaat("a_m_y_runner_01"):
		case joaat("a_m_y_skater_01"):
		case joaat("a_m_y_skater_02"):
		case joaat("a_m_y_vinewood_01"):
			if (func_74(player::player_ped_id(), 8, 0))
			{
				ped::set_ped_component_variation(player::player_ped_id(), 8, 1, 0, 0);
			}
			break;
		
		case joaat("g_f_y_lost_01"):
			if (ped::get_ped_texture_variation(player::player_ped_id(), 0) == 0 && ped::get_ped_texture_variation(player::player_ped_id(), 3) == 0)
			{
				ped::set_ped_component_variation(player::player_ped_id(), 0, 1, 0, 0);
			}
			break;
		
		case joaat("a_m_o_acult_01"):
		case joaat("a_m_y_acult_01"):
			if (func_74(player::player_ped_id(), 4, 0))
			{
				ped::set_ped_component_variation(player::player_ped_id(), 4, 1, func_398(0, 1, 2, -1, -1, -1, -1), 0);
				ped::set_ped_component_variation(player::player_ped_id(), 9, 0, 0, 0);
			}
			break;
		
		case joaat("s_m_y_baywatch_01"):
			if (func_74(player::player_ped_id(), 3, 0))
			{
				ped::set_ped_component_variation(player::player_ped_id(), 10, 1, 0, 0);
			}
			break;
		
		case joaat("s_f_y_baywatch_01"):
			if (func_74(player::player_ped_id(), 3, 0))
			{
				ped::set_ped_component_variation(player::player_ped_id(), 10, 0, 0, 0);
			}
			break;
		
		case joaat("a_m_y_vinewood_02"):
			ped::set_ped_component_variation(player::player_ped_id(), 9, 2, 0, 0);
			if (func_74(player::player_ped_id(), 3, 0))
			{
				ped::set_ped_component_variation(player::player_ped_id(), 10, 0, 0, 0);
			}
			break;
		
		case joaat("u_m_m_spyactor"):
			ped::set_ped_component_variation(player::player_ped_id(), 3, 2, 0, 0);
			ped::set_ped_component_variation(player::player_ped_id(), 4, 2, 0, 0);
			break;
		
		case joaat("s_m_m_janitor"):
			ped::set_ped_component_variation(player::player_ped_id(), 3, 0, 0, 0);
			ped::set_ped_component_variation(player::player_ped_id(), 4, 0, 0, 0);
			ped::set_ped_component_variation(player::player_ped_id(), 9, 0, 0, 0);
			break;
		
		case joaat("ig_beverly"):
			ped::set_ped_component_variation(player::player_ped_id(), 9, 1, 0, 0);
			break;
		
		case joaat("ig_chrisformage"):
		case joaat("ig_brad"):
			ped::set_ped_component_variation(player::player_ped_id(), 9, 0, 0, 0);
			break;
		
		case joaat("s_m_y_chef_01"):
			if (!func_74(player::player_ped_id(), 3, 1))
			{
				ped::set_ped_component_variation(player::player_ped_id(), 8, 0, 0, 0);
			}
			break;
		
		case joaat("s_f_y_factory_01"):
			if (func_74(player::player_ped_id(), 8, 0))
			{
				ped::set_ped_component_variation(player::player_ped_id(), 8, 1, 0, 0);
			}
			if (func_74(player::player_ped_id(), 3, 0))
			{
				if (ped::get_ped_texture_variation(player::player_ped_id(), 0) == 0)
				{
					ped::set_ped_component_variation(player::player_ped_id(), 3, 1, func_398(0, 1, -1, -1, -1, -1, -1), 0);
					ped::set_ped_component_variation(player::player_ped_id(), 4, 0, func_398(0, 1, -1, -1, -1, -1, -1), 0);
				}
				else if (ped::get_ped_texture_variation(player::player_ped_id(), 0) == 1)
				{
					ped::set_ped_component_variation(player::player_ped_id(), 3, 1, func_398(2, 3, -1, -1, -1, -1, -1), 0);
					ped::set_ped_component_variation(player::player_ped_id(), 4, 0, func_398(2, 3, -1, -1, -1, -1, -1), 0);
				}
				else if (ped::get_ped_texture_variation(player::player_ped_id(), 0) == 2)
				{
					ped::set_ped_component_variation(player::player_ped_id(), 3, 1, func_398(4, 5, -1, -1, -1, -1, -1), 0);
					ped::set_ped_component_variation(player::player_ped_id(), 4, 0, func_398(4, 5, -1, -1, -1, -1, -1), 0);
				}
			}
			break;
		
		case joaat("s_f_y_migrant_01"):
		case joaat("s_m_m_migrant_01"):
			if (func_74(player::player_ped_id(), 8, 0))
			{
				ped::set_ped_component_variation(player::player_ped_id(), 8, 1, 0, 0);
			}
			break;
		
		case joaat("s_m_y_xmech_02"):
			if (func_74(player::player_ped_id(), 8, 1))
			{
				ped::set_ped_component_variation(player::player_ped_id(), 8, 0, 0, 0);
			}
			break;
		
		case joaat("s_m_m_pilot_02"):
			if (func_74(player::player_ped_id(), 9, 1))
			{
				ped::set_ped_component_variation(player::player_ped_id(), 9, 0, 0, 0);
			}
			break;
		
		case joaat("s_m_m_lifeinvad_01"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 0) == 0)
			{
				iVar0 = gameplay::get_random_int_in_range(0, 3);
				if (iVar0 == 2)
				{
					ped::set_ped_component_variation(player::player_ped_id(), 3, iVar0, func_398(2, 3, -1, -1, -1, -1, -1), 0);
				}
				else
				{
					ped::set_ped_component_variation(player::player_ped_id(), 3, iVar0, func_398(0, 1, 2, -1, -1, -1, -1), 0);
				}
				ped::set_ped_component_variation(player::player_ped_id(), 4, func_398(0, 1, -1, -1, -1, -1, -1), func_398(2, 3, -1, -1, -1, -1, -1), 0);
			}
			else if (ped::get_ped_drawable_variation(player::player_ped_id(), 0) == 1)
			{
				ped::set_ped_component_variation(player::player_ped_id(), 3, 2, func_398(0, 1, -1, -1, -1, -1, -1), 0);
				ped::set_ped_component_variation(player::player_ped_id(), 4, func_398(0, 1, -1, -1, -1, -1, -1), func_398(0, 1, -1, -1, -1, -1, -1), 0);
			}
			break;
		
		case joaat("u_f_y_poppymich"):
			if (func_74(player::player_ped_id(), 4, 1) || func_74(player::player_ped_id(), 4, 2))
			{
				ped::set_ped_component_variation(player::player_ped_id(), 4, 0, 0, 0);
			}
			break;
		
		case joaat("a_m_y_motox_01"):
			if (func_74(player::player_ped_id(), 8, 1))
			{
				ped::set_ped_component_variation(player::player_ped_id(), 8, 0, func_398(0, 1, -1, -1, -1, -1, -1), 0);
			}
			break;
		
		case joaat("s_f_y_airhostess_01"):
			if (func_74(player::player_ped_id(), 2, 1))
			{
				ped::set_ped_component_variation(player::player_ped_id(), 2, func_398(0, 2, 3, -1, -1, -1, -1), func_398(0, 1, -1, -1, -1, -1, -1), 0);
			}
			break;
		
		case joaat("g_m_y_lost_02"):
			if (func_74(player::player_ped_id(), 3, 1))
			{
				ped::set_ped_component_variation(player::player_ped_id(), 10, 1, func_398(0, 1, -1, -1, -1, -1, -1), 0);
			}
			else if (func_74(player::player_ped_id(), 3, 0))
			{
				ped::set_ped_component_variation(player::player_ped_id(), 10, 0, func_398(0, 1, -1, -1, -1, -1, -1), 0);
			}
			break;
		
		case joaat("s_m_y_prismuscl_01"):
			if (func_74(player::player_ped_id(), 3, 0))
			{
				ped::set_ped_component_variation(player::player_ped_id(), 10, 1, 0, 0);
			}
			break;
		
		case joaat("a_m_m_golfer_01"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 3) == 0)
			{
				if (ped::get_ped_texture_variation(player::player_ped_id(), 3) <= 2)
				{
					ped::set_ped_component_variation(player::player_ped_id(), 4, 1, func_398(0, 1, 2, -1, -1, -1, -1), 0);
				}
				else
				{
					ped::set_ped_component_variation(player::player_ped_id(), 4, 1, func_398(3, 4, 5, -1, -1, -1, -1), 0);
				}
			}
			break;
		
		case joaat("s_m_m_doctor_01"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 11) == 1)
			{
				ped::set_ped_component_variation(player::player_ped_id(), 4, 1, func_398(0, 1, 2, -1, -1, -1, -1), 0);
			}
			else if (ped::get_ped_drawable_variation(player::player_ped_id(), 11) == 0)
			{
				ped::set_ped_component_variation(player::player_ped_id(), 4, 0, ped::get_ped_texture_variation(player::player_ped_id(), 11), 0);
			}
			break;
		
		case joaat("a_f_y_epsilon_01"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 3) == 1)
			{
				if (ped::get_ped_drawable_variation(player::player_ped_id(), 0) == 0)
				{
					ped::set_ped_component_variation(player::player_ped_id(), 3, 1, 1, 0);
				}
				else
				{
					ped::set_ped_component_variation(player::player_ped_id(), 3, 1, 0, 0);
				}
			}
			break;
		
		case joaat("a_m_y_salton_01"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 3) == 1)
			{
				ped::set_ped_component_variation(player::player_ped_id(), 4, 0, func_398(0, 1, 2, -1, -1, -1, -1), 0);
			}
			break;
		
		case joaat("a_m_y_methhead_01"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 3) == 0)
			{
				ped::set_ped_component_variation(player::player_ped_id(), 3, 1, func_398(0, 1, -1, -1, -1, -1, -1), 0);
			}
			break;
	}
}

void func_397(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 - 0x1FA85
{
	if (!ped::is_ped_injured(iParam0))
	{
		ped::set_ped_component_variation(iParam0, 0, iParam1, 0, 0);
		ped::set_ped_component_variation(iParam0, 1, iParam2, 0, 0);
		ped::set_ped_component_variation(iParam0, 2, iParam3, 0, 0);
		ped::set_ped_component_variation(iParam0, 3, iParam4, 0, 0);
		ped::set_ped_component_variation(iParam0, 4, iParam5, 0, 0);
		ped::set_ped_component_variation(iParam0, 5, iParam6, 0, 0);
		ped::set_ped_component_variation(iParam0, 6, iParam7, 0, 0);
		ped::set_ped_component_variation(iParam0, 8, iParam8, 0, 0);
		ped::set_ped_component_variation(iParam0, 9, iParam9, 0, 0);
		ped::set_ped_component_variation(iParam0, 10, iParam10, 0, 0);
		ped::set_ped_component_variation(iParam0, 11, iParam11, 0, 0);
	}
}

var func_398(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x1FB14
{
	int iVar0[7];
	int iVar8;
	int iVar9;
	
	iVar0[0] = iParam0;
	iVar0[1] = iParam1;
	iVar0[2] = iParam2;
	iVar0[3] = iParam3;
	iVar0[4] = iParam4;
	iVar0[5] = iParam5;
	iVar0[6] = iParam6;
	iVar8 = 0;
	while (iVar8 <= (iVar0 - 1))
	{
		if (iVar0[iVar8] == -1 || iVar8 == (iVar0 - 1))
		{
			iVar9 = iVar8;
			iVar8 = iVar0;
		}
		iVar8++;
	}
	return iVar0[gameplay::get_random_int_in_range(0, iVar9)];
}

void func_399(int iParam0)//Position - 0x1FB92
{
	int iVar0;
	int iVar1;
	int iVar2;
	struct<6> Var3;
	
	iVar0 = func_409(iParam0);
	if (func_64(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_101186.f_1902.f_493[iVar0 /*15*/].f_10[iVar1], iVar2))
				{
					if (func_400(&Var3, func_408(iVar1, iVar2), func_407(iVar0), iParam0, -1))
					{
						ped::_set_ped_decoration(iParam0, Var3.f_4, Var3.f_5);
					}
				}
				iVar2++;
			}
			iVar1++;
		}
	}
}

int func_400(char* sParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x1FC27
{
	int iVar0;
	int iVar1;
	
	func_406(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_406(sParam0, iParam1, iParam3, "TAT_MIC_01", "singleplayer_overlays", "MK_000", "", iParam2, 300, 3);
					break;
				
				case 1:
					func_406(sParam0, iParam1, iParam3, "TAT_MIC_02", "singleplayer_overlays", "MK_001", "", iParam2, 450, 0);
					break;
				
				case 2:
					func_406(sParam0, iParam1, iParam3, "TAT_MIC_03", "singleplayer_overlays", "MK_002", "", iParam2, 250, 4);
					break;
				
				case 3:
					func_406(sParam0, iParam1, iParam3, "TAT_MIC_04", "singleplayer_overlays", "MK_003", "", iParam2, 175, 0);
					break;
				
				case 4:
					func_406(sParam0, iParam1, iParam3, "TAT_MIC_06", "singleplayer_overlays", "MK_005", "", iParam2, 380, 0);
					break;
				
				case 5:
					func_406(sParam0, iParam1, iParam3, "TAT_MIC_07", "singleplayer_overlays", "MK_006", "", iParam2, 180, 0);
					break;
				
				case 6:
					func_406(sParam0, iParam1, iParam3, "TAT_MIC_08", "singleplayer_overlays", "MK_007", "", iParam2, 240, 0);
					break;
				
				case 7:
					func_406(sParam0, iParam1, iParam3, "TAT_MIC_10", "singleplayer_overlays", "MK_009", "", iParam2, 195, 0);
					break;
				
				case 8:
					func_406(sParam0, iParam1, iParam3, "TAT_MIC_11", "singleplayer_overlays", "MK_010", "", iParam2, 280, 6);
					break;
				
				case 9:
					if (func_405() || func_404())
					{
						iVar1 = 400;
						if (func_48() && (func_403() || func_402()))
						{
							iVar1 = 0;
						}
						func_406(sParam0, iParam1, iParam3, "TAT_MIC_12", "singleplayer_overlays", "MK_011", "", iParam2, iVar1, 2);
					}
					break;
				
				case 10:
					func_406(sParam0, iParam1, iParam3, "TAT_MIC_13", "singleplayer_overlays", "MK_012", "", iParam2, 320, 3);
					break;
				
				case 11:
					func_406(sParam0, iParam1, iParam3, "TAT_MIC_14", "singleplayer_overlays", "MK_013", "", iParam2, 500, 2);
					break;
				
				case 12:
					func_406(sParam0, iParam1, iParam3, "TAT_MIC_16", "singleplayer_overlays", "MK_015", "", iParam2, 220, 0);
					break;
				
				case 13:
					func_406(sParam0, iParam1, iParam3, "TAT_MIC_17", "singleplayer_overlays", "MK_016", "", iParam2, 320, 4);
					break;
				
				case 14:
					func_406(sParam0, iParam1, iParam3, "TAT_MIC_18", "singleplayer_overlays", "MK_017", "", iParam2, 140, 2);
					break;
				
				case 15:
					func_406(sParam0, iParam1, iParam3, "TAT_MIC_20", "singleplayer_overlays", "MK_019", "", iParam2, 350, 0);
					break;
				
				case 16:
					func_406(sParam0, iParam1, iParam3, "TAT_MIC_21", "singleplayer_overlays", "MK_020", "", iParam2, 350, 0);
					break;
				
				case 17:
					func_406(sParam0, iParam1, iParam3, "TAT_MIC_05", "singleplayer_overlays", "MK_004", "", iParam2, 120, 1);
					break;
				
				case 18:
					func_406(sParam0, iParam1, iParam3, "TAT_MIC_09", "singleplayer_overlays", "MK_008", "", iParam2, 99, 1);
					break;
				
				case 19:
					func_406(sParam0, iParam1, iParam3, "TAT_MIC_15", "singleplayer_overlays", "MK_014", "", iParam2, 400, 1);
					break;
				
				case 20:
					func_406(sParam0, iParam1, iParam3, "TAT_MIC_19", "singleplayer_overlays", "MK_018", "", iParam2, 420, 1);
					break;
				
				default:
					func_401(sParam0, iParam2, iParam1, 21);
					break;
			}
			break;
		
		case 1:
			switch (iParam1)
			{
				case 0:
					if (func_405() || func_404())
					{
						iVar1 = 450;
						if (func_48() && (func_403() || func_402()))
						{
							iVar1 = 0;
						}
						func_406(sParam0, iParam1, iParam3, "TAT_FRA_01", "singleplayer_overlays", "fr_000", "", iParam2, iVar1, 0);
					}
					break;
				
				case 1:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_02", "singleplayer_overlays", "fr_001", "", iParam2, 230, 0);
					break;
				
				case 2:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_03", "singleplayer_overlays", "fr_002", "", iParam2, 310, 0);
					break;
				
				case 3:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_04", "singleplayer_overlays", "fr_003", "", iParam2, 260, 0);
					break;
				
				case 4:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_07", "singleplayer_overlays", "fr_006", "", iParam2, 240, 2);
					break;
				
				case 5:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_08", "singleplayer_overlays", "fr_007", "", iParam2, 190, 3);
					break;
				
				case 6:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_09", "singleplayer_overlays", "fr_008", "", iParam2, 200, 2);
					break;
				
				case 7:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_10", "singleplayer_overlays", "fr_009", "", iParam2, 225, 0);
					break;
				
				case 8:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_12", "singleplayer_overlays", "fr_011", "", iParam2, 195, 0);
					break;
				
				case 9:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_13", "singleplayer_overlays", "fr_012", "", iParam2, 275, 2);
					break;
				
				case 10:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_14", "singleplayer_overlays", "fr_013", "", iParam2, 80, 0);
					break;
				
				case 11:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_15", "singleplayer_overlays", "fr_014", "", iParam2, 95, 0);
					break;
				
				case 12:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_16", "singleplayer_overlays", "fr_015", "", iParam2, 300, 3);
					break;
				
				case 13:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_17", "singleplayer_overlays", "fr_016", "", iParam2, 450, 3);
					break;
				
				case 14:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_18", "singleplayer_overlays", "fr_017", "", iParam2, 345, 3);
					break;
				
				case 15:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_19", "singleplayer_overlays", "fr_018", "", iParam2, 550, 0);
					break;
				
				case 16:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_20", "singleplayer_overlays", "fr_019", "", iParam2, 200, 0);
					break;
				
				case 17:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_21", "singleplayer_overlays", "fr_020", "", iParam2, 180, 0);
					break;
				
				case 18:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_22", "singleplayer_overlays", "fr_021", "", iParam2, 140, 0);
					break;
				
				case 19:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_24", "singleplayer_overlays", "fr_023", "", iParam2, 245, 0);
					break;
				
				case 20:
					break;
				
				case 21:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_26", "singleplayer_overlays", "fr_025", "", iParam2, 370, 0);
					break;
				
				case 22:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_27", "singleplayer_overlays", "fr_026", "", iParam2, 350, 0);
					break;
				
				case 23:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_28", "singleplayer_overlays", "fr_027", "", iParam2, 310, 0);
					break;
				
				case 24:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_29", "singleplayer_overlays", "fr_028", "", iParam2, 210, 0);
					break;
				
				case 25:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_30", "singleplayer_overlays", "fr_029", "", iParam2, 245, 0);
					break;
				
				case 26:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_31", "singleplayer_overlays", "fr_030", "", iParam2, 85, 0);
					break;
				
				case 27:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_32", "singleplayer_overlays", "fr_031", "", iParam2, 210, 0);
					break;
				
				case 28:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_33", "singleplayer_overlays", "fr_032", "", iParam2, 225, 0);
					break;
				
				case 29:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_34", "singleplayer_overlays", "fr_033", "", iParam2, 145, 0);
					break;
				
				case 30:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_35", "singleplayer_overlays", "fr_034", "", iParam2, 230, 0);
					break;
				
				case 31:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_36", "singleplayer_overlays", "fr_035", "", iParam2, 195, 0);
					break;
				
				case 32:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_37", "singleplayer_overlays", "fr_036", "", iParam2, 255, 0);
					break;
				
				case 33:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_38", "singleplayer_overlays", "fr_037", "", iParam2, 300, 0);
					break;
				
				case 34:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_40", "singleplayer_overlays", "fr_039", "", iParam2, 300, 0);
					break;
				
				case 35:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_05", "singleplayer_overlays", "fr_004", "", iParam2, 255, 1);
					break;
				
				case 36:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_06", "singleplayer_overlays", "fr_005", "", iParam2, 175, 1);
					break;
				
				case 37:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_11", "singleplayer_overlays", "fr_010", "", iParam2, 520, 1);
					break;
				
				case 38:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_23", "singleplayer_overlays", "fr_022", "", iParam2, 125, 1);
					break;
				
				case 39:
					func_406(sParam0, iParam1, iParam3, "TAT_FRA_39", "singleplayer_overlays", "fr_038", "", iParam2, 365, 1);
					break;
				
				default:
					func_401(sParam0, iParam2, iParam1, 40);
					break;
			}
			break;
		
		case 2:
			switch (iParam1)
			{
				case 0:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_01", "singleplayer_overlays", "tp_000", "", iParam2, 120, 0);
					break;
				
				case 1:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_02", "singleplayer_overlays", "tp_001", "", iParam2, 150, 3);
					break;
				
				case 2:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_03", "singleplayer_overlays", "tp_002", "", iParam2, 100, 0);
					break;
				
				case 3:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_04", "singleplayer_overlays", "tp_003", "", iParam2, 140, 0);
					break;
				
				case 4:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_05", "singleplayer_overlays", "tp_004", "", iParam2, 250, 0);
					break;
				
				case 5:
					if (func_405() || func_404())
					{
						iVar1 = 380;
						if (func_48() && (func_403() || func_402()))
						{
							iVar1 = 0;
						}
						func_406(sParam0, iParam1, iParam3, "TAT_TRV_06", "singleplayer_overlays", "tp_005", "", iParam2, iVar1, 3);
					}
					break;
				
				case 6:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_07", "singleplayer_overlays", "tp_006", "", iParam2, 120, 0);
					break;
				
				case 7:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_08", "singleplayer_overlays", "tp_007", "", iParam2, 250, 0);
					break;
				
				case 8:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_09", "singleplayer_overlays", "tp_008", "", iParam2, 50, 3);
					break;
				
				case 9:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_10", "singleplayer_overlays", "tp_009", "", iParam2, 135, 2);
					break;
				
				case 10:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_11", "singleplayer_overlays", "tp_010", "", iParam2, 245, 0);
					break;
				
				case 11:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_12", "singleplayer_overlays", "tp_011", "", iParam2, 280, 0);
					break;
				
				case 12:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_13", "singleplayer_overlays", "tp_012", "", iParam2, 65, 0);
					break;
				
				case 13:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_14", "singleplayer_overlays", "tp_013", "", iParam2, 150, 6);
					break;
				
				case 14:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_15", "singleplayer_overlays", "tp_014", "", iParam2, 200, 0);
					break;
				
				case 15:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_16", "singleplayer_overlays", "tp_015", "", iParam2, 145, 0);
					break;
				
				case 16:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_17", "singleplayer_overlays", "tp_016", "", iParam2, 290, 0);
					break;
				
				case 17:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_18", "singleplayer_overlays", "tp_017", "", iParam2, 350, 3);
					break;
				
				case 18:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_19", "singleplayer_overlays", "tp_018", "", iParam2, 70, 0);
					break;
				
				case 19:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_20", "singleplayer_overlays", "tp_019", "", iParam2, 180, 6);
					break;
				
				case 20:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_21", "singleplayer_overlays", "tp_020", "", iParam2, 230, 0);
					break;
				
				case 21:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_22", "singleplayer_overlays", "tp_021", "", iParam2, 200, 0);
					break;
				
				case 22:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_24", "singleplayer_overlays", "tp_023", "", iParam2, 240, 0);
					break;
				
				case 23:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_25", "singleplayer_overlays", "tp_024", "", iParam2, 195, 0);
					break;
				
				case 24:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_26", "singleplayer_overlays", "tp_025", "", iParam2, 225, 2);
					break;
				
				case 25:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_28", "singleplayer_overlays", "tp_027", "", iParam2, 175, 0);
					break;
				
				case 26:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_29", "singleplayer_overlays", "tp_028", "", iParam2, 65, 0);
					break;
				
				case 27:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_30", "singleplayer_overlays", "tp_029", "", iParam2, 50, 0);
					break;
				
				case 28:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_31", "singleplayer_overlays", "tp_030", "", iParam2, 70, 0);
					break;
				
				case 29:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_34", "singleplayer_overlays", "tp_033", "", iParam2, 70, 0);
					break;
				
				case 30:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_23", "singleplayer_overlays", "tp_022", "", iParam2, 500, 1);
					break;
				
				case 31:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_27", "singleplayer_overlays", "tp_026", "", iParam2, 300, 1);
					break;
				
				case 32:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_32", "singleplayer_overlays", "tp_031", "", iParam2, 190, 1);
					break;
				
				case 33:
					func_406(sParam0, iParam1, iParam3, "TAT_TRV_33", "singleplayer_overlays", "tp_032", "", iParam2, 129, 1);
					break;
				
				default:
					func_401(sParam0, iParam2, iParam1, 34);
					break;
			}
			break;
		
		case 3:
		case 4:
			switch (iParam1)
			{
				case 0:
					func_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(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_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_001", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 74:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_002", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 75:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_003", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 76:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_004", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 77:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_005", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 78:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_006", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 79:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_009", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 80:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_013", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 81:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_014", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 82:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_015", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 83:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_016", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 84:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_019", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 85:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_020", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 86:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_036", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 90:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_017", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 91:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_018", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 124:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_046", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 125:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_045", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 87:
						func_406(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_406(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_406(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_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 94:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_002", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 95:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_003", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 96:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_004", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 97:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_005", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 98:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_006", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 99:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_007", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 100:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_008", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 101:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_009", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 102:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_010", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 103:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_011", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 104:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_012", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 105:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_013", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 106:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_014", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 107:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_015", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 108:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_M_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 109:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_M_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 110:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_M_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 111:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_M_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 112:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_M_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 113:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_M_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 114:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGInd_M_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 115:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 116:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 117:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 123:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "mpBeach_overlays", "FM_Hair_Fuzz", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 13:
						func_406(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_406(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_406(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_406(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_406(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_406(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_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_027_f", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 74:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_028_f", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 75:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_034_f", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 76:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_036_f", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 77:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_048", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 78:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_052", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 79:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_053", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 80:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_054", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 81:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_055", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 82:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_056", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 83:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_058", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 84:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_067", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 85:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_068", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 92:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_051", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 87:
						func_406(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_406(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_406(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_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 94:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_002", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 95:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_003", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 96:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_004", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 97:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_005", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 98:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_006", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 99:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_007", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 100:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_008", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 101:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_009", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 102:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_010", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 103:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_011", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 104:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_012", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 105:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_013", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 106:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_014", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 107:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_015", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 108:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_F_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 109:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_F_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 110:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_F_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 111:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_F_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 112:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_F_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 113:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_F_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 114:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGInd_F_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 115:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 116:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 117:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 118:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 119:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 120:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 121:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 122:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 123:
						func_406(sParam0, iParam1, iParam3, "NO_LABEL", "mpBeach_overlays", "FM_Hair_Fuzz", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 13:
						func_406(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_406(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_406(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_406(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_401(sParam0, iParam2, iParam1, 129);
	}
	if (iParam4 == 22)
	{
		sParam0->f_7 *= 2;
	}
	return sParam0->f_11 != -1;
}

void func_401(char* sParam0, int iParam1, int iParam2, int iParam3)//Position - 0x22D76
{
	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_402()//Position - 0x22E08
{
	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_138383.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_403()//Position - 0x22F5C
{
	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_138383.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_404()//Position - 0x2302D
{
	return true;
}

bool func_405()//Position - 0x23036
{
	return true;
}

void func_406(char* sParam0, int iParam1, int iParam2, char* sParam3, char* sParam4, char* sParam5, char* sParam6, int iParam7, int iParam8, int iParam9)//Position - 0x2303F
{
	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_407(int iParam0)//Position - 0x232FE
{
	switch (iParam0)
	{
		case 0:
			return 0;
			break;
		
		case 1:
			return 1;
			break;
		
		case 2:
			return 2;
			break;
	}
	return 0;
}

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

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

int func_410(int iParam0)//Position - 0x233A4
{
	if (func_64(iParam0))
	{
		return Global_101186.f_32651[iParam0 /*29*/];
	}
	else if (iParam0 != 145)
	{
	}
	return 0;
}

void func_411(int iParam0)//Position - 0x233CE
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = func_409(iParam0);
	if (func_64(iVar0))
	{
		if (!Global_91296[iVar0])
		{
			if (Global_101186.f_1902.f_539.f_1619[iVar0] != 0)
			{
				if (func_660(iParam0) != Global_101186.f_1902.f_539.f_1619[iVar0])
				{
					func_659(iVar0);
					Global_101186.f_1902.f_539.f_1619[iVar0] = func_660(iParam0);
				}
			}
		}
		func_509(iParam0, &(Global_101186.f_1902.f_539[iVar0 /*65*/]), 0, 0);
		if (!Global_91296[iVar0])
		{
			iVar2 = false;
			if (iVar0 == 0)
			{
				if (!func_508(49))
				{
					iVar1 = func_494(iParam0, 12, -1);
					if (iVar1 == 16)
					{
						iVar2 = true;
					}
					func_412(func_410(0), 12, 16, 0, 0, 0, 0);
				}
				if (!func_508(44))
				{
					iVar1 = func_494(iParam0, 3, -1);
					if (((((iVar1 == 70 || iVar1 == 71) || iVar1 == 72) || iVar1 == 73) || iVar1 == 74) || iVar1 == 75)
					{
						iVar2 = true;
					}
					iVar1 = func_494(iParam0, 4, -1);
					if ((((iVar1 == 41 || iVar1 == 42) || iVar1 == 43) || iVar1 == 44) || iVar1 == 45)
					{
						iVar2 = true;
					}
					func_412(func_410(0), 3, 70, 1, 0, 0, 0);
					func_412(func_410(0), 3, 71, 1, 0, 0, 0);
					func_412(func_410(0), 3, 72, 1, 0, 0, 0);
					func_412(func_410(0), 3, 73, 1, 0, 0, 0);
					func_412(func_410(0), 3, 74, 1, 0, 0, 0);
					func_412(func_410(0), 3, 75, 1, 0, 0, 0);
					func_412(func_410(0), 4, 41, 1, 0, 0, 0);
					func_412(func_410(0), 4, 42, 1, 0, 0, 0);
					func_412(func_410(0), 4, 43, 1, 0, 0, 0);
					func_412(func_410(0), 4, 44, 1, 0, 0, 0);
					func_412(func_410(0), 4, 45, 1, 0, 0, 0);
				}
			}
			else if (iVar0 == 2)
			{
				iVar1 = func_494(iParam0, 4, -1);
				if (iVar1 == 93)
				{
					iVar2 = true;
				}
			}
			if (iVar2)
			{
				func_659(iVar0);
				func_509(iParam0, &(Global_101186.f_1902.f_539[iVar0 /*65*/]), 0, 0);
			}
		}
		Global_91296[iVar0] = 1;
	}
}

void func_412(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x23627
{
	func_493(iParam0, iParam1, iParam2, iParam3);
	func_482(iParam0, iParam1, iParam2, iParam4, 1);
	if (iParam5)
	{
		func_481(iParam0, iParam1, iParam2, 0);
	}
	if (iParam6 == 1)
	{
		func_413(iParam0, iParam1, iParam2, 0);
	}
}

bool func_413(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x2366C
{
	Global_69342[1 /*14*/] = { func_415(iParam0, iParam1, iParam2) };
	if (gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 0) && !gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 6))
	{
		if (iParam3)
		{
			func_414(iParam1, Global_69342[1 /*14*/].f_5, Global_69342[1 /*14*/].f_2, 2, Global_69342[1 /*14*/].f_1, 0, 1);
		}
		else
		{
			func_414(iParam1, Global_69342[1 /*14*/].f_5, Global_69342[1 /*14*/].f_2, 2, Global_69342[1 /*14*/].f_1, 1, 0);
		}
		return true;
	}
	return false;
}

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

struct<14> func_415(int iParam0, int iParam1, int iParam2)//Position - 0x24626
{
	func_480();
	if (iParam0 == joaat("player_zero"))
	{
		func_462(iParam1, iParam2);
	}
	else if (iParam0 == joaat("player_one"))
	{
		func_443(iParam1, iParam2);
	}
	else if (iParam0 == joaat("player_two"))
	{
		func_416(iParam1, iParam2);
	}
	return Global_69342[0 /*14*/];
}

void func_416(int iParam0, int iParam1)//Position - 0x24678
{
	switch (iParam0)
	{
		case 0:
			func_442(iParam1);
			break;
		
		case 2:
			func_441(iParam1);
			break;
		
		case 3:
			func_438(iParam1);
			break;
		
		case 4:
			func_437(iParam1);
			break;
		
		case 6:
			func_436(iParam1);
			break;
		
		case 5:
			func_435(iParam1);
			break;
		
		case 8:
			func_434(iParam1);
			break;
		
		case 9:
			func_433(iParam1);
			break;
		
		case 10:
			func_432(iParam1);
			break;
		
		case 1:
			func_431(iParam1);
			break;
		
		case 7:
			func_430(iParam1);
			break;
		
		case 11:
			func_429(iParam1);
			break;
		
		case 12:
			func_428(iParam1);
			break;
		
		case 13:
			func_427(iParam1);
			break;
		
		case 14:
			func_417(iParam1);
			break;
	}
}

void func_417(int iParam0)//Position - 0x24768
{
	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_69342[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_425(iVar10, iParam0, 155);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_418(var uParam0, int iParam1, int iParam2, char* sParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10)//Position - 0x25A3C
{
	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_424(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_211(14))
		{
			return;
		}
		if (iParam1 == 1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, 1827025211, 0))
			{
				gameplay::set_bit(&(uParam0->f_6), 7);
			}
		}
		if (iParam1 == 12)
		{
			if (!func_422(Global_2621444, 1, 1, 1, -1))
			{
				gameplay::clear_bit(&(uParam0->f_6), 2);
			}
			if (!func_422(Global_2621444, 2, 1, 1, -1))
			{
				gameplay::set_bit(&(uParam0->f_6), 4);
			}
		}
		else if (iParam1 == 13)
		{
		}
		else if (iParam1 == 14)
		{
			if (!func_422(Global_2621444, 1, 1, 1, -1))
			{
				gameplay::clear_bit(&(uParam0->f_6), 2);
			}
			if (!func_422(Global_2621444, 2, 1, 1, -1))
			{
				gameplay::set_bit(&(uParam0->f_6), 4);
			}
		}
		else
		{
			if (!func_422(Global_2621444, 1, 1, 1, -1))
			{
				gameplay::clear_bit(&(uParam0->f_6), 2);
			}
			if (!func_422(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_414(iParam1, uParam0->f_5, uParam0->f_2, 0, uParam0->f_1, 0, 0))
		{
			gameplay::set_bit(&(uParam0->f_6), 1);
		}
		if (func_414(iParam1, uParam0->f_5, uParam0->f_2, 1, uParam0->f_1, 0, 0))
		{
			gameplay::set_bit(&(uParam0->f_6), 2);
		}
		if (!func_414(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_211(14))
			{
				return;
			}
			iVar0 = func_300(func_421(iParam1, uParam0->f_2), Global_69340, 0);
			if (gameplay::is_bit_set(iVar0, uParam0->f_1))
			{
				gameplay::set_bit(&(uParam0->f_6), 1);
			}
			iVar0 = func_300(func_420(iParam1, uParam0->f_2), Global_69340, 0);
			if (gameplay::is_bit_set(iVar0, uParam0->f_1))
			{
				gameplay::set_bit(&(uParam0->f_6), 2);
			}
			if (func_419(iParam1, uParam0->f_2, &uVar1))
			{
				iVar0 = func_300(uVar1, Global_69340, 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_419(int iParam0, int iParam1, var uParam2)//Position - 0x25DCD
{
	*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_420(int iParam0, int iParam1)//Position - 0x261D2
{
	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_421(int iParam0, int iParam1)//Position - 0x265CD
{
	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_422(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x269C8
{
	int iVar0;
	int iVar1;
	var uVar2;
	int iVar3;
	
	iVar0 = Global_69340;
	if (iParam4 != -1)
	{
		iVar0 = iParam4;
	}
	if (func_423(iParam0, iParam1, &uVar2, &iVar1, iParam2, iParam3))
	{
		iVar3 = func_300(uVar2, iVar0, 0);
		return gameplay::is_bit_set(iVar3, iVar1);
	}
	return false;
}

int func_423(int iParam0, int iParam1, var uParam2, var uParam3, int iParam4, int iParam5)//Position - 0x26A0A
{
	int iVar0;
	
	*uParam2 = 3976;
	if ((iParam4 && Global_2565437) || (!iParam4 && iParam5))
	{
		switch (iParam1)
		{
			case 1:
				switch (iParam0)
				{
					case 8886212:
					case -969630947:
						*uParam2 = 964;
						*uParam3 = 19;
						return true;
						break;
					
					case 1857811503:
					case -1198063650:
						*uParam2 = 964;
						*uParam3 = 20;
						return true;
						break;
					
					case 552556691:
					case -1596927918:
						*uParam2 = 964;
						*uParam3 = 21;
						return true;
						break;
					
					case 328711652:
					case 2093516866:
						*uParam2 = 964;
						*uParam3 = 22;
						return true;
						break;
					
					case 1194403102:
					case 1863511255:
						*uParam2 = 964;
						*uParam3 = 23;
						return true;
						break;
					
					case 1107630790:
					case 1503248869:
						*uParam2 = 964;
						*uParam3 = 24;
						return true;
						break;
					
					case 1807937089:
					case 1263478096:
						*uParam2 = 964;
						*uParam3 = 25;
						return true;
						break;
					
					case 1453442047:
					case 745170819:
						*uParam2 = 964;
						*uParam3 = 26;
						return true;
						break;
				}
				break;
			
			case 2:
				switch (iParam0)
				{
					case 8886212:
					case -969630947:
						*uParam2 = 1016;
						*uParam3 = 19;
						return true;
						break;
					
					case 1857811503:
					case -1198063650:
						*uParam2 = 1016;
						*uParam3 = 20;
						return true;
						break;
					
					case 552556691:
					case -1596927918:
						*uParam2 = 1016;
						*uParam3 = 21;
						return true;
						break;
					
					case 328711652:
					case 2093516866:
						*uParam2 = 1016;
						*uParam3 = 22;
						return true;
						break;
					
					case 1194403102:
					case 1863511255:
						*uParam2 = 1016;
						*uParam3 = 23;
						return true;
						break;
					
					case 1107630790:
					case 1503248869:
						*uParam2 = 1016;
						*uParam3 = 24;
						return true;
						break;
					
					case 1807937089:
					case 1263478096:
						*uParam2 = 1016;
						*uParam3 = 25;
						return true;
						break;
					
					case 1453442047:
					case 745170819:
						*uParam2 = 1016;
						*uParam3 = 26;
						return true;
						break;
				}
				break;
		}
	}
	else
	{
		switch (iParam1)
		{
			case 1:
				switch (iParam0)
				{
					case -1795774903:
					case -379046860:
						*uParam2 = 964;
						*uParam3 = 19;
						return true;
						break;
					
					case 1655095722:
					case 472553912:
						*uParam2 = 964;
						*uParam3 = 20;
						return true;
						break;
					
					case -1951624263:
					case 147288818:
						*uParam2 = 964;
						*uParam3 = 21;
						return true;
						break;
					
					case -1586249913:
					case 1027988462:
						*uParam2 = 964;
						*uParam3 = 22;
						return true;
						break;
					
					case -1472181024:
					case 788217689:
						*uParam2 = 964;
						*uParam3 = 23;
						return true;
						break;
					
					case -1116178608:
					case 1338147047:
						*uParam2 = 964;
						*uParam3 = 24;
						return true;
						break;
					
					case -1028914761:
					case 1095820292:
						*uParam2 = 964;
						*uParam3 = 25;
						return true;
						break;
					
					case -654496167:
					case -1989217217:
						*uParam2 = 964;
						*uParam3 = 26;
						return true;
						break;
				}
				break;
			
			case 2:
				switch (iParam0)
				{
					case -1795774903:
					case -379046860:
						*uParam2 = 1016;
						*uParam3 = 19;
						return true;
						break;
					
					case 1655095722:
					case 472553912:
						*uParam2 = 1016;
						*uParam3 = 20;
						return true;
						break;
					
					case -1951624263:
					case 147288818:
						*uParam2 = 1016;
						*uParam3 = 21;
						return true;
						break;
					
					case -1586249913:
					case 1027988462:
						*uParam2 = 1016;
						*uParam3 = 22;
						return true;
						break;
					
					case -1472181024:
					case 788217689:
						*uParam2 = 1016;
						*uParam3 = 23;
						return true;
						break;
					
					case -1116178608:
					case 1338147047:
						*uParam2 = 1016;
						*uParam3 = 24;
						return true;
						break;
					
					case -1028914761:
					case 1095820292:
						*uParam2 = 1016;
						*uParam3 = 25;
						return true;
						break;
					
					case -654496167:
					case -1989217217:
						*uParam2 = 1016;
						*uParam3 = 26;
						return true;
						break;
				}
				break;
			}
	}
	iVar0 = -1;
	if (iParam4)
	{
		if (Global_2565437)
		{
			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;
				
				case 78:
					*uParam2 = 3358;
					break;
				
				case 79:
					*uParam2 = 3359;
					break;
				
				case 80:
					*uParam2 = 3360;
					break;
				
				case 81:
					*uParam2 = 3361;
					break;
				
				case 82:
					*uParam2 = 3362;
					break;
				
				case 83:
					*uParam2 = 3363;
					break;
				
				case 84:
					*uParam2 = 3364;
					break;
				
				case 85:
					*uParam2 = 3365;
					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;
				
				case 78:
					*uParam2 = 3366;
					break;
				
				case 79:
					*uParam2 = 3367;
					break;
				
				case 80:
					*uParam2 = 3368;
					break;
				
				case 81:
					*uParam2 = 3369;
					break;
				
				case 82:
					*uParam2 = 3370;
					break;
				
				case 83:
					*uParam2 = 3371;
					break;
				
				case 84:
					*uParam2 = 3372;
					break;
				
				case 85:
					*uParam2 = 3373;
					break;
				
				default:
					break;
			}
			break;
	}
	*uParam3 = (iVar0 % 32);
	return *uParam2 != 3976;
}

int func_424(int iParam0)//Position - 0x278FA
{
	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_425(int iParam0, int iParam1, int iParam2)//Position - 0x279CE
{
	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_69342[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_418(&(Global_69342[0 /*14*/]), iParam0, iParam1, &(Var2.f_7), 0, 0, Var2.f_2, 0, -1, 2, 1);
					return;
				}
				iVar18++;
			}
			iVar17++;
		}
	}
	else if (iParam0 == 13)
	{
		func_418(&(Global_69342[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_418(&(Global_69342[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_426(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_418(&(Global_69342[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_426(int iParam0)//Position - 0x27C49
{
	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_427(int iParam0)//Position - 0x27CF9
{
	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_69342[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_425(iVar10, iParam0, 9);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_428(int iParam0)//Position - 0x27E4F
{
	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_69342[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_425(iVar10, iParam0, 48);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

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

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

void func_431(int iParam0)//Position - 0x28473
{
	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_69342[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_425(iVar10, iParam0, 6);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_432(int iParam0)//Position - 0x2855F
{
	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_69342[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_425(iVar10, iParam0, 33);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_433(int iParam0)//Position - 0x288C1
{
	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_69342[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_425(iVar10, iParam0, 17);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_434(int iParam0)//Position - 0x28AD9
{
	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_69342[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_425(iVar10, iParam0, 18);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_435(int iParam0)//Position - 0x28D0A
{
	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_69342[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_425(iVar10, iParam0, 7);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_436(int iParam0)//Position - 0x28E19
{
	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_69342[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_425(iVar10, iParam0, 84);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_437(int iParam0)//Position - 0x297FE
{
	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_69342[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_425(iVar10, iParam0, 104);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_438(int iParam0)//Position - 0x2A3BD
{
	if (iParam0 < 136)
	{
		func_440(iParam0);
	}
	else
	{
		func_439(iParam0);
	}
	if (Global_69342[0 /*14*/].f_2 == -1)
	{
		func_425(3, iParam0, 242);
	}
}

void func_439(int iParam0)//Position - 0x2A3F1
{
	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_69342[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_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_440(int iParam0)//Position - 0x2B05F
{
	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_69342[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_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_441(int iParam0)//Position - 0x2BFE7
{
	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_69342[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_425(iVar10, iParam0, 9);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_442(int iParam0)//Position - 0x2C11D
{
	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_69342[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_425(iVar10, iParam0, 7);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_443(int iParam0, int iParam1)//Position - 0x2C21A
{
	switch (iParam0)
	{
		case 0:
			func_461(iParam1);
			break;
		
		case 2:
			func_460(iParam1);
			break;
		
		case 3:
			func_456(iParam1);
			break;
		
		case 4:
			func_455(iParam1);
			break;
		
		case 6:
			func_454(iParam1);
			break;
		
		case 5:
			func_453(iParam1);
			break;
		
		case 8:
			func_452(iParam1);
			break;
		
		case 9:
			func_451(iParam1);
			break;
		
		case 10:
			func_450(iParam1);
			break;
		
		case 1:
			func_449(iParam1);
			break;
		
		case 7:
			func_448(iParam1);
			break;
		
		case 11:
			func_447(iParam1);
			break;
		
		case 12:
			func_446(iParam1);
			break;
		
		case 13:
			func_445(iParam1);
			break;
		
		case 14:
			func_444(iParam1);
			break;
	}
}

void func_444(int iParam0)//Position - 0x2C30A
{
	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_69342[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_425(iVar10, iParam0, 175);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_445(int iParam0)//Position - 0x2D884
{
	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_69342[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_425(iVar10, iParam0, 9);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_446(int iParam0)//Position - 0x2D9D4
{
	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_69342[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_425(iVar10, iParam0, 47);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_447(int iParam0)//Position - 0x2DF0C
{
	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_69342[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_425(iVar10, iParam0, 63);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_448(int iParam0)//Position - 0x2E5B3
{
	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_69342[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_425(iVar10, iParam0, 1);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_449(int iParam0)//Position - 0x2E626
{
	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_69342[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_425(iVar10, iParam0, 5);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_450(int iParam0)//Position - 0x2E6FA
{
	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_69342[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_425(iVar10, iParam0, 53);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_451(int iParam0)//Position - 0x2EC29
{
	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_69342[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_425(iVar10, iParam0, 12);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_452(int iParam0)//Position - 0x2EDC5
{
	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_69342[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_425(iVar10, iParam0, 77);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_453(int iParam0)//Position - 0x2F600
{
	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_69342[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_425(iVar10, iParam0, 7);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_454(int iParam0)//Position - 0x2F70F
{
	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_69342[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_425(iVar10, iParam0, 134);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_455(int iParam0)//Position - 0x306B8
{
	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_69342[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_425(iVar10, iParam0, 117);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_456(int iParam0)//Position - 0x313D9
{
	if (iParam0 < 107)
	{
		func_459(iParam0);
	}
	else if (iParam0 < 227)
	{
		func_458(iParam0);
	}
	else
	{
		func_457(iParam0);
	}
	if (Global_69342[0 /*14*/].f_2 == -1)
	{
		func_425(3, iParam0, 318);
	}
}

void func_457(int iParam0)//Position - 0x3141E
{
	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_69342[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_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_458(int iParam0)//Position - 0x31F1D
{
	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_69342[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_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_459(int iParam0)//Position - 0x32D83
{
	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_69342[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_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_460(int iParam0)//Position - 0x33A2D
{
	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_69342[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_425(iVar10, iParam0, 21);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_461(int iParam0)//Position - 0x33CB9
{
	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_69342[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_425(iVar10, iParam0, 10);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_462(int iParam0, int iParam1)//Position - 0x33DFE
{
	switch (iParam0)
	{
		case 0:
			func_479(iParam1);
			break;
		
		case 2:
			func_478(iParam1);
			break;
		
		case 3:
			func_475(iParam1);
			break;
		
		case 4:
			func_474(iParam1);
			break;
		
		case 6:
			func_473(iParam1);
			break;
		
		case 5:
			func_472(iParam1);
			break;
		
		case 8:
			func_471(iParam1);
			break;
		
		case 9:
			func_470(iParam1);
			break;
		
		case 10:
			func_469(iParam1);
			break;
		
		case 1:
			func_468(iParam1);
			break;
		
		case 7:
			func_467(iParam1);
			break;
		
		case 11:
			func_466(iParam1);
			break;
		
		case 12:
			func_465(iParam1);
			break;
		
		case 13:
			func_464(iParam1);
			break;
		
		case 14:
			func_463(iParam1);
			break;
	}
}

void func_463(int iParam0)//Position - 0x33EEE
{
	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_69342[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_425(iVar10, iParam0, 113);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_464(int iParam0)//Position - 0x34DA5
{
	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_69342[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_425(iVar10, iParam0, 10);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_465(int iParam0)//Position - 0x34F1E
{
	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_69342[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_425(iVar10, iParam0, 53);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_466(int iParam0)//Position - 0x354C3
{
	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_69342[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_425(iVar10, iParam0, 45);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_467(int iParam0)//Position - 0x35A17
{
	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_69342[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_425(iVar10, iParam0, 1);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_468(int iParam0)//Position - 0x35A8A
{
	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_69342[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_425(iVar10, iParam0, 5);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_469(int iParam0)//Position - 0x35B5E
{
	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_69342[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_425(iVar10, iParam0, 48);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_470(int iParam0)//Position - 0x3603D
{
	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_69342[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_425(iVar10, iParam0, 20);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_471(int iParam0)//Position - 0x362AB
{
	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_69342[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_425(iVar10, iParam0, 24);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_472(int iParam0)//Position - 0x36582
{
	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_69342[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_425(iVar10, iParam0, 14);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_473(int iParam0)//Position - 0x3674A
{
	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_69342[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_425(iVar10, iParam0, 99);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_474(int iParam0)//Position - 0x372F2
{
	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_69342[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_425(iVar10, iParam0, 113);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_475(int iParam0)//Position - 0x37F94
{
	if (iParam0 < 60)
	{
		func_477(iParam0);
	}
	else
	{
		func_476(iParam0);
	}
	if (Global_69342[0 /*14*/].f_2 == -1)
	{
		func_425(3, iParam0, 181);
	}
}

void func_476(int iParam0)//Position - 0x37FC8
{
	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_69342[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_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_477(int iParam0)//Position - 0x38DE5
{
	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_69342[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_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_478(int iParam0)//Position - 0x394A3
{
	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_69342[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_425(iVar10, iParam0, 6);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_479(int iParam0)//Position - 0x3958E
{
	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_69342[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_425(iVar10, iParam0, 7);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

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

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

bool func_482(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x397ED
{
	int iVar0;
	int iVar1;
	int iVar2;
	var uVar3;
	var uVar20;
	int iVar30;
	
	Global_69342[1 /*14*/] = { func_415(iParam0, iParam1, iParam2) };
	if (gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 0) && !gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 6))
	{
		if (iParam3)
		{
			func_414(iParam1, Global_69342[1 /*14*/].f_5, Global_69342[1 /*14*/].f_2, 1, Global_69342[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_489(iParam0, iParam2) };
					iVar1 = 0;
					while (iVar1 <= 14)
					{
						if ((uVar3[iVar1] != -99 && iVar1 != 12) && iVar1 != 14)
						{
							if (iVar1 != 13)
							{
								func_482(iParam0, iVar1, uVar3[iVar1], 1, 1);
								func_493(iParam0, iVar1, uVar3[iVar1], 1);
							}
							else
							{
								uVar20 = { func_483(iParam0, uVar3[iVar1]) };
								iVar2 = 0;
								while (iVar2 <= 8)
								{
									func_482(iParam0, 14, uVar20[iVar2], 1, 1);
									func_493(iParam0, 14, uVar20[iVar2], 1);
									iVar2++;
								}
							}
						}
						iVar1++;
					}
				}
			}
		}
		else
		{
			func_414(iParam1, Global_69342[1 /*14*/].f_5, Global_69342[1 /*14*/].f_2, 1, Global_69342[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)
							{
								iVar30 = (227 + Global_69342[1 /*14*/].f_4);
								func_482(iParam0, 3, iVar30, 1, 0);
							}
							else if (iParam2 >= 227 && iParam2 <= 242)
							{
								iVar30 = (176 + Global_69342[1 /*14*/].f_4);
								func_482(iParam0, 3, iVar30, 1, 0);
							}
							break;
						
						case 11:
							if (iParam2 >= 9 && iParam2 <= 24)
							{
								iVar30 = (25 + Global_69342[1 /*14*/].f_4);
								func_482(iParam0, 11, iVar30, 1, 0);
							}
							else if (iParam2 >= 25 && iParam2 <= 40)
							{
								iVar30 = (9 + Global_69342[1 /*14*/].f_4);
								func_482(iParam0, 11, iVar30, 1, 0);
							}
							break;
						
						case 8:
							if (iParam2 >= 27 && iParam2 <= 42)
							{
								iVar30 = (43 + Global_69342[1 /*14*/].f_4);
								func_482(iParam0, 8, iVar30, 1, 0);
								iVar30 = (59 + Global_69342[1 /*14*/].f_4);
								func_482(iParam0, 8, iVar30, 1, 0);
							}
							else if (iParam2 >= 43 && iParam2 <= 58)
							{
								iVar30 = (27 + Global_69342[1 /*14*/].f_4);
								func_482(iParam0, 8, iVar30, 1, 0);
								iVar30 = (59 + Global_69342[1 /*14*/].f_4);
								func_482(iParam0, 8, iVar30, 1, 0);
							}
							else if (iParam2 >= 59 && iParam2 <= 74)
							{
								iVar30 = (27 + Global_69342[1 /*14*/].f_4);
								func_482(iParam0, 8, iVar30, 1, 0);
								iVar30 = (43 + Global_69342[1 /*14*/].f_4);
								func_482(iParam0, 8, iVar30, 1, 0);
							}
							break;
						
						case 14:
							if (iParam2 >= 64 && iParam2 <= 79)
							{
								iVar30 = (41 + Global_69342[1 /*14*/].f_4);
								func_482(iParam0, 14, iVar30, 1, 0);
							}
							break;
					}
					break;
				
				case joaat("player_two"):
					switch (iParam1)
					{
						case 4:
							if (iParam2 >= 81 && iParam2 <= 90)
							{
								iVar30 = (94 + Global_69342[1 /*14*/].f_4);
								func_482(iParam0, 4, iVar30, 1, 0);
							}
							break;
						
						case 12:
							if (iParam2 == 2)
							{
								func_482(iParam0, 14, 17, 1, 0);
							}
							break;
					}
					break;
				}
		}
		return true;
	}
	return false;
}

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

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

int func_485(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x3A62D
{
	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_487(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_426(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_486(iParam0, func_426(iParam2)) + iVar38);
				}
				iVar38++;
			}
			iVar37++;
		}
	}
	return -99;
}

int func_486(int iParam0, int iParam1)//Position - 0x3A70D
{
	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_487(int iParam0)//Position - 0x3AAB4
{
	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_488(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9)//Position - 0x3AB15
{
	(*iParam0)[0] = iParam1;
	(*iParam0)[1] = iParam2;
	(*iParam0)[2] = iParam3;
	(*iParam0)[3] = iParam4;
	(*iParam0)[4] = iParam5;
	(*iParam0)[5] = iParam6;
	(*iParam0)[6] = iParam7;
	(*iParam0)[7] = iParam8;
	(*iParam0)[8] = iParam9;
}

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

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

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

bool func_493(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x3CCB1
{
	Global_69342[1 /*14*/] = { func_415(iParam0, iParam1, iParam2) };
	if (gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 0) && !gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 6))
	{
		if (iParam3)
		{
			func_414(iParam1, Global_69342[1 /*14*/].f_5, Global_69342[1 /*14*/].f_2, 0, Global_69342[1 /*14*/].f_1, 1, 0);
		}
		else
		{
			func_414(iParam1, Global_69342[1 /*14*/].f_5, Global_69342[1 /*14*/].f_2, 0, Global_69342[1 /*14*/].f_1, 0, 1);
		}
		return true;
	}
	return false;
}

int func_494(int iParam0, int iParam1, int iParam2)//Position - 0x3CD4C
{
	int iVar0;
	int iVar1;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (iParam1 == 12)
		{
			iVar0 = 0;
			while (iVar0 <= 53)
			{
				if (func_501(iParam0, iParam1, iVar0))
				{
					return iVar0;
				}
				iVar0++;
			}
		}
		else if (iParam1 == 13)
		{
			iVar1 = 0;
			while (iVar1 <= 19)
			{
				if (func_501(iParam0, iParam1, iVar1))
				{
					return iVar1;
				}
				iVar1++;
			}
			return 31;
		}
		else if (iParam1 == 14)
		{
			if (iParam2 == -1)
			{
			}
			else
			{
				return func_497(iParam0, iParam2);
			}
		}
		else
		{
			return func_495(iParam0, iParam1);
		}
	}
	return -99;
}

int func_495(int iParam0, int iParam1)//Position - 0x3CDED
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (((iParam1 == 12 || iParam1 == 13) || iParam1 == 14) || ped::is_ped_injured(iParam0))
	{
		return -99;
	}
	iVar0 = func_426(iParam1);
	iVar1 = ped::get_ped_drawable_variation(iParam0, iVar0);
	iVar2 = ped::get_ped_texture_variation(iParam0, iVar0);
	return func_496(iParam0, iVar1, iVar2, iParam1);
}

int func_496(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x3CE4D
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	
	iVar0 = func_426(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_497(int iParam0, int iParam1)//Position - 0x3CED1
{
	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_500(iParam1);
	}
	iVar1 = ped::get_ped_prop_texture_index(iParam0, iParam1);
	return func_498(iParam0, iVar0, iVar1, iParam1);
}

int func_498(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x3CF17
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	
	if (iParam1 == -1)
	{
		return func_500(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_485(entity::get_entity_model(iParam0), iVar1, 14, 3);
		}
		else if (iVar0 == joaat("mp_f_freemode_01"))
		{
			return func_485(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_499(iParam0, iParam3));
					return iVar3;
				}
				else
				{
					iVar3++;
				}
				iVar5++;
			}
		}
		iVar4++;
	}
	return func_500(iParam3);
}

int func_499(int iParam0, int iParam1)//Position - 0x3D013
{
	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_500(int iParam0)//Position - 0x3D151
{
	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_501(int iParam0, int iParam1, int iParam2)//Position - 0x3D1D7
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	var uVar5;
	var uVar22;
	int iVar32;
	var uVar33;
	
	if (ped::is_ped_injured(iParam0))
	{
		return false;
	}
	iVar0 = entity::get_entity_model(iParam0);
	Global_69342[1 /*14*/] = { func_415(iVar0, iParam1, iParam2) };
	if (!gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 0))
	{
		return false;
	}
	if (iParam1 == 12)
	{
		uVar5 = { func_489(iVar0, iParam2) };
		iVar2 = 0;
		while (iVar2 <= 14)
		{
			if ((uVar5[iVar2] != -99 && iVar2 != 12) && iVar2 != 14)
			{
				if (!func_501(iParam0, iVar2, uVar5[iVar2]))
				{
					if (iVar2 == 13)
					{
						uVar22 = { func_483(iVar0, uVar5[iVar2]) };
						iVar3 = 0;
						while (iVar3 <= 8)
						{
							if (!func_501(iParam0, 14, uVar22[iVar3]))
							{
								iVar4 = 0;
								while (iVar4 <= 19)
								{
									Global_69342[2 /*14*/] = { func_415(iVar0, 14, iVar4) };
									if (Global_69342[2 /*14*/].f_12 == iVar3)
									{
										if (func_501(iParam0, 14, iVar4))
										{
											if (!func_502(iVar0, iParam2, 14, iVar4, &uVar5, &(Global_69342[2 /*14*/])))
											{
												return false;
											}
										}
									}
									iVar4++;
								}
							}
							iVar3++;
						}
					}
					else
					{
						iVar1 = func_495(iParam0, iVar2);
						Global_69342[2 /*14*/] = { func_415(iVar0, iVar2, iVar1) };
						if (!func_502(iVar0, iParam2, iVar2, iVar1, &uVar5, &(Global_69342[2 /*14*/])))
						{
							return false;
						}
					}
				}
			}
			iVar2++;
		}
		return true;
	}
	else if (iParam1 == 13)
	{
		uVar33 = { func_483(iVar0, iParam2) };
		iVar32 = 0;
		while (iVar32 <= 8)
		{
			if (!func_501(iParam0, 14, uVar33[iVar32]))
			{
				return false;
			}
			iVar32++;
		}
		return true;
	}
	else if (iParam1 == 14)
	{
		if (ped::get_ped_prop_index(iParam0, Global_69342[1 /*14*/].f_12) == Global_69342[1 /*14*/].f_3 && (ped::get_ped_prop_texture_index(iParam0, Global_69342[1 /*14*/].f_12) == Global_69342[1 /*14*/].f_4 || Global_69342[1 /*14*/].f_3 == -1))
		{
			return true;
		}
	}
	else if (Global_69342[1 /*14*/].f_3 == ped::get_ped_drawable_variation(iParam0, func_426(iParam1)) && Global_69342[1 /*14*/].f_4 == ped::get_ped_texture_variation(iParam0, func_426(iParam1)))
	{
		return true;
	}
	return false;
}

bool func_502(int iParam0, int iParam1, int iParam2, int iParam3, var uParam4, var uParam5)//Position - 0x3D42F
{
	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_483(iParam0, (*uParam4)[13]) };
		iVar10 = 0;
		while (iVar10 <= 8)
		{
			if (uVar0[iVar10] == iParam3)
			{
				return true;
			}
			iVar10++;
		}
	}
	if (func_507(iParam0, iParam2, iParam3))
	{
		return true;
	}
	if (iParam0 == joaat("player_zero"))
	{
		if (func_506(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_505(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_503(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_506(iParam0, iParam2, iParam3))
		{
			if ((iParam1 == 3 || iParam1 == 5) || iParam1 == 7)
			{
				return false;
			}
			return true;
		}
		else if (func_505(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_503(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_506(iParam0, iParam2, iParam3))
		{
			if (((((iParam1 == 1 || iParam1 == 2) || iParam1 == 6) || iParam1 == 8) || iParam1 == 45) || iParam1 == 12)
			{
				return false;
			}
			return true;
		}
		else if (func_505(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_503(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_503(int iParam0, int iParam1, int iParam2)//Position - 0x3DA2A
{
	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_504(iParam0, iParam2, 14, 3), -1757550583, 1) || dlc1::_0x341DE7ED1D2A1BFD(func_504(iParam0, iParam2, 14, 3), -1842686353, 1));
					}
					break;
				
				case 1:
					if (iParam2 >= 26)
					{
						return (dlc1::_0x341DE7ED1D2A1BFD(func_504(iParam0, iParam2, 1, 3), -1757550583, 0) || dlc1::_0x341DE7ED1D2A1BFD(func_504(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_504(iParam0, iParam2, 14, 4), -1757550583, 1) || dlc1::_0x341DE7ED1D2A1BFD(func_504(iParam0, iParam2, 14, 4), -1842686353, 1));
					}
					break;
				
				case 1:
					if (iParam2 >= 26)
					{
						return (dlc1::_0x341DE7ED1D2A1BFD(func_504(iParam0, iParam2, 1, 4), -1757550583, 0) || dlc1::_0x341DE7ED1D2A1BFD(func_504(iParam0, iParam2, 1, 4), -1842686353, 0));
					}
					break;
			}
			break;
	}
	return false;
}

int func_504(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x3DC7F
{
	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_487(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_486(iParam0, func_426(iParam2)));
		if (iVar40 < 0)
		{
			return -1;
		}
		if ((iParam0 == Global_69464.f_26[iParam2] && iParam1 == Global_69464[iParam2]) && Global_69464.f_13[iParam2] != 0)
		{
			return Global_69464.f_13[iParam2];
		}
		iVar41 = dlc1::_get_num_props_from_outfit(iParam3, 6, -1, 0, -1, func_426(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_69464.f_13[iParam2] = Var21.f_1;
					Global_69464[iParam2] = iParam1;
					Global_69464.f_26[iParam2] = iParam0;
					return Var21.f_1;
				}
				iVar39++;
			}
			iVar38++;
		}
	}
	return -1;
}

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

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

bool func_507(int iParam0, int iParam1, int iParam2)//Position - 0x3E4AF
{
	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_508(int iParam0)//Position - 0x3E548
{
	return Global_101186.f_7851.f_330[iParam0 /*6*/];
}

void func_509(int iParam0, var uParam1, int iParam2, int iParam3)//Position - 0x3E55E
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = func_409(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_64(iVar0))
		{
			Global_101186.f_1902.f_539[iVar0 /*65*/].f_59 = uParam1->f_59;
			Global_101186.f_1902.f_539[iVar0 /*65*/].f_60 = uParam1->f_60;
			Global_101186.f_1902.f_539[iVar0 /*65*/].f_61 = uParam1->f_61;
			if (func_658(iParam0, iVar1, &iVar2, 0))
			{
				func_644(iParam0, 2, iVar2, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
			}
			Global_101186.f_1902.f_539[iVar0 /*65*/].f_62 = uParam1->f_62;
			Global_101186.f_1902.f_539[iVar0 /*65*/].f_63 = uParam1->f_63;
			Global_101186.f_1902.f_539[iVar0 /*65*/].f_64 = uParam1->f_64;
			if (func_642(iParam0, iVar1, &iVar2))
			{
				func_644(iParam0, 1, iVar2, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
			}
		}
		else if (network::network_is_game_in_progress() && entity::get_entity_model(iParam0) == entity::get_entity_model(player::player_ped_id()))
		{
			func_265(746, uParam1->f_60, Global_69340, 1);
			func_265(747, uParam1->f_61, Global_69340, 1);
			iVar4 = func_496(iParam0, uParam1->f_13[2], (*uParam1)[2], 2);
			func_512(iParam0, 2, iVar4, 0, -1, 0, 0, 0, -1, -1, Global_69340, 0, 0);
			if (!iParam2)
			{
				iVar5 = func_496(iParam0, uParam1->f_13[1], (*uParam1)[1], 1);
				func_512(iParam0, 1, iVar5, 0, -1, 0, 0, 0, -1, -1, Global_69340, 0, 0);
			}
			if (!iParam3)
			{
				iVar6 = func_498(iParam0, uParam1->f_39[0], uParam1->f_49[0], 0);
				func_512(iParam0, 14, iVar6, 0, -1, 0, 0, 0, -1, -1, Global_69340, 0, 0);
			}
		}
		if (network::network_is_game_in_progress() && iParam0 == player::player_ped_id())
		{
			func_265(745, uParam1->f_59, Global_69340, 1);
			func_265(2043, uParam1->f_59, Global_69340, 1);
			func_510(161, 1, -1, 1);
		}
	}
}

void func_510(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x3E7EF
{
	int iVar0;
	
	if (func_511())
	{
		iVar0 = Global_2494881[iParam0 /*5*/][func_267(iParam2)];
		if (iVar0 != 0)
		{
			stats::stat_set_bool(iVar0, iParam1, iParam3);
		}
	}
}

bool func_511()//Position - 0x3E821
{
	return true;
	return false;
}

bool func_512(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12)//Position - 0x3E82E
{
	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 uVar32;
	var uVar42;
	int iVar59;
	var uVar60;
	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;
	float fVar94;
	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;
	var uVar112;
	int iVar113;
	int iVar114;
	int iVar115;
	int iVar116;
	int iVar117;
	int iVar118;
	var uVar119;
	int iVar120;
	int iVar121;
	int iVar122;
	int iVar123;
	int iVar124;
	
	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_2418529[player::player_id() /*313*/].f_220 == 2)
	{
		if (!iParam12)
		{
			return false;
		}
	}
	Global_69341++;
	iVar5 = entity::get_entity_model(iParam0);
	iVar6 = -99;
	iVar7 = -99;
	iVar8 = -1;
	iVar9 = -99;
	iVar10 = -99;
	iVar11 = -1;
	iVar12 = -1;
	if (iParam5 == 0)
	{
		Global_69342[1 /*14*/] = { func_609(iVar5, iParam1, iParam2) };
		if (!func_608(iParam3))
		{
			Global_69341 = (Global_69341 - 1);
			return false;
		}
		func_605(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_69385 };
		}
		else
		{
			uVar15 = { func_489(iVar5, iParam2) };
		}
		iVar0 = 0;
		while (iVar0 <= 14)
		{
			if (uVar15[iVar0] != -99)
			{
				if (iVar0 == 10 && uVar15.f_16)
				{
					Global_69342[1 /*14*/] = { func_609(iVar5, 10, 0) };
					if (iParam4 == -1)
					{
						ped::set_ped_component_variation(iParam0, func_426(iVar0), Global_69342[1 /*14*/].f_3, Global_69342[1 /*14*/].f_4, ped::get_ped_palette_variation(iParam0, func_426(iVar0)));
					}
					else
					{
						ped::set_ped_component_variation(iParam0, func_426(iVar0), Global_69342[1 /*14*/].f_3, Global_69342[1 /*14*/].f_4, iParam4);
					}
					if (gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 1))
					{
						func_605(iVar5, 10, 0, 1);
					}
				}
				else
				{
					Global_69342[1 /*14*/] = { func_609(iVar5, iVar0, uVar15[iVar0]) };
					if (gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 0) || iVar0 == 13)
					{
						if (iVar0 == 13)
						{
							uVar32 = 9;
							if (iParam5 == 1)
							{
								uVar32 = { Global_69402 };
							}
							else
							{
								uVar32 = { func_483(iVar5, uVar15[iVar0]) };
							}
							iVar1 = 0;
							while (iVar1 <= 8)
							{
								Global_69342[1 /*14*/] = { func_609(iVar5, 14, uVar32[iVar1]) };
								func_603(iParam0, Global_69342[1 /*14*/].f_12, Global_69342[1 /*14*/].f_3, Global_69342[1 /*14*/].f_4);
								if (gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 1))
								{
									func_605(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_426(iVar0), Global_69342[1 /*14*/].f_3, Global_69342[1 /*14*/].f_4, ped::get_ped_palette_variation(iParam0, func_426(iVar0)));
								}
								else
								{
									ped::set_ped_component_variation(iParam0, func_426(iVar0), Global_69342[1 /*14*/].f_3, Global_69342[1 /*14*/].f_4, iParam4);
								}
							}
							else
							{
								func_512(iParam0, iVar0, uVar15[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
							}
							if (gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 1))
							{
								func_605(iVar5, iVar0, uVar15[iVar0], 1);
							}
						}
					}
				}
			}
			else if (iVar0 != 12 && iVar0 != 14)
			{
				Global_69342[1 /*14*/] = { func_609(iVar5, iVar0, func_602(iParam0, iVar0, -1)) };
				if (gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 3))
				{
					uVar42 = { func_489(iVar5, 0) };
					func_512(iParam0, iVar0, uVar42[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				}
			}
			iVar0++;
		}
		Global_2621444 = uVar13;
		Global_2621445 = uVar14;
		if (iParam5 == 0)
		{
			iVar59 = func_601();
			if (iVar59 != -1)
			{
				func_599(iVar59, 0, Global_69340);
			}
			func_597(iParam0, 11, uVar15[11], iParam6, 0);
		}
	}
	else if (iParam1 == 13)
	{
		uVar60 = { func_483(iVar5, iParam2) };
		iVar1 = 0;
		while (iVar1 <= 8)
		{
			Global_69342[1 /*14*/] = { func_609(iVar5, 14, uVar60[iVar1]) };
			func_603(iParam0, Global_69342[1 /*14*/].f_12, Global_69342[1 /*14*/].f_3, Global_69342[1 /*14*/].f_4);
			if (gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 1))
			{
				func_605(iVar5, 14, uVar60[iVar1], 1);
			}
			if (iParam5 == 0)
			{
				if (Global_69341 == 1)
				{
					iVar2 = 0;
					while (iVar2 < 15)
					{
						iVar3 = func_595(iParam0, iVar5, 14, uVar60[iVar1], iVar2, 0);
						if (iVar3 != -99)
						{
							func_512(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
						}
						iVar2++;
					}
				}
			}
			iVar1++;
		}
	}
	else if (iParam1 == 14)
	{
		iVar70 = 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(iVar70, 838607662, 0))
		{
			iVar71 = func_495(iParam0, 1);
			iVar3 = func_595(iParam0, iVar5, 1, iVar71, 14, Global_69342[1 /*14*/].f_12);
			if (iVar3 != -99 && iVar3 != iParam2)
			{
				iVar7 = func_594(iVar5, 1, -1);
			}
		}
		func_603(iParam0, Global_69342[1 /*14*/].f_12, Global_69342[1 /*14*/].f_3, Global_69342[1 /*14*/].f_4);
		if (gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 1))
		{
			func_605(iVar5, iParam1, iParam2, 1);
		}
		if (iParam5 == 0)
		{
			if (Global_69341 == 1)
			{
				iVar2 = 0;
				while (iVar2 < 15)
				{
					iVar3 = func_595(iParam0, iVar5, iParam1, iParam2, iVar2, 0);
					if (iVar3 != -99)
					{
						func_512(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
					}
					iVar2++;
				}
			}
		}
	}
	else
	{
		if (iParam1 == 11)
		{
			if (iParam5 == 0)
			{
				iVar72 = -1;
				if (gameplay::is_bit_set(Global_69342[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);
				}
				iVar73 = func_495(iParam0, 11);
				iVar74 = func_495(iParam0, 8);
				iVar75 = func_495(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"))
					{
						iVar72 = func_504(iVar5, iParam2, 11, 3);
					}
					else if (iVar5 == joaat("mp_f_freemode_01"))
					{
						iVar72 = func_504(iVar5, iParam2, 11, 4);
					}
					if (((dlc1::_0x341DE7ED1D2A1BFD(iVar72, 320460654, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar72, -2017999390, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar72, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar72, -826135203, 0))
					{
					}
					else
					{
						iVar9 = func_495(iParam0, 8);
					}
				}
				iVar76 = dlc1::get_hash_name_for_component(iParam0, 3, ped::get_ped_drawable_variation(iParam0, 3), 0);
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar76, -356646862, 0))
				{
					iVar77 = func_593(iVar5, iVar74, iVar73, iVar75);
					if (iVar77 == -99)
					{
						iVar77 = func_595(iParam0, iVar5, 11, iVar73, 3, 0);
					}
					switch (iVar76)
					{
						case 1165919867:
						case 1606204151:
						case 1774276352:
						case 1934254610:
						case 980775017:
						case 399321881:
							iVar77 = 11;
							iVar72 = func_504(iVar5, iParam2, 11, 4);
							if (!dlc1::_0x341DE7ED1D2A1BFD(iVar72, -530089825, 0))
							{
								iVar77 = -99;
							}
							break;
					}
					if (iVar77 != -99)
					{
						iVar78 = iVar77;
						iVar79 = 0;
						while (iVar79 < 15)
						{
							if (func_592(iVar5, iVar78, iVar79) == iVar76)
							{
								iVar11 = iVar79;
								iVar12 = ped::get_ped_texture_variation(iParam0, 3);
							}
							iVar79++;
						}
					}
				}
				iVar72 = -1;
				if ((iVar5 == joaat("mp_f_freemode_01") && iParam2 >= 256) && dlc1::_0x341DE7ED1D2A1BFD(func_504(iVar5, iParam2, 11, 4), -1200513218, 0))
				{
					iVar73 = func_495(iParam0, 11);
					if (iVar73 >= 256)
					{
						iVar72 = func_504(iVar5, iVar73, 11, 4);
					}
					if (iVar73 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar72, 1965569012, 0))
					{
						iVar80 = func_590(iVar5, iVar73, iParam2, ped::get_ped_texture_variation(iParam0, 11));
						if (iVar80 != -99)
						{
							func_512(iParam0, 8, iVar80, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0);
							Global_69342[1 /*14*/] = { func_609(iVar5, iParam1, iParam2) };
						}
					}
				}
				else if (func_589(iVar5, iParam2))
				{
					if (iVar5 == joaat("mp_m_freemode_01"))
					{
						if (iVar73 >= 237)
						{
							iVar72 = func_504(iVar5, iVar73, 11, 3);
						}
					}
					else if (iVar5 == joaat("mp_f_freemode_01"))
					{
						if (iVar73 >= 256)
						{
							iVar72 = func_504(iVar5, iVar73, 11, 4);
						}
					}
					iVar9 = -99;
					if (!func_589(iVar5, iVar73))
					{
						if ((iVar5 == joaat("mp_f_freemode_01") && iVar73 >= 256) && (dlc1::_0x341DE7ED1D2A1BFD(iVar72, -1200513218, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar72, 1965569012, 0)))
						{
						}
						else if ((iVar5 == joaat("mp_f_freemode_01") && iVar73 >= 256) && ((((((((dlc1::_0x341DE7ED1D2A1BFD(iVar72, 684992453, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar72, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar72, -1939378450, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar72, -820724897, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar72, 153792394, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar72, -872449705, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar72, 700658917, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar72, -549843760, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar72, 1830529185, 0)))
						{
						}
						else
						{
							iVar81 = func_590(iVar5, iVar73, iParam2, ped::get_ped_texture_variation(iParam0, 11));
							if (iVar81 != -99)
							{
								func_512(iParam0, 8, iVar81, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0);
								Global_69342[1 /*14*/] = { func_609(iVar5, iParam1, iParam2) };
								iVar9 = -99;
							}
							else
							{
								if (iVar5 == joaat("mp_m_freemode_01"))
								{
									iVar82 = func_594(iVar5, 11, -1);
									Global_69342[1 /*14*/] = { func_609(iVar5, 11, iVar82) };
									iVar81 = func_590(iVar5, iVar82, iParam2, Global_69342[1 /*14*/].f_4);
									if (iVar81 == -99)
									{
										iVar81 = 240;
									}
								}
								else if (iVar5 == joaat("mp_f_freemode_01"))
								{
									iVar81 = 48;
								}
								func_512(iParam0, 8, iVar81, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0);
								Global_69342[1 /*14*/] = { func_609(iVar5, iParam1, iParam2) };
							}
						}
					}
					else
					{
						Global_69342[1 /*14*/] = { func_609(iVar5, 11, iVar73) };
						iVar83 = Global_69342[1 /*14*/].f_3;
						Global_69342[1 /*14*/] = { func_609(iVar5, 11, iParam2) };
						iVar84 = Global_69342[1 /*14*/].f_3;
						if (iVar83 != iVar84)
						{
							Global_69342[1 /*14*/] = { func_609(iVar5, 8, iVar74) };
							iVar85 = Global_69342[1 /*14*/].f_4;
							iVar86 = func_588(iVar5, iVar74, iVar85);
							if (iVar86 == -99)
							{
								iVar87 = iVar74;
								if (iVar5 == joaat("mp_m_freemode_01"))
								{
									if ((iParam2 >= 96 && iParam2 <= 107) || func_587(func_504(iVar5, iParam2, 11, 3)) == 6)
									{
										iVar86 = func_594(iVar5, 11, -1);
										Global_69342[1 /*14*/] = { func_609(iVar5, 11, iVar86) };
										iVar87 = func_590(iVar5, iVar86, iParam2, Global_69342[1 /*14*/].f_4);
									}
								}
								if (iVar5 == joaat("mp_f_freemode_01") && (iVar74 == 32 || iVar74 == 33))
								{
									if (!dlc1::_0x341DE7ED1D2A1BFD(func_504(iVar5, iParam2, 11, 4), -491588875, 0))
									{
										iVar86 = func_594(iVar5, 11, -1);
										Global_69342[1 /*14*/] = { func_609(iVar5, 11, iVar86) };
										iVar87 = func_590(iVar5, iVar86, iParam2, Global_69342[1 /*14*/].f_4);
									}
								}
							}
							else
							{
								iVar87 = func_590(iVar5, iVar86, iParam2, iVar85);
								if (iVar5 == joaat("mp_m_freemode_01"))
								{
									if (dlc1::_0x341DE7ED1D2A1BFD(func_504(iVar5, iParam2, 11, 3), -1719338724, 0))
									{
										if (!func_586(iVar5, func_495(iParam0, 4), iVar86))
										{
											iVar87 = 240;
										}
									}
								}
								else if (iVar5 == joaat("mp_f_freemode_01"))
								{
									if (dlc1::_0x341DE7ED1D2A1BFD(func_504(iVar5, iParam2, 11, 4), -1719338724, 0))
									{
										if (!func_586(iVar5, func_495(iParam0, 4), iVar86))
										{
											iVar87 = 48;
										}
									}
								}
							}
							if (iVar87 != -99)
							{
								func_512(iParam0, 8, iVar87, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0);
							}
							else if (iVar5 == joaat("mp_m_freemode_01"))
							{
								iVar86 = func_594(iVar5, 11, -1);
								Global_69342[1 /*14*/] = { func_609(iVar5, 11, iVar86) };
								iVar87 = func_590(iVar5, iVar86, iParam2, Global_69342[1 /*14*/].f_4);
								if (iVar87 == -99)
								{
									iVar87 = 240;
								}
								func_512(iParam0, 8, iVar87, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0);
							}
							else if (iVar5 == joaat("mp_f_freemode_01"))
							{
								func_512(iParam0, 8, 48, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0);
							}
							Global_69342[1 /*14*/] = { func_609(iVar5, iParam1, iParam2) };
						}
					}
				}
				else
				{
					func_584(iVar5, iParam2);
					ped::set_ped_component_variation(iParam0, 10, 0, 0, ped::get_ped_palette_variation(iParam0, 10));
				}
			}
			func_597(iParam0, iParam1, iParam2, iParam6, 0);
			if (iParam5 == 0)
			{
				iVar6 = func_593(iVar5, func_602(iParam0, 8, -1), iParam2, func_602(iParam0, 4, -1));
			}
		}
		else if (iParam1 == 2)
		{
			if (iParam5 == 0)
			{
				if (iParam8 == -1)
				{
					iParam8 = func_300(2143, iParam10, 0);
				}
				if (iParam9 == -1)
				{
					iParam9 = func_300(2150, iParam10, 0);
				}
				ped::_set_ped_hair_color(iParam0, iParam8, iParam9);
			}
			if (iParam7 == 0)
			{
				func_558(iParam0, iParam2, iParam10, iParam11);
			}
		}
		else if (iParam1 == 8)
		{
			func_597(iParam0, iParam1, iParam2, iParam6, 0);
			iVar88 = func_495(iParam0, 11);
			if (func_589(iVar5, iVar88))
			{
				iVar89 = func_588(iVar5, iParam2, Global_69342[1 /*14*/].f_4);
				func_584(iVar5, iVar89);
			}
			if (iParam5 == 0)
			{
				iVar6 = func_593(iVar5, iParam2, func_495(iParam0, 11), func_495(iParam0, 4));
			}
		}
		else if (iParam1 == 9)
		{
			if (iParam2 >= 1 && iParam2 <= 41)
			{
				iVar90 = func_495(iParam0, 7);
				if (!func_555(iVar5, iVar90, 9, -99, -99, -99, iParam0, 0, iParam2, -99, -99, -99))
				{
					ped::set_ped_component_variation(iParam0, func_426(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)))
			{
				iVar91 = func_300(2090, iParam10, 0);
				iVar92 = func_300(2091, iParam10, 0);
				iVar93 = func_300(2092, iParam10, 0);
				fVar94 = func_554(135, iParam10);
				if (iVar5 == joaat("mp_m_freemode_01"))
				{
					ped::set_ped_head_blend_data(iParam0, 0, 0, 0, iVar91, iVar92, iVar93, 0f, fVar94, 0f, 0);
				}
				else if (iVar5 == joaat("mp_f_freemode_01"))
				{
					ped::set_ped_head_blend_data(iParam0, 21, 0, 0, iVar91, iVar92, iVar93, 0f, fVar94, 0f, 0);
				}
				iVar95 = 0;
				while (iVar95 < 20)
				{
					ped::_set_ped_face_feature(iParam0, iVar95, 0f);
					iVar95++;
				}
			}
			else
			{
				func_538(iParam0, Global_69340);
			}
			iVar96 = dlc1::get_hash_name_for_component(iParam0, 1, ped::get_ped_drawable_variation(iParam0, 1), ped::get_ped_texture_variation(iParam0, 1));
			iVar97 = dlc1::get_hash_name_for_component(iParam0, 1, Global_69342[1 /*14*/].f_3, Global_69342[1 /*14*/].f_4);
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar96, 838607662, 0))
			{
				if (!dlc1::_0x341DE7ED1D2A1BFD(iVar97, 838607662, 0))
				{
					iVar98 = func_495(iParam0, 1);
					iVar99 = 0;
					while (iVar99 < 9)
					{
						iVar3 = func_595(iParam0, iVar5, iParam1, iVar98, 14, iVar99);
						iVar100 = func_497(iParam0, iVar99);
						if (iVar3 == iVar100)
						{
							ped::clear_ped_prop(iParam0, iVar99);
						}
						iVar99++;
					}
				}
			}
		}
		else if (iParam1 == 4)
		{
			iVar101 = func_495(iParam0, 11);
			iVar102 = func_495(iParam0, 8);
			if (iVar5 == joaat("mp_m_freemode_01"))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(func_504(iVar5, iVar101, 11, 3), -1719338724, 0))
				{
					if (!func_586(iVar5, iParam2, func_588(iVar5, iVar102, 0)))
					{
						func_512(iParam0, 8, 240, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0);
						Global_69342[1 /*14*/] = { func_609(iVar5, iParam1, iParam2) };
					}
				}
			}
			else if (iVar5 == joaat("mp_f_freemode_01"))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(func_504(iVar5, iVar101, 11, 4), -1719338724, 0))
				{
					if (!func_586(iVar5, iParam2, func_588(iVar5, iVar102, 0)))
					{
						func_512(iParam0, 8, 78, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0);
						Global_69342[1 /*14*/] = { func_609(iVar5, iParam1, iParam2) };
					}
				}
			}
			if (iParam5 == 0)
			{
				iVar6 = func_593(iVar5, func_495(iParam0, 8), func_495(iParam0, 11), iParam2);
			}
			iVar103 = dlc1::get_hash_name_for_component(iParam0, 3, ped::get_ped_drawable_variation(iParam0, 3), 0);
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar103, -356646862, 0))
			{
				iVar104 = func_593(iVar5, iVar102, iVar101, iParam2);
				if (iVar104 == -99)
				{
					iVar104 = func_595(iParam0, iVar5, 11, iVar101, 3, 0);
				}
				switch (iVar103)
				{
					case 1165919867:
					case 1606204151:
					case 1774276352:
					case 1934254610:
					case 980775017:
					case 399321881:
						iVar104 = 11;
						iVar105 = func_504(iVar5, iParam2, 11, 4);
						if (!dlc1::_0x341DE7ED1D2A1BFD(iVar105, -530089825, 0))
						{
							iVar104 = -99;
						}
						break;
				}
				if (iVar104 != -99)
				{
					iVar106 = iVar104;
					iVar107 = 0;
					while (iVar107 < 15)
					{
						if (func_592(iVar5, iVar106, iVar107) == iVar103)
						{
							iVar11 = iVar107;
							iVar12 = ped::get_ped_texture_variation(iParam0, 3);
						}
						iVar107++;
					}
				}
			}
		}
		if (iParam4 == -1)
		{
			ped::set_ped_component_variation(iParam0, func_426(iParam1), Global_69342[1 /*14*/].f_3, Global_69342[1 /*14*/].f_4, ped::get_ped_palette_variation(iParam0, func_426(iParam1)));
		}
		else
		{
			ped::set_ped_component_variation(iParam0, func_426(iParam1), Global_69342[1 /*14*/].f_3, Global_69342[1 /*14*/].f_4, iParam4);
		}
		if (iParam5 == 0)
		{
			if (Global_69341 == 1)
			{
				iVar2 = 0;
				while (iVar2 < 15)
				{
					iVar3 = func_595(iParam0, iVar5, iParam1, iParam2, iVar2, 0);
					if (iVar3 != -99)
					{
						func_512(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 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_593(iVar5, iVar3, func_495(iParam0, 11), func_495(iParam0, 4));
							}
						}
					}
					iVar2++;
				}
			}
			if (iParam1 == 11 || iParam1 == 8)
			{
				if (func_537(iParam0))
				{
					iVar108 = func_536(iVar5, iParam1, iParam2);
					if (iVar108 > 0)
					{
						iVar108 = (iVar108 + ped::get_ped_texture_variation(iParam0, 9));
						if (!func_535(iParam0, 9, iVar108))
						{
							func_512(iParam0, 9, iVar108, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0);
						}
					}
					else
					{
						func_512(iParam0, 9, 0, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 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_512(iParam0, 9, 0, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0);
					}
				}
				iVar109 = func_300(2032, -1, 0);
				if (ped::get_ped_drawable_variation(iParam0, 5) != 0)
				{
					ped::set_ped_component_variation(iParam0, 5, func_532(iParam0, iVar109), func_531(iParam0, iVar109), func_530(iParam0, iVar109));
				}
				if (iParam0 == player::player_ped_id())
				{
					player::set_player_parachute_variation_override(player::player_id(), 5, func_532(player::player_ped_id(), iVar109), func_531(player::player_ped_id(), iVar109), 0);
					player::set_player_parachute_pack_tint_index(player::player_id(), func_530(player::player_ped_id(), iVar109));
					func_527(player::player_id(), iVar109);
				}
			}
			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_512(iParam0, 9, 0, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0);
					}
				}
			}
			if (iVar5 == joaat("mp_f_freemode_01") && (iParam1 == 11 || iParam1 == 4))
			{
				if (iParam1 == 11)
				{
					iVar110 = func_602(iParam0, 4, -1);
					iVar111 = iParam2;
				}
				else
				{
					iVar110 = iParam2;
					iVar111 = func_602(iParam0, 11, -1);
				}
				if (func_526(iVar5, 11, iVar111))
				{
					if (!func_525(iVar5, 4, iVar110))
					{
						if (func_524(iVar5, 4, iVar110, &uVar112))
						{
							func_512(iParam0, 4, uVar112, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0);
						}
					}
				}
				else if (func_525(iVar5, 4, iVar110))
				{
					if (func_523(iVar5, 4, iVar110, &uVar112))
					{
						func_512(iParam0, 4, uVar112, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0);
					}
				}
			}
			if (iParam1 == 4)
			{
				iVar113 = ped::get_ped_drawable_variation(iParam0, 6);
				iVar114 = ped::get_ped_texture_variation(iParam0, 6);
				iVar115 = dlc1::get_hash_name_for_component(iParam0, 6, iVar113, iVar114);
				if (func_522(iVar5, iVar115))
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar115, 1812005517, 0) != func_521(iVar5, iParam2))
					{
						iVar116 = dlc1::_0xC17AD0E5752BECDA(iVar115);
						iVar117 = 0;
						while (iVar117 < iVar116)
						{
							dlc1::get_variant_component(iVar115, iVar117, &iVar118, &uVar119, &iVar120);
							if (iVar120 == 6)
							{
								if (iVar118 != 0 && iVar118 != 1849449579)
								{
									if (iVar5 == joaat("mp_m_freemode_01"))
									{
										func_512(iParam0, 6, func_485(iVar5, iVar118, 6, 3), 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0);
									}
									else if (iVar5 == joaat("mp_f_freemode_01"))
									{
										func_512(iParam0, 6, func_485(iVar5, iVar118, 6, 4), 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0);
									}
								}
							}
							iVar117++;
						}
					}
				}
			}
			if (iParam1 == 11 || iParam1 == 1)
			{
				func_519(iParam0);
				iVar121 = ped::get_ped_drawable_variation(iParam0, 1);
				iVar122 = ped::get_ped_texture_variation(iParam0, 1);
				iVar123 = dlc1::get_hash_name_for_component(iParam0, 1, iVar121, iVar122);
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar123, 838607662, 0))
				{
					iVar3 = func_595(iParam0, iVar5, iParam1, iParam2, 14, 0);
					if (iVar3 != -99)
					{
						func_512(iParam0, 14, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
					}
					iVar3 = func_595(iParam0, iVar5, iParam1, iParam2, 14, 1);
					if (iVar3 != -99)
					{
						func_512(iParam0, 14, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
					}
				}
			}
		}
	}
	if (iParam1 != 2)
	{
		if (func_513(iParam0, &uVar4))
		{
			func_512(iParam0, 2, uVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
		}
	}
	if (iVar6 != -99)
	{
		func_512(iParam0, 3, iVar6, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0);
	}
	if (iVar9 != -99)
	{
		func_512(iParam0, 8, iVar9, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0);
	}
	if (iVar7 != -99)
	{
		func_512(iParam0, 1, iVar7, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
	}
	if (iVar11 != -1)
	{
		iVar124 = func_592(iVar5, ped::get_ped_drawable_variation(iParam0, 3), iVar11);
		if (iVar124 != -1)
		{
			if (iVar5 == joaat("mp_m_freemode_01"))
			{
				iVar10 = func_485(iVar5, iVar124, 3, 3);
			}
			else if (iVar5 == joaat("mp_f_freemode_01"))
			{
				iVar10 = func_485(iVar5, iVar124, 3, 4);
			}
			if (iVar10 != -99)
			{
				iVar10 = (iVar10 + iVar12);
				func_512(iParam0, 3, iVar10, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0);
			}
		}
	}
	Global_69341 = (Global_69341 - 1);
	return true;
}

bool func_513(int iParam0, var uParam1)//Position - 0x3FFF0
{
	int iVar0;
	int iVar1;
	
	*uParam1 = func_602(player::player_ped_id(), 2, -1);
	if (func_300(746, Global_69340, 0) != -99 && func_516())
	{
		if (func_515() == 4)
		{
			return true;
		}
		if (func_300(746, Global_69340, 0) == 0 && func_300(747, Global_69340, 0) == 0)
		{
			if (func_514(161, Global_69340))
			{
				if (func_300(2043, Global_69340, 0) == 0)
				{
					return false;
				}
			}
			else if (func_300(745, Global_69340, 0) == 0)
			{
				return false;
			}
		}
		iVar0 = func_300(746, Global_69340, 0);
		iVar1 = func_300(747, Global_69340, 0);
		if (!func_535(iParam0, iVar1, iVar0))
		{
			if (func_514(161, Global_69340))
			{
				*uParam1 = func_300(2043, Global_69340, 0);
			}
			else
			{
				*uParam1 = func_300(745, Global_69340, 0);
			}
			func_265(746, -99, Global_69340, 1);
			func_265(747, 2, Global_69340, 1);
			return true;
		}
	}
	return false;
}

int func_514(int iParam0, int iParam1)//Position - 0x40103
{
	int iVar0;
	var uVar1;
	
	iVar0 = Global_2494881[iParam0 /*5*/][func_267(iParam1)];
	if (stats::stat_get_bool(iVar0, &uVar1, -1))
	{
		return uVar1;
	}
	return 0;
}

var func_515()//Position - 0x4012F
{
	return Global_1315845;
}

bool func_516()//Position - 0x4013B
{
	if (func_518() && func_517(0))
	{
		return true;
	}
	return false;
}

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

var func_518()//Position - 0x40169
{
	return func_517(func_268() + 1);
}

void func_519(int iParam0)//Position - 0x4017B
{
	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_520(iParam0, 1);
			iVar6 = iVar2;
		}
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, -1889900289, 0))
	{
		iVar5 = (iVar5 - 1);
	}
	else
	{
		iVar5 = func_520(iParam0, 0);
		iVar6 = iVar2;
	}
	ped::set_ped_component_variation(iParam0, 8, iVar5, iVar6, ped::get_ped_palette_variation(iParam0, 8));
}

var func_520(int iParam0, int iParam1)//Position - 0x40730
{
	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_521(int iParam0, int iParam1)//Position - 0x40793
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = -1;
	iVar1 = -1;
	switch (iParam0)
	{
		case joaat("mp_m_freemode_01"):
			if (iParam1 >= 256)
			{
				iVar0 = func_504(iParam0, iParam1, 4, 3);
				iVar1 = func_587(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_504(iParam0, iParam1, 4, 4);
				iVar1 = func_587(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)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1325813684, 0))
			{
				return 1;
			}
			break;
	}
	return 0;
}

bool func_522(int iParam0, int iParam1)//Position - 0x40BEE
{
	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_523(int iParam0, int iParam1, int iParam2, var uParam3)//Position - 0x40C36
{
	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_504(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_485(iParam0, iVar3, iParam1, 4);
											return true;
										}
									}
								}
								iVar2++;
							}
						}
					}
					break;
			}
			break;
	}
	return false;
}

bool func_524(int iParam0, int iParam1, int iParam2, var uParam3)//Position - 0x40CDF
{
	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_504(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_485(iParam0, iVar3, iParam1, 4);
											return true;
										}
									}
								}
								iVar2++;
							}
						}
					}
					break;
			}
			break;
	}
	return false;
}

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

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

void func_527(int iParam0, int iParam1)//Position - 0x40E1C
{
	if (func_529())
	{
		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_528())
	{
		if (iParam1 > 0)
		{
			player::set_player_parachute_pack_model_override(iParam0, 1479397204);
		}
		else
		{
			player::clear_player_parachute_pack_model_override(iParam0);
		}
	}
}

int func_528()//Position - 0x40E93
{
	return dlc2::is_dlc_present(1428761799);
}

int func_529()//Position - 0x40EA4
{
	return dlc2::is_dlc_present(-1005876368);
}

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

int func_531(int iParam0, int iParam1)//Position - 0x40EBE
{
	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_532(int iParam0, int iParam1)//Position - 0x40F0E
{
	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_534(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_587(iVar5);
						break;
				}
			}
			else
			{
				switch (iVar6)
				{
					case 2:
						return (7 + iVar4);
						break;
					
					default:
						iVar0 = func_587(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_533(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_587(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, -1506370874, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1786447517, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1010805287, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1325813684, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -549843760, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -828478571, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1690933245, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1360588936, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 2136821028, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1830529185, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			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_587(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_533(int iParam0, int iParam1)//Position - 0x422A6
{
	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_534(int iParam0, int iParam1)//Position - 0x42446
{
	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_535(int iParam0, int iParam1, int iParam2)//Position - 0x4258A
{
	int iVar0;
	int iVar1;
	var uVar2;
	var uVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	var uVar8;
	var uVar25;
	int iVar35;
	var uVar36;
	int iVar46;
	int iVar47;
	var uVar48;
	var uVar49;
	int iVar50;
	struct<5> Var51;
	var uVar68;
	
	if (ped::is_ped_injured(iParam0))
	{
		return 0;
	}
	iVar0 = entity::get_entity_model(iParam0);
	Global_69342[1 /*14*/] = { func_609(iVar0, iParam1, iParam2) };
	uVar2 = Global_2621444;
	uVar3 = Global_2621445;
	if (!gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 0))
	{
		return 0;
	}
	if (iParam1 == 12)
	{
		uVar8 = { func_489(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_535(iParam0, iVar4, uVar8[iVar4]))
				{
					Global_2621444 = uVar2;
					Global_2621445 = uVar3;
					return 0;
					if (iVar4 == 13)
					{
						uVar25 = { func_483(iVar0, uVar8[iVar4]) };
						iVar5 = 0;
						while (iVar5 <= 8)
						{
							if (!func_535(iParam0, 14, uVar25[iVar5]))
							{
								iVar6 = 0;
								while (iVar6 <= 19)
								{
									Global_69342[2 /*14*/] = { func_609(iVar0, 14, iVar6) };
									if (Global_69342[2 /*14*/].f_12 == iVar5)
									{
										if (func_535(iParam0, 14, iVar6))
										{
											if (!func_502(iVar0, iParam2, 14, iVar6, &uVar8, &(Global_69342[2 /*14*/])))
											{
												Global_2621444 = uVar2;
												Global_2621445 = uVar3;
												return 0;
											}
										}
									}
									iVar6++;
								}
							}
							iVar5++;
						}
					}
					else
					{
						iVar1 = func_495(iParam0, iVar4);
						Global_69342[2 /*14*/] = { func_609(iVar0, iVar4, iVar1) };
						if (!func_502(iVar0, iParam2, iVar4, iVar1, &uVar8, &(Global_69342[2 /*14*/])))
						{
							Global_2621444 = uVar2;
							Global_2621445 = uVar3;
							return 0;
						}
					}
				}
			}
			iVar7++;
		}
		if ((uVar8[10] != 0 && uVar8[10] != 1849449579) && uVar8.f_16)
		{
			if (func_300(1749, Global_69340, 0) != uVar8[10])
			{
				Global_2621444 = uVar2;
				Global_2621445 = uVar3;
				return 0;
			}
		}
		Global_2621444 = uVar2;
		Global_2621445 = uVar3;
		return 1;
	}
	else if (iParam1 == 13)
	{
		uVar36 = { func_483(iVar0, iParam2) };
		iVar35 = 0;
		while (iVar35 <= 8)
		{
			if (!func_535(iParam0, 14, uVar36[iVar35]))
			{
				return 0;
			}
			iVar35++;
		}
		return 1;
	}
	else if (iParam1 == 14)
	{
		if (ped::get_ped_prop_index(iParam0, Global_69342[1 /*14*/].f_12) == Global_69342[1 /*14*/].f_3 && (ped::get_ped_prop_texture_index(iParam0, Global_69342[1 /*14*/].f_12) == Global_69342[1 /*14*/].f_4 || Global_69342[1 /*14*/].f_3 == -1))
		{
			return 1;
		}
		if (((Global_69342[1 /*14*/].f_12 == 0 && gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 6)) && dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, -1033433901, 1)) && unk_0xD40AAC51E8E4C663(Global_2621444) > 0)
		{
			iVar50 = unk_0xD40AAC51E8E4C663(Global_2621444);
			iVar46 = 0;
			while (iVar46 < iVar50)
			{
				unk_0xD81B7F27BC773E66(Global_2621444, iVar46, &iVar47, &uVar48, &uVar49);
				if (iVar47 != 0 && iVar47 != 1849449579)
				{
					dlc1::init_shop_ped_prop(&Var51);
					dlc1::_0x5D5CAFF661DDF6FC(iVar47, &Var51);
					if (Var51.f_3 == ped::get_ped_prop_index(iParam0, Global_69342[1 /*14*/].f_12) && Var51.f_4 == ped::get_ped_prop_texture_index(iParam0, Global_69342[1 /*14*/].f_12))
					{
						return 1;
					}
				}
				iVar46++;
			}
		}
	}
	else
	{
		if (Global_69342[1 /*14*/].f_3 == ped::get_ped_drawable_variation(iParam0, func_426(iParam1)) && Global_69342[1 /*14*/].f_4 == ped::get_ped_texture_variation(iParam0, func_426(iParam1)))
		{
			return 1;
		}
		if (iParam1 == 4)
		{
			if (func_526(iVar0, 11, func_495(iParam0, 11)))
			{
				if (func_524(iVar0, 4, iParam2, &uVar68))
				{
					return func_535(iParam0, 4, uVar68);
				}
			}
			else if (func_523(iVar0, 4, iParam2, &uVar68))
			{
				return func_535(iParam0, 4, uVar68);
			}
		}
	}
	return 0;
}

int func_536(int iParam0, int iParam1, int iParam2)//Position - 0x429CA
{
	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_504(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_485(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_504(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_485(iParam0, iVar9, 9, 4);
							}
							else
							{
								return uVar10;
							}
						}
						iVar8++;
					}
				}
				return -99;
			}
		}
	}
	return -99;
}

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

void func_538(int iParam0, int iParam1)//Position - 0x42E1D
{
	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_300(2087, iParam1, 0);
	iVar11 = func_300(2088, iParam1, 0);
	iVar12 = func_300(2089, iParam1, 0);
	iVar13 = func_300(2090, iParam1, 0);
	iVar14 = func_300(2091, iParam1, 0);
	iVar15 = func_300(2092, iParam1, 0);
	fVar16 = func_554(134, iParam1);
	fVar17 = func_554(135, iParam1);
	fVar18 = func_554(136, iParam1);
	iVar19 = func_514(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_300(2093, iParam1, 0);
		if (iVar20 > 0)
		{
			func_539(iParam0, iParam1, 0);
		}
	}
}

void func_539(int iParam0, int iParam1, int iParam2)//Position - 0x42F5D
{
	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_553(iVar1);
		if (!iParam2)
		{
			fVar3 = func_554(iVar2, iParam1);
		}
		else
		{
			fVar3 = func_552(iVar2, iParam1);
		}
		ped::_set_ped_face_feature(iParam0, iVar1, fVar3);
		iVar0++;
	}
	iVar4 = 0;
	while (iVar4 < 13)
	{
		iVar5 = func_551(iVar4);
		iVar6 = func_550(iVar5);
		iVar7 = func_549(iVar5);
		if (iVar6 != -1 && iVar7 != -1)
		{
			if (!iParam2)
			{
				iVar10 = func_546(iVar6, iParam1, -1);
				fVar11 = func_554(iVar7, iParam1);
			}
			else
			{
				iVar10 = func_545(iVar6, iParam1);
				fVar11 = func_552(iVar7, iParam1);
			}
			ped::set_ped_head_overlay(iParam0, iVar5, iVar10, fVar11);
			iVar8 = func_544(iVar5);
			iVar9 = func_543(iVar5);
			if (iVar8 != -1)
			{
				if (!iParam2)
				{
					iVar13 = func_300(iVar8, iParam1, 0);
					iVar14 = func_300(iVar9, iParam1, 0);
				}
				else
				{
					iVar13 = func_542(iVar8, iParam1);
					iVar14 = func_542(iVar9, iParam1);
				}
				func_541(iVar13, &iVar12, &iVar15);
				ped::_set_ped_head_overlay_color(iParam0, iVar5, iVar15, iVar12, iVar14);
			}
		}
		iVar4++;
	}
	func_540(&iParam0, iParam1, iParam2);
}

void func_540(int iParam0, int iParam1, int iParam2)//Position - 0x4308F
{
	float fVar0;
	
	if (!iParam2)
	{
		fVar0 = func_554(157, iParam1);
	}
	else
	{
		fVar0 = func_552(157, iParam1);
	}
	if (*iParam0 == player::player_ped_id())
	{
	}
	ped::_set_ped_eye_color(*iParam0, system::round(fVar0));
}

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

int func_542(int iParam0, int iParam1)//Position - 0x430EF
{
	int iVar0;
	var uVar1;
	
	iVar0 = Global_2473854[iParam0 /*5*/][func_267(iParam1)];
	if (ui::set_userids_uihidden(iVar0, &uVar1))
	{
		return uVar1;
	}
	return 0;
}

int func_543(int iParam0)//Position - 0x4311A
{
	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_544(int iParam0)//Position - 0x43166
{
	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_545(int iParam0, int iParam1)//Position - 0x431B2
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = 0;
	if (iParam1 == -1)
	{
		iParam1 = func_268();
	}
	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_546(int iParam0, int iParam1, int iParam2)//Position - 0x4352D
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (iParam1 == -1)
	{
		iParam1 = func_268();
	}
	iVar0 = 0;
	iVar1 = func_548(iParam0, iParam1);
	iVar2 = func_547(iParam0);
	if (0 != iVar1)
	{
		if (!stats::stat_get_masked_int(iVar1, &iVar0, iVar2, 8, iParam2))
		{
			iVar0 = 0;
		}
	}
	return iVar0;
}

int func_547(int iParam0)//Position - 0x43573
{
	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_548(int iParam0, int iParam1)//Position - 0x437D3
{
	int iVar0;
	
	if (iParam1 == -1)
	{
		iParam1 = func_268();
	}
	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_549(int iParam0)//Position - 0x43A02
{
	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_550(int iParam0)//Position - 0x43AA1
{
	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_551(int iParam0)//Position - 0x43B4D
{
	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_552(int iParam0, int iParam1)//Position - 0x43BE4
{
	var uVar0;
	var uVar1;
	
	uVar0 = Global_2493735[iParam0 /*5*/][func_267(iParam1)];
	if (ui::_0x5FBD7095FE7AE57F(uVar0, &uVar1))
	{
		return uVar1;
	}
	return 0f;
}

int func_553(int iParam0)//Position - 0x43C0F
{
	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_554(int iParam0, int iParam1)//Position - 0x43CFB
{
	int iVar0;
	var uVar1;
	
	iVar0 = Global_2493735[iParam0 /*5*/][func_267(iParam1)];
	if (stats::stat_get_float(iVar0, &uVar1, -1))
	{
		return uVar1;
	}
	return 0f;
}

bool func_555(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 - 0x43D27
{
	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_2565460 == iParam1)
		{
			iVar2 = Global_2565459;
			iVar1 = Global_2565458;
		}
		else if (iParam1 >= 92)
		{
			iVar2 = func_504(iParam0, iParam1, 7, 3);
			iVar1 = func_587(iVar2);
			Global_2565460 = iParam1;
			Global_2565459 = iVar2;
			Global_2565458 = iVar1;
		}
		iVar3 = -1;
		iVar4 = -1;
		if (Global_2565463 == iParam3)
		{
			iVar4 = Global_2565462;
			iVar3 = Global_2565461;
		}
		else if (iParam3 >= 237)
		{
			iVar4 = func_504(iParam0, iParam3, 11, 3);
			iVar3 = func_587(iVar4);
			Global_2565463 = iParam3;
			Global_2565462 = iVar4;
			Global_2565461 = iVar3;
		}
		iVar5 = -1;
		iVar6 = -1;
		if (Global_2565466 == iParam4)
		{
			iVar6 = Global_2565465;
			iVar5 = Global_2565464;
		}
		else if (iParam4 >= 241)
		{
			iVar6 = func_504(iParam0, iParam4, 8, 3);
			iVar5 = func_587(iVar6);
			Global_2565466 = iParam4;
			Global_2565465 = iVar6;
			Global_2565464 = iVar5;
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -120244486, 0))
		{
			if (iParam9 != -99)
			{
				iVar7 = -1;
				if (iParam9 >= 327)
				{
					iVar7 = func_504(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:
					case 1379309694:
					case 491826867:
					case 1855607109:
					case -1962767847:
					case -1654116636:
					case -1485356286:
					case -1178212449:
					case -766633809:
					case 665568109:
					case -288304716:
					case 1772824957:
					case 1533381874:
					case -2012223930:
					case 2008237453:
					case -1304118613:
					case -1543430620:
					case -854101936:
					case -1061103709:
					case -616035151:
					case 1307111925:
					case 1759289928:
						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)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1325813684, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -549843760, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1690933245, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1360588936, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2136821028, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1830529185, 0))
					{
						return false;
					}
					else if (func_557(iParam0, iParam3))
					{
					}
					else
					{
						return false;
					}
				}
				else if (func_557(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)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1325813684, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1690933245, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1360588936, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2136821028, 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)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1325813684, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -828478571, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1690933245, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2136821028, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2136821028, 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)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1010805287, 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_504(iParam0, iParam9, 14, 3), -713698407, 1))
			{
			}
			else if (iParam2 == 14 || (iParam2 == 1 && iParam10 != 0))
			{
				return false;
			}
		}
		else if ((iParam9 >= 327 && dlc1::_0x341DE7ED1D2A1BFD(func_504(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)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1325813684, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -828478571, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1690933245, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1360588936, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2136821028, 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_589(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_495(iParam6, 11);
					if ((iVar0 >= 204 && iVar0 <= 219) || (iVar0 >= 237 && func_587(func_504(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_589(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_495(iParam6, 11);
					if ((iVar0 >= 204 && iVar0 <= 219) || (iVar0 >= 237 && func_587(func_504(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_556(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_504(iParam0, iParam1, 7, 4);
			iVar8 = func_587(iVar9);
		}
		iVar10 = -1;
		iVar11 = -1;
		if (iParam3 >= 256)
		{
			iVar11 = func_504(iParam0, iParam3, 11, 4);
			iVar10 = func_587(iVar11);
		}
		iVar12 = -1;
		if (iParam9 >= 327)
		{
			iVar12 = func_504(iParam0, iParam9, 14, 4);
		}
		iVar13 = -1;
		iVar14 = -1;
		if (iParam4 >= 136)
		{
			iVar13 = func_504(iParam0, iParam4, 8, 4);
			iVar14 = func_587(iVar13);
		}
		if ((iVar9 == 281786684 || iVar9 == 653911448) || iVar9 == -1519558015)
		{
			if (iParam9 != -99)
			{
				switch (iVar12)
				{
					case 1446628467:
					case -1938048778:
					case 2041418586:
					case -1342898200:
					case 2026483804:
					case -1977527541:
					case -1670449242:
					case -1385031204:
					case -1088111295:
					case -1530918836:
					case -1221415631:
					case -629869643:
					case 530255864:
					case 38181873:
					case 319110510:
					case 482562282:
					case -1178170642:
					case -880726429:
					case -699776011:
					case -401873032:
					case -700496933:
					case -404429018:
					case -2134238990:
					case -2136376254:
					case 1861212367:
					case -789144321:
					case -223092615:
					case 763352592:
					case -549897852:
					case -1976889495:
					case -1410575637:
					case -428980242:
					case -1731482454:
					case -1390357480:
						return false;
						break;
					}
				}
		}
		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)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1360588936, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -549843760, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1830529185, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2136821028, 0))
					{
						return false;
					}
					else if (func_557(iParam0, iParam3))
					{
					}
					else
					{
						return false;
					}
				}
				else if (func_557(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_504(iParam0, iParam9, 14, 4), -713698407, 1))
			{
			}
			else if (iParam2 == 14 || (iParam2 == 1 && iParam10 != 0))
			{
				return false;
			}
		}
		else if ((iParam9 >= 327 && dlc1::_0x341DE7ED1D2A1BFD(func_504(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)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -549843760, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1830529185, 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)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -828478571, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1360588936, 0))
				{
					return false;
				}
				else if (func_589(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)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2136821028, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1360588936, 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)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1325813684, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -549843760, 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_588(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_504(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_504(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_504(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)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -828478571, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1360588936, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2136821028, 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)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -828478571, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1360588936, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2136821028, 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 (dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1965569012, 0))
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, 2083259958, 0))
					{
						return false;
					}
				}
				else if (((dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1786447517, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1325813684, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -549843760, 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 (dlc1::_0x341DE7ED1D2A1BFD(iVar13, -7109286, 0))
				{
					return false;
				}
				else if (((dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1786447517, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1325813684, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -549843760, 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_504(iParam0, iParam11, 4, 4);
				}
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar15, -33031567, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
		}
	}
	return true;
}

bool func_556(int iParam0)//Position - 0x48160
{
	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_557(int iParam0, int iParam1)//Position - 0x48241
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		iVar0 = func_504(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)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1325813684, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1690933245, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1360588936, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 2136821028, 0))
			{
				return 1;
			}
		}
		if (iVar0 != -1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, -2017999390, 0))
			{
				return 1;
			}
		}
		return func_589(iParam0, iParam1);
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		iVar1 = func_504(iParam0, iParam1, 11, 4);
		iVar2 = -1;
		if (iVar1 != -1)
		{
			iVar2 = func_587(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)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1325813684, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, 1690933245, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, 1360588936, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, 2136821028, 0))
		{
			return 1;
		}
	}
	return 0;
}

void func_558(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x48738
{
	int iVar0;
	int iVar1;
	
	iVar0 = entity::get_entity_model(iParam0);
	func_583(gameplay::get_hash_key("hairOverlay"), iParam0);
	iVar1 = func_582(iVar0, iParam1);
	if (iVar1 != -1)
	{
		if (iParam2 == -1)
		{
			iParam2 = Global_69340;
		}
		func_599(iVar1, 1, Global_69340);
	}
	func_559(iParam0, iParam3, 0);
}

void func_559(int iParam0, int iParam1, int iParam2)//Position - 0x48786
{
	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_69340;
		ped::_clear_ped_facial_decorations(iParam0);
		iVar14 = func_581(iParam0);
		iVar15 = func_572(iParam0);
		iVar16 = func_570(iParam0);
		iVar17 = func_569(iParam0);
		if (iParam1)
		{
			iVar16 = true;
		}
		if (iParam2)
		{
			iVar16 = false;
		}
		iVar18 = 0;
		while (iVar18 < 127)
		{
			if (func_564(iVar18, iVar0))
			{
				if (func_400(&Var1, iVar18, iVar14, iParam0, -1))
				{
					if (func_561(&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_564(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_564(iVar36, iVar0))
					{
						if (func_561(&(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_560(iParam0, Var21.f_2, Var21.f_3);
						}
					}
				}
			}
			iVar19++;
		}
	}
}

void func_560(int iParam0, int iParam1, int iParam2)//Position - 0x488D1
{
	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_561(char* sParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x489C6
{
	int iVar0;
	int iVar1;
	
	iVar0 = entity::get_entity_model(player::player_ped_id());
	if (iParam2 == 0)
	{
		iVar1 = func_563(iVar0, sParam0, iParam2);
		iParam2 = gameplay::get_hash_key(func_562(iVar1));
	}
	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) || iParam2 == 1192230427)
			{
				if (!iParam4)
				{
					if (Global_2566610 == -1)
					{
						if (!Global_91362.f_1446)
						{
							if (func_564(13, -1))
							{
								return false;
							}
							else if (func_564(14, -1))
							{
								return false;
							}
							else if (func_564(15, -1))
							{
								return false;
							}
							else if (func_564(16, -1))
							{
								return false;
							}
							else if (func_564(71, -1))
							{
								return false;
							}
							else if (func_564(72, -1))
							{
							}
						}
					}
					else if (Global_2566610 == 13)
					{
						return false;
					}
					else if (Global_2566610 == 14)
					{
						return false;
					}
					else if (Global_2566610 == 15)
					{
						return false;
					}
					else if (Global_2566610 == 16)
					{
						return false;
					}
					else if (Global_2566610 == 71)
					{
						return false;
					}
					else if (Global_2566610 == 72)
					{
					}
				}
			}
			else if (iParam2 == -763917073)
			{
				if (!iParam4)
				{
					if (Global_2566610 == -1)
					{
						if (!Global_91362.f_1446)
						{
							if (func_564(13, -1))
							{
								return false;
							}
							else if (func_564(14, -1))
							{
								return false;
							}
							else if (func_564(15, -1))
							{
								return false;
							}
							else if (func_564(16, -1))
							{
								return false;
							}
							else if (func_564(71, -1))
							{
								return false;
							}
							else if (func_564(72, -1))
							{
							}
						}
					}
					else if (Global_2566610 == 13)
					{
						return false;
					}
					else if (Global_2566610 == 14)
					{
						return false;
					}
					else if (Global_2566610 == 15)
					{
						return false;
					}
					else if (Global_2566610 == 16)
					{
						return false;
					}
					else if (Global_2566610 == 71)
					{
						return false;
					}
					else if (Global_2566610 == 72)
					{
					}
				}
			}
			else if (iParam2 == 129912816)
			{
				if (!iParam4)
				{
					if (Global_2566610 == -1)
					{
						if (!Global_91362.f_1446)
						{
							if (func_564(13, -1))
							{
							}
							else if (func_564(14, -1))
							{
								return false;
							}
							else if (func_564(15, -1))
							{
								return false;
							}
							else if (func_564(16, -1))
							{
							}
							else if (func_564(71, -1))
							{
								return false;
							}
							else if (func_564(72, -1))
							{
							}
						}
					}
					else if (Global_2566610 == 13)
					{
					}
					else if (Global_2566610 == 14)
					{
						return false;
					}
					else if (Global_2566610 == 15)
					{
						return false;
					}
					else if (Global_2566610 == 16)
					{
					}
					else if (Global_2566610 == 71)
					{
						return false;
					}
					else if (Global_2566610 == 72)
					{
					}
				}
			}
			break;
		
		case 1484379715:
		case 711089605:
		case 1206993109:
		case 32564956:
		case 1618133209:
		case 314326195:
		case 1928884106:
		case 1565386395:
		case 2107621060:
			if (iParam6)
			{
				return false;
			}
			if (!iParam4)
			{
				if (Global_2566610 == -1)
				{
					if (!Global_91362.f_1446)
					{
						if (func_564(13, -1))
						{
						}
						else if (func_564(14, -1))
						{
						}
						else if (func_564(15, -1))
						{
							return false;
						}
						else if (func_564(16, -1))
						{
						}
						else if (func_564(71, -1))
						{
						}
						else if (func_564(72, -1))
						{
							return false;
						}
					}
				}
				else if (Global_2566610 == 13)
				{
				}
				else if (Global_2566610 == 14)
				{
				}
				else if (Global_2566610 == 15)
				{
					return false;
				}
				else if (Global_2566610 == 16)
				{
				}
				else if (Global_2566610 == 71)
				{
				}
				else if (Global_2566610 == 72)
				{
					return false;
				}
			}
			break;
		
		case 1019352240:
			if (iParam6)
			{
				if (iVar0 == joaat("mp_m_freemode_01"))
				{
					if (Global_2566610 == -1)
					{
						if (!Global_91362.f_1446)
						{
							if (func_564(15, -1))
							{
								return false;
							}
						}
					}
					else if (Global_2566610 == 15)
					{
						return false;
					}
				}
			}
			if (iParam4)
			{
				return false;
			}
			if (iParam3)
			{
				if (Global_2566610 == -1)
				{
					if (!Global_91362.f_1446)
					{
						if (func_564(13, -1))
						{
							return false;
						}
						else if (func_564(14, -1))
						{
							return false;
						}
						else if (func_564(15, -1))
						{
							return false;
						}
						else if (func_564(16, -1))
						{
						}
						else if (func_564(71, -1))
						{
						}
						else if (func_564(72, -1))
						{
						}
					}
				}
				else if (Global_2566610 == 13)
				{
					return false;
				}
				else if (Global_2566610 == 14)
				{
					return false;
				}
				else if (Global_2566610 == 15)
				{
					return false;
				}
				else if (Global_2566610 == 16)
				{
				}
				else if (Global_2566610 == 71)
				{
				}
				else if (Global_2566610 == 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_2566610 == -1)
					{
						if (!Global_91362.f_1446)
						{
							if (func_564(13, -1))
							{
							}
							else if (func_564(14, -1))
							{
							}
							else if (func_564(15, -1))
							{
							}
							else if (func_564(16, -1))
							{
							}
							else if (func_564(71, -1))
							{
							}
							else if (func_564(72, -1))
							{
							}
						}
					}
					else if (Global_2566610 == 13)
					{
						return false;
					}
					else if (Global_2566610 == 14)
					{
					}
					else if (Global_2566610 == 15)
					{
						return false;
					}
					else if (Global_2566610 == 16)
					{
					}
					else if (Global_2566610 == 71)
					{
					}
					else if (Global_2566610 == 72)
					{
					}
				}
			}
			break;
		
		case 277073536:
			if (iParam5)
			{
				return false;
			}
			break;
	}
	return true;
}

char* func_562(int iParam0)//Position - 0x490FF
{
	switch (iParam0)
	{
		case 0:
			return "ARM_LEFT_FULL_SLEEVE";
			break;
		
		case 1:
			return "ARM_LEFT_SHORT_SLEEVE";
			break;
		
		case 2:
			return "ARM_LEFT_LOWER_SLEEVE";
			break;
		
		case 3:
			return "ARM_LEFT_LOWER_INNER";
			break;
		
		case 4:
			return "ARM_LEFT_LOWER_OUTER";
			break;
		
		case 5:
			return "ARM_LEFT_WRIST";
			break;
		
		case 6:
			return "ARM_LEFT_UPPER_SLEEVE";
			break;
		
		case 7:
			return "ARM_LEFT_UPPER_TRICEP";
			break;
		
		case 8:
			return "ARM_LEFT_UPPER_SIDE";
			break;
		
		case 9:
			return "ARM_LEFT_UPPER_BICEP";
			break;
		
		case 10:
			return "ARM_LEFT_SHOULDER";
			break;
		
		case 11:
			return "ARM_LEFT_ELBOW";
			break;
		
		case 12:
			return "ARM_RIGHT_FULL_SLEEVE";
			break;
		
		case 13:
			return "ARM_RIGHT_SHORT_SLEEVE";
			break;
		
		case 14:
			return "ARM_RIGHT_LOWER_SLEEVE";
			break;
		
		case 15:
			return "ARM_RIGHT_LOWER_INNER";
			break;
		
		case 16:
			return "ARM_RIGHT_LOWER_OUTER";
			break;
		
		case 17:
			return "ARM_RIGHT_WRIST";
			break;
		
		case 18:
			return "ARM_RIGHT_UPPER_SLEEVE";
			break;
		
		case 19:
			return "ARM_RIGHT_UPPER_TRICEP";
			break;
		
		case 20:
			return "ARM_RIGHT_UPPER_SIDE";
			break;
		
		case 21:
			return "ARM_RIGHT_UPPER_BICEP";
			break;
		
		case 22:
			return "ARM_RIGHT_SHOULDER";
			break;
		
		case 23:
			return "ARM_RIGHT_ELBOW";
			break;
		
		case 24:
			return "HAND_LEFT";
			break;
		
		case 25:
			return "HAND_RIGHT";
			break;
		
		case 26:
			return "BACK_FULL";
			break;
		
		case 27:
			return "BACK_FULL_ARMS_FULL_BACK";
			break;
		
		case 28:
			return "BACK_FULL_SHORT";
			break;
		
		case 29:
			return "BACK_MID";
			break;
		
		case 30:
			return "BACK_UPPER";
			break;
		
		case 31:
			return "BACK_UPPER_LEFT";
			break;
		
		case 32:
			return "BACK_UPPER_RIGHT";
			break;
		
		case 33:
			return "BACK_LOWER";
			break;
		
		case 34:
			return "BACK_LOWER_LEFT";
			break;
		
		case 35:
			return "BACK_LOWER_MID";
			break;
		
		case 36:
			return "BACK_LOWER_RIGHT";
			break;
		
		case 37:
			return "CHEST_FULL";
			break;
		
		case 38:
			return "CHEST_STOM";
			break;
		
		case 39:
			return "CHEST_STOM_FULL";
			break;
		
		case 40:
			return "CHEST_LEFT";
			break;
		
		case 41:
			return "CHEST_UPPER_LEFT";
			break;
		
		case 42:
			return "CHEST_RIGHT";
			break;
		
		case 43:
			return "CHEST_UPPER_RIGHT";
			break;
		
		case 44:
			return "CHEST_MID";
			break;
		
		case 45:
			return "TORSO_SIDE_RIGHT";
			break;
		
		case 46:
			return "TORSO_SIDE_LEFT";
			break;
		
		case 47:
			return "STOMACH_FULL";
			break;
		
		case 48:
			return "STOMACH_UPPER";
			break;
		
		case 49:
			return "STOMACH_UPPER_LEFT";
			break;
		
		case 50:
			return "STOMACH_UPPER_RIGHT";
			break;
		
		case 51:
			return "STOMACH_LOWER";
			break;
		
		case 52:
			return "STOMACH_LOWER_LEFT";
			break;
		
		case 53:
			return "STOMACH_LOWER_RIGHT";
			break;
		
		case 54:
			return "STOMACH_LEFT";
			break;
		
		case 55:
			return "STOMACH_RIGHT";
			break;
		
		case 56:
			return "FACE";
			break;
		
		case 57:
			return "HEAD_LEFT";
			break;
		
		case 58:
			return "HEAD_RIGHT";
			break;
		
		case 59:
			return "NECK_FRONT";
			break;
		
		case 60:
			return "NECK_BACK";
			break;
		
		case 61:
			return "NECK_LEFT_FULL";
			break;
		
		case 62:
			return "NECK_LEFT_BACK";
			break;
		
		case 63:
			return "NECK_RIGHT_FULL";
			break;
		
		case 64:
			return "NECK_RIGHT_BACK";
			break;
		
		case 65:
			return "LEG_LEFT_FULL_SLEEVE";
			break;
		
		case 66:
			return "LEG_LEFT_FULL_FRONT";
			break;
		
		case 67:
			return "LEG_LEFT_FULL_BACK";
			break;
		
		case 68:
			return "LEG_LEFT_UPPER_SLEEVE";
			break;
		
		case 69:
			return "LEG_LEFT_UPPER_FRONT";
			break;
		
		case 70:
			return "LEG_LEFT_UPPER_BACK";
			break;
		
		case 71:
			return "LEG_LEFT_UPPER_OUTER";
			break;
		
		case 72:
			return "LEG_LEFT_UPPER_INNER";
			break;
		
		case 73:
			return "LEG_LEFT_LOWER_SLEEVE";
			break;
		
		case 74:
			return "LEG_LEFT_LOWER_FRONT";
			break;
		
		case 75:
			return "LEG_LEFT_LOWER_BACK";
			break;
		
		case 76:
			return "LEG_LEFT_LOWER_OUTER";
			break;
		
		case 77:
			return "LEG_LEFT_LOWER_INNER";
			break;
		
		case 78:
			return "LEG_LEFT_KNEE";
			break;
		
		case 79:
			return "LEG_LEFT_ANKLE";
			break;
		
		case 80:
			return "LEG_LEFT_CALF";
			break;
		
		case 81:
			return "LEG_RIGHT_FULL_SLEEVE";
			break;
		
		case 82:
			return "LEG_RIGHT_FULL_FRONT";
			break;
		
		case 83:
			return "LEG_RIGHT_FULL_BACK";
			break;
		
		case 84:
			return "LEG_RIGHT_UPPER_SLEEVE";
			break;
		
		case 85:
			return "LEG_RIGHT_UPPER_FRONT";
			break;
		
		case 86:
			return "LEG_RIGHT_UPPER_BACK";
			break;
		
		case 87:
			return "LEG_RIGHT_UPPER_OUTER";
			break;
		
		case 88:
			return "LEG_RIGHT_UPPER_INNER";
			break;
		
		case 89:
			return "LEG_RIGHT_LOWER_SLEEVE";
			break;
		
		case 90:
			return "LEG_RIGHT_LOWER_FRONT";
			break;
		
		case 91:
			return "LEG_RIGHT_LOWER_BACK";
			break;
		
		case 92:
			return "LEG_RIGHT_LOWER_OUTER";
			break;
		
		case 93:
			return "LEG_RIGHT_LOWER_INNER";
			break;
		
		case 94:
			return "LEG_RIGHT_KNEE";
			break;
		
		case 95:
			return "LEG_RIGHT_ANKLE";
			break;
		
		case 96:
			return "LEG_RIGHT_CALF";
			break;
		
		case 97:
			return "FOOT_LEFT";
			break;
		
		case 98:
			return "FOOT_RIGHT";
			break;
	}
	return "";
}

int func_563(int iParam0, char* sParam1, int iParam2)//Position - 0x497A5
{
	switch (iParam2)
	{
		case 1019352240:
		case 2140335355:
		case 277073536:
			return -1;
			break;
	}
	switch (iParam2)
	{
		case -1775023605:
			return 0;
			break;
		
		case 917950949:
			return 1;
			break;
		
		case -1684314297:
			return 2;
			break;
		
		case -1546663824:
			return 3;
			break;
		
		case -2119253768:
			return 4;
			break;
		
		case 1639951086:
			return 5;
			break;
		
		case 1372660034:
			return 6;
			break;
		
		case -1524227787:
			return 7;
			break;
		
		case -311742370:
			return 8;
			break;
		
		case -2057190659:
			return 9;
			break;
		
		case -686545645:
			return 10;
			break;
		
		case -80377674:
			return 11;
			break;
		
		case -1055976551:
			return 12;
			break;
		
		case 1963750528:
			return 13;
			break;
		
		case 796226384:
			return 14;
			break;
		
		case 123428314:
			return 15;
			break;
		
		case 1944550961:
			return 16;
			break;
		
		case 2136911405:
			return 17;
			break;
		
		case -1309595991:
			return 18;
			break;
		
		case 1470319061:
			return 19;
			break;
		
		case -1716562576:
			return 20;
			break;
		
		case -1940582056:
			return 21;
			break;
		
		case 1089807219:
			return 22;
			break;
		
		case -1073830579:
			return 23;
			break;
		
		case 1071134407:
			return 24;
			break;
		
		case 1455567330:
			return 25;
			break;
		
		case 711089605:
			return 26;
			break;
		
		case 1206993109:
			return 27;
			break;
		
		case 32564956:
			return 28;
			break;
		
		case 314326195:
			return 29;
			break;
		
		case 1928884106:
			return 30;
			break;
		
		case 1565386395:
			return 31;
			break;
		
		case 2107621060:
			return 32;
			break;
		
		case 1618133209:
			return 33;
			break;
		
		case -951899470:
			return 34;
			break;
		
		case 2048696626:
			return 35;
			break;
		
		case 74017048:
			return 36;
			break;
		
		case -793495770:
			return 37;
			break;
		
		case 849089063:
			return 38;
			break;
		
		case 1192230427:
			return 39;
			break;
		
		case -763917073:
			return 40;
			break;
		
		case 337552605:
			return 41;
			break;
		
		case -2066166276:
			return 42;
			break;
		
		case 100935796:
			return 43;
			break;
		
		case -1409061796:
			return 44;
			break;
		
		case 1548327796:
			return 45;
			break;
		
		case -1459967458:
			return 46;
			break;
		
		case 129912816:
			return 47;
			break;
		
		case 1387715942:
			return 48;
			break;
		
		case -1871804242:
			return 49;
			break;
		
		case 1603728616:
			return 50;
			break;
		
		case -742053244:
			return 51;
			break;
		
		case 1586504577:
			return 52;
			break;
		
		case 1753976524:
			return 53;
			break;
		
		case -1469750959:
			return 54;
			break;
		
		case -388268096:
			return 55;
			break;
		
		case -1538681432:
			return 56;
			break;
		
		case -737856380:
			return 57;
			break;
		
		case 1261643197:
			return 58;
			break;
		
		case 436139458:
			return 59;
			break;
		
		case 1012782925:
			return 60;
			break;
		
		case -277214012:
			return 61;
			break;
		
		case -484264198:
			return 62;
			break;
		
		case 1708200656:
			return 63;
			break;
		
		case 758827473:
			return 64;
			break;
		
		case 1039283199:
			return 65;
			break;
		
		case 325801797:
			return 66;
			break;
		
		case -1946435033:
			return 67;
			break;
		
		case -1917346117:
			return 68;
			break;
		
		case -382139768:
			return 69;
			break;
		
		case 1725561361:
			return 70;
			break;
		
		case -266913369:
			return 71;
			break;
		
		case 511433871:
			return 72;
			break;
		
		case -1399656601:
			return 73;
			break;
		
		case -1560441083:
			return 74;
			break;
		
		case 1034503747:
			return 75;
			break;
		
		case -1170681301:
			return 76;
			break;
		
		case 660577126:
			return 77;
			break;
		
		case -818089340:
			return 78;
			break;
		
		case 1052642087:
			return 79;
			break;
		
		case 134497037:
			return 80;
			break;
		
		case -624267373:
			return 81;
			break;
		
		case -1178847967:
			return 82;
			break;
		
		case -197292861:
			return 83;
			break;
		
		case 730193962:
			return 84;
			break;
		
		case 1469472731:
			return 85;
			break;
		
		case -1918884694:
			return 86;
			break;
		
		case -1670727628:
			return 87;
			break;
		
		case -1389296468:
			return 88;
			break;
		
		case -405262373:
			return 89;
			break;
		
		case -1619609833:
			return 90;
			break;
		
		case 2060550302:
			return 91;
			break;
		
		case -1202647020:
			return 92;
			break;
		
		case 12584588:
			return 93;
			break;
		
		case -1559605744:
			return 94;
			break;
		
		case -88374898:
			return 95;
			break;
		
		case -292219126:
			return 96;
			break;
		
		case -634232984:
			return 97;
			break;
		
		case -1259754598:
			return 98;
			break;
	}
	switch (gameplay::get_hash_key(sParam1))
	{
		case 1948764112:
			return -1;
			break;
		
		case 1099734529:
			return 12;
			break;
		
		case 1875475066:
			return 12;
			break;
		
		case -2027116220:
			if (iParam0 == joaat("mp_m_freemode_01"))
			{
				return 75;
			}
			else
			{
				return 65;
			}
			break;
		
		case 973279522:
			return 26;
			break;
		
		case -344656041:
			return 47;
			break;
		
		case 437243648:
			return 1;
			break;
		
		case -1636967950:
			return 75;
			break;
		
		case -1759426263:
			return 1;
			break;
		
		case 1702259548:
			return 89;
			break;
		
		case 1471205329:
			return 73;
			break;
		
		case -33154131:
			return 22;
			break;
		
		case -1364624791:
			return 91;
			break;
		
		case 2048169112:
			return 26;
			break;
		
		case -2132107540:
			return 73;
			break;
		
		case -2097372400:
			return 38;
			break;
		
		case -106785870:
			if (iParam0 == joaat("mp_m_freemode_01"))
			{
				return 40;
			}
			else
			{
				return 42;
			}
			break;
		
		case 1116120433:
			return 31;
			break;
		
		case 118598456:
			return 42;
			break;
		
		case 1480281490:
			return 47;
			break;
		
		case -652292269:
			return 75;
			break;
		
		case -1179283327:
			return 20;
			break;
		
		case 860620540:
			return 32;
			break;
		
		case -880004050:
			return 14;
			break;
		
		case -1386676768:
			return 52;
			break;
		
		case 2104696341:
			return 30;
			break;
		
		case -1952728474:
			return 6;
			break;
		
		case 1464947154:
			return 80;
			break;
		
		case -1134718043:
			return 13;
			break;
		
		case -440373586:
			if (iParam0 == joaat("mp_m_freemode_01"))
			{
				return 67;
			}
			else
			{
				return 75;
			}
			break;
		
		case -1282504117:
			if (iParam0 == joaat("mp_m_freemode_01"))
			{
				return 40;
			}
			else
			{
				return 42;
			}
			break;
		
		case -1035884623:
			return 73;
			break;
		
		case -1877294236:
			return 47;
			break;
		
		case 1289632992:
			return 73;
			break;
		
		case 1152623695:
			return 10;
			break;
		
		case 1705208746:
			return 26;
			break;
		
		case 1774176944:
			return 42;
			break;
		
		case -2016202731:
			return 89;
			break;
		
		case 474241973:
			return 16;
			break;
		
		case 1549424756:
			return 91;
			break;
		
		case 1915520024:
			return 82;
			break;
		
		case -654914345:
			return 13;
			break;
		
		case -1745115353:
			return 75;
			break;
		
		case 1466027815:
			return 26;
			break;
		
		case -161772432:
			return 10;
			break;
		
		case 74131599:
			return 90;
			break;
		
		case 363383562:
			return 89;
			break;
		
		case 736950162:
			return 38;
			break;
		
		case 1291882802:
			return 20;
			break;
		
		case -281772534:
			return 26;
			break;
		
		case -837798134:
			return 18;
			break;
		
		case 62456:
			return 56;
			break;
		
		case -800320369:
			return 3;
			break;
		
		case 1363941829:
			return 47;
			break;
		
		case 1586377801:
			if (iParam0 == joaat("mp_m_freemode_01"))
			{
				return 28;
			}
			else
			{
				return 26;
			}
			break;
		
		case -1514257748:
			return 89;
			break;
		
		case -1023836894:
			return 6;
			break;
		
		case -1974105125:
			return 33;
			break;
		
		case -558386018:
			return 16;
			break;
		
		case -328314869:
			return 40;
			break;
		
		case -1903783095:
			return 40;
			break;
		
		case -1674924399:
			return 40;
			break;
		
		case -252323802:
			return 33;
			break;
		
		case 11466648:
			return 6;
			break;
		
		case 927130819:
			if (iParam0 == joaat("mp_m_freemode_01"))
			{
				return 28;
			}
			else
			{
				return 26;
			}
			break;
		
		case -978943608:
			if (iParam0 == joaat("mp_m_freemode_01"))
			{
				return 28;
			}
			else
			{
				return 26;
			}
			break;
		
		case 452144164:
			if (iParam0 == joaat("mp_m_freemode_01"))
			{
				return 28;
			}
			else
			{
				return 26;
			}
			break;
		
		case 691194019:
			if (iParam0 == joaat("mp_m_freemode_01"))
			{
				return 28;
			}
			else
			{
				return 26;
			}
			break;
		
		case -1516865571:
			return 44;
			break;
		
		case 2130586285:
			return 32;
			break;
		
		case 386521802:
			return 3;
			break;
		
		case 579924440:
			return 33;
			break;
		
		case 741770527:
			return 31;
			break;
		
		case 1173403795:
			return 33;
			break;
		
		case -569087776:
			return 45;
			break;
		
		case -1344959389:
			return 89;
			break;
		
		case -211217527:
			return 64;
			break;
		
		case 86488838:
			return 53;
			break;
		
		case 705494964:
			return 52;
			break;
		
		case -137684175:
			return 30;
			break;
		
		case -979388709:
			return 41;
			break;
		
		case 324653646:
			return 43;
			break;
		
		case -518820414:
			return 52;
			break;
		
		case -1361737401:
			return 20;
			break;
		
		case 2010946386:
			return 8;
			break;
		
		case -894811920:
			return 10;
			break;
		
		case 165068612:
			return 28;
			break;
		
		case 1549427782:
			return 40;
			break;
		
		case -927613913:
			return 42;
			break;
		
		case 385144996:
			return 56;
			break;
		
		case -814626401:
			return 57;
			break;
		
		case -1248225809:
			return 52;
			break;
		
		case 1910378101:
			return 8;
			break;
		
		case -2124501642:
			return 91;
			break;
		
		case -1943747838:
			return 20;
			break;
		
		case -1570115700:
			return 75;
			break;
		
		case 931699147:
			return 62;
			break;
		
		case 1019520067:
			return 63;
			break;
		
		case -859358814:
			return 20;
			break;
		
		case -1157818866:
			return 58;
			break;
		
		case -247856505:
			return 47;
			break;
		
		case -1628534963:
			return 37;
			break;
		
		case -1051898870:
			return 33;
			break;
		
		case 1334929540:
			return 80;
			break;
		
		case 1097124907:
			return 64;
			break;
		
		case 747545215:
			return 62;
			break;
		
		case 61892743:
			return 96;
			break;
		
		case 501548332:
			return 15;
			break;
		
		case -244169717:
			return 48;
			break;
		
		case 421886905:
			return 37;
			break;
		
		case -1398791504:
			return 33;
			break;
		
		case -106152761:
			return 3;
			break;
		
		case 125491300:
			return 41;
			break;
		
		case -1576950557:
			return 52;
			break;
		
		case -1815115649:
			return 53;
			break;
		
		case -1043396870:
			return 59;
			break;
		
		case -1388618285:
			return 3;
			break;
		
		case -948484638:
			return 48;
			break;
		
		case 643387405:
			return 33;
			break;
		
		case 979630098:
			return 64;
			break;
		
		case 211688583:
			return 62;
			break;
		
		case 1343791995:
			return 60;
			break;
		
		case 576309246:
			return 20;
			break;
		
		case 949154944:
			return 40;
			break;
		
		case -622511834:
			return 42;
			break;
		
		case -275651969:
			return 11;
			break;
		
		case -1256283855:
			return 15;
			break;
		
		case 955525350:
			return 40;
			break;
		
		case 1252641873:
			return 22;
			break;
		
		case -2034766264:
			return 40;
			break;
		
		case 1748021562:
			return 22;
			break;
		
		case -657146050:
			return 30;
			break;
		
		case -955835485:
			return 19;
			break;
		
		case -1269959119:
			return 40;
			break;
		
		case -1478763187:
			return 4;
			break;
		
		case -1881592504:
			return 15;
			break;
		
		case 2115996117:
			return 62;
			break;
		
		case 1824417551:
			return 45;
			break;
		
		case 1502068898:
			return 24;
			break;
		
		case -2019287742:
			return 22;
			break;
		
		case -1780827729:
			return 80;
			break;
		
		case -1966497207:
			return 25;
			break;
		
		case -2126999769:
			return 30;
			break;
		
		case 2014772448:
			return 30;
			break;
		
		case 1705760778:
			return 44;
			break;
		
		case 497993745:
			return 15;
			break;
		
		case 1142887665:
			return 9;
			break;
		
		case 22777707:
			return 3;
			break;
		
		case 799173624:
			return 16;
			break;
		
		case -410297401:
			return 17;
			break;
		
		case 214410819:
			return 75;
			break;
		
		case -2098342992:
			return 23;
			break;
		
		case -1280920283:
			return 64;
			break;
		
		case -1501455653:
			return 16;
			break;
		
		case 2117454408:
			return 25;
			break;
		
		case -1945704982:
			return 32;
			break;
		
		case -1581870771:
			return 31;
			break;
		
		case -1350521631:
			return 10;
			break;
		
		case -954508266:
			return 5;
			break;
		
		case -716244867:
			return 4;
			break;
		
		case 185361399:
			return 52;
			break;
		
		case -1208107213:
			return 35;
			break;
		
		case -812421538:
			return 30;
			break;
		
		case -566096965:
			return 32;
			break;
		
		case -316757644:
			return 38;
			break;
		
		case -103496992:
			return 24;
			break;
		
		case 391708136:
			return 52;
			break;
		
		case 616667309:
			return 20;
			break;
		
		case 870102755:
			return 10;
			break;
		
		case 1093030262:
			return 92;
			break;
		
		case 1378218869:
			return 0;
			break;
		
		case 332555747:
			return 80;
			break;
		
		case 1077526193:
			return 34;
			break;
		
		case 1332632858:
			return 91;
			break;
		
		case 1556379590:
			return 10;
			break;
		
		case 1780093553:
			return 22;
			break;
		
		case 2001284303:
			return 14;
			break;
		
		case -2059941716:
			return 30;
			break;
		
		case -1759875983:
			return 40;
			break;
		
		case -1521153818:
			return 24;
			break;
	}
	if (iParam2 == 0 && gameplay::is_string_null_or_empty(sParam1))
	{
		return -1;
	}
	return -1;
}

int func_564(int iParam0, int iParam1)//Position - 0x4A7C3
{
	int iVar0;
	int iVar1;
	
	if (iParam0 == -1)
	{
		return false;
	}
	iVar0 = func_565(iParam0, iParam1);
	iVar1 = func_50(iParam0);
	if (iVar1 < 0 || iVar1 >= 32)
	{
		return false;
	}
	return gameplay::is_bit_set(iVar0, iVar1);
}

var func_565(int iParam0, int iParam1)//Position - 0x4A805
{
	var uVar0;
	
	uVar0 = func_300(func_566(iParam0), iParam1, 0);
	return uVar0;
}

int func_566(int iParam0)//Position - 0x4A81E
{
	int iVar0;
	int iVar1;
	
	iVar0 = iParam0;
	iVar1 = func_54(iVar0);
	if ((func_568() == 0 || func_567() == 0) || (func_568() == 999 && func_567() == 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;
			
			case 20:
				return 3350;
				break;
			
			case 21:
				return 3353;
				break;
			}
	}
	return 3976;
}

var func_567()//Position - 0x4A9B6
{
	return Global_25153;
}

var func_568()//Position - 0x4A9C1
{
	return Global_25152;
}

bool func_569(int iParam0)//Position - 0x4A9CC
{
	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_300(1749, -1, 0);
			if (iVar0 > 15)
			{
				iVar3 = func_602(iParam0, 11, -1);
				if (iVar3 >= 237)
				{
					iVar4 = func_504(joaat("mp_m_freemode_01"), iVar3, 11, 3);
					if ((dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1467682989, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 362493804, 0))
					{
						if (iVar2 == 671171671)
						{
							return true;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1393156190, 0))
					{
						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_300(1749, -1, 0);
			if (iVar0 == 3)
			{
				if (iVar1 == 14)
				{
					return true;
				}
			}
			else if (iVar0 > 15)
			{
				iVar5 = func_602(iParam0, 11, -1);
				if (iVar5 >= 256)
				{
					iVar6 = func_504(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;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1393156190, 0))
					{
						return true;
					}
				}
			}
		}
	}
	return false;
}

bool func_570(int iParam0)//Position - 0x4AB47
{
	int iVar0;
	
	iVar0 = Global_1587816[player::player_id() /*444*/].f_88.f_28;
	if (iVar0 != -1 && iVar0 < 4)
	{
		if (func_571(iVar0) != -1 && func_571(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_571(int iParam0)//Position - 0x4ABBC
{
	if (iParam0 <= -1 || iParam0 >= 4)
	{
		return -1;
	}
	return Global_2435608.f_5734[iParam0];
}

bool func_572(int iParam0)//Position - 0x4ABE4
{
	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_574(joaat("mp_m_freemode_01"), 11, func_602(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_602(iParam0, 11, -1);
						if (iVar3 >= 237)
						{
							iVar4 = func_504(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_602(iParam0, 8, -1);
						if (iVar5 >= 241)
						{
							iVar6 = func_504(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_574(joaat("mp_f_freemode_01"), 11, func_602(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_602(iParam0, 11, -1);
						if (iVar8 >= 256)
						{
							iVar9 = func_504(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_574(joaat("mp_f_freemode_01"), 11, func_602(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_574(joaat("mp_f_freemode_01"), 11, func_602(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_602(iParam0, 8, -1);
						if (iVar12 >= 136)
						{
							iVar13 = func_504(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_573(iParam0))
		{
			return true;
		}
	}
	return false;
}

bool func_573(int iParam0)//Position - 0x4B320
{
	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_574(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x4B383
{
	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_578(89, -1))
				{
					return 89;
				}
			}
			else if (iParam2 == 17)
			{
				if (func_578(88, -1))
				{
					return 88;
				}
			}
			else if (iParam2 == 28)
			{
				if (func_578(87, -1))
				{
					return 87;
				}
			}
			else if (iParam2 == 41)
			{
				return 86;
			}
			else if (iParam2 >= 237)
			{
				iVar0 = func_504(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_575(iVar3, 3);
								}
								else
								{
									return uVar4;
								}
							}
							iVar2++;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1467682989, 0))
					{
						if (iParam3 == 0)
						{
							iParam3 = func_300(1749, -1, 0);
						}
						return func_575(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_578(89, -1))
				{
					return 89;
				}
			}
			else if (iParam2 == 17)
			{
				if (func_578(88, -1))
				{
					return 88;
				}
			}
			else if (iParam2 == 28)
			{
				if (func_578(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_578(89, -1))
				{
					return 89;
				}
			}
			else if (iParam2 == 225)
			{
				if (func_578(88, -1))
				{
					return 88;
				}
			}
			else if (iParam2 == 236)
			{
				if (func_578(87, -1))
				{
					return 87;
				}
			}
			else if (iParam2 >= 241)
			{
				iVar6 = func_504(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_575(iVar9, 3);
								}
								else
								{
									return uVar10;
								}
							}
							iVar8++;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1467682989, 0))
					{
						if (iParam3 == 0)
						{
							iParam3 = func_300(1749, -1, 0);
						}
						return func_575(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_578(89, -1))
				{
					return 89;
				}
			}
			else if (iParam2 == 7)
			{
				if (func_578(88, -1))
				{
					return 88;
				}
			}
			else if (iParam2 == 9)
			{
				if (func_578(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_504(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_575(iVar15, 4);
								}
								else
								{
									return uVar16;
								}
							}
							iVar14++;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar12, -1467682989, 0))
					{
						if (iParam3 == 0)
						{
							iParam3 = func_300(1749, -1, 0);
						}
						return func_575(iParam3, 4);
					}
				}
			}
		}
		else if (iParam1 == 8)
		{
			if (iParam2 == 1)
			{
				return 75;
			}
			else if (iParam2 == 2)
			{
				return 77;
			}
			else if (iParam2 == 4)
			{
				if (func_578(89, -1))
				{
					return 89;
				}
			}
			else if (iParam2 == 7)
			{
				if (func_578(88, -1))
				{
					return 88;
				}
			}
			else if (iParam2 == 9)
			{
				if (func_578(87, -1))
				{
					return 87;
				}
			}
			else if (iParam2 == 17)
			{
				return 75;
			}
			else if (iParam2 == 18)
			{
				return 77;
			}
			else if (iParam2 == 20)
			{
				if (func_578(89, -1))
				{
					return 89;
				}
			}
			else if (iParam2 == 23)
			{
				if (func_578(88, -1))
				{
					return 88;
				}
			}
			else if (iParam2 == 25)
			{
				if (func_578(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_504(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_575(iVar21, 4);
								}
								else
								{
									return uVar22;
								}
							}
							iVar20++;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar18, -1467682989, 0))
					{
						if (iParam3 == 0)
						{
							iParam3 = func_300(1749, -1, 0);
						}
						return func_575(iParam3, 4);
					}
				}
			}
		}
	}
	return -1;
}

int func_575(int iParam0, int iParam1)//Position - 0x4BBE3
{
	var uVar0;
	int iVar1;
	int iVar2;
	struct<4> Var3;
	
	if (iParam1 == 3)
	{
		if (func_577(iParam0, &uVar0))
		{
			return uVar0;
		}
	}
	else if (iParam1 == 4)
	{
		if (func_576(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_576(int iParam0, var uParam1)//Position - 0x4BC54
{
	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;
		
		case 1647997020:
			iVar0 = 482;
			break;
		
		case -1405854945:
			iVar0 = 483;
			break;
		
		case -1171294997:
			iVar0 = 484;
			break;
		
		case -77076350:
			iVar0 = 485;
			break;
		
		case 775569873:
			iVar0 = 486;
			break;
		
		case 330569485:
			iVar0 = 487;
			break;
		
		case -1549217620:
			iVar0 = 488;
			break;
		
		case 1674429052:
			iVar0 = 489;
			break;
		
		case -254669596:
			iVar0 = 490;
			break;
		
		case 1802602254:
			iVar0 = 491;
			break;
		
		case -941072260:
			iVar0 = 492;
			break;
		
		case -1844749517:
			iVar0 = 493;
			break;
		
		case 82745424:
			iVar0 = 494;
			break;
		
		case -673460083:
			iVar0 = 495;
			break;
		
		case -99954496:
			iVar0 = 496;
			break;
		
		case 2078163456:
			iVar0 = 497;
			break;
		
		case 1362343227:
			iVar0 = 498;
			break;
		
		case 1176005743:
			iVar0 = 499;
			break;
	}
	switch (iParam0)
	{
		case -1504557219:
			iVar0 = 500;
			break;
		
		case 367912881:
			iVar0 = 501;
			break;
		
		case -836343280:
			iVar0 = 502;
			break;
		
		case -46521805:
			iVar0 = 503;
			break;
		
		case -743048780:
			iVar0 = 504;
			break;
		
		case 1294865118:
			iVar0 = 505;
			break;
		
		case -1479686374:
			iVar0 = 506;
			break;
		
		case 256017193:
			iVar0 = 507;
			break;
		
		case 1232443120:
			iVar0 = 508;
			break;
		
		case -803282271:
			iVar0 = 509;
			break;
		
		case 1788600442:
			iVar0 = 510;
			break;
		
		case 1439605343:
			iVar0 = 511;
			break;
		
		case -1094679264:
			iVar0 = 512;
			break;
		
		case 1230482241:
			iVar0 = 513;
			break;
		
		case 2054714291:
			iVar0 = 514;
			break;
		
		case 192117676:
			iVar0 = 515;
			break;
		
		case -2071204405:
			iVar0 = 516;
			break;
		
		case -1618181476:
			iVar0 = 517;
			break;
		
		case -1408253665:
			iVar0 = 518;
			break;
		
		case -134185391:
			iVar0 = 519;
			break;
		
		case -785783411:
			iVar0 = 520;
			break;
		
		case -633466710:
			iVar0 = 521;
			break;
		
		case -2072487372:
			iVar0 = 522;
			break;
		
		case 1211025296:
			iVar0 = 523;
			break;
		
		case 742659337:
			iVar0 = 524;
			break;
		
		case 1365533160:
			iVar0 = 525;
			break;
		
		case 1213205618:
			iVar0 = 526;
			break;
		
		case -164052103:
			iVar0 = 527;
			break;
		
		case -1306490297:
			iVar0 = 528;
			break;
		
		case -994802645:
			iVar0 = 529;
			break;
		
		case 637406209:
			iVar0 = 530;
			break;
		
		case -170855031:
			iVar0 = 531;
			break;
		
		case 1333098305:
			iVar0 = 532;
			break;
		
		case 119103934:
			iVar0 = 533;
			break;
		
		case -141369051:
			iVar0 = 534;
			break;
		
		case -593355218:
			iVar0 = 535;
			break;
		
		case 316832763:
			iVar0 = 536;
			break;
		
		case -393713544:
			iVar0 = 537;
			break;
		
		case -1876234625:
			iVar0 = 538;
			break;
		
		case -1453082334:
			iVar0 = 539;
			break;
		
		case -1397705983:
			iVar0 = 540;
			break;
		
		case -1278086171:
			iVar0 = 541;
			break;
		
		case -1510892268:
			iVar0 = 542;
			break;
		
		case 204876084:
			iVar0 = 543;
			break;
		
		case -988359492:
			iVar0 = 544;
			break;
		
		case 975745281:
			iVar0 = 545;
			break;
		
		case 591099372:
			iVar0 = 546;
			break;
		
		case -1014948306:
			iVar0 = 547;
			break;
		
		case -1866439788:
			iVar0 = 548;
			break;
		
		case -1265767186:
			iVar0 = 549;
			break;
		
		case 2070931859:
			iVar0 = 550;
			break;
		
		case 413611416:
			iVar0 = 551;
			break;
		
		case 765001063:
			iVar0 = 552;
			break;
		
		case -686624622:
			iVar0 = 553;
			break;
	}
	if (iVar0 != -1)
	{
		*uParam1 = (129 + iVar0);
		return true;
	}
	return false;
}

bool func_577(int iParam0, var uParam1)//Position - 0x4D9B8
{
	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;
		
		case -441419962:
			iVar0 = 470;
			break;
		
		case -841238543:
			iVar0 = 471;
			break;
		
		case 1644315794:
			iVar0 = 472;
			break;
		
		case 1964334039:
			iVar0 = 473;
			break;
		
		case -1168614925:
			iVar0 = 474;
			break;
		
		case -56760095:
			iVar0 = 475;
			break;
		
		case -1006202521:
			iVar0 = 476;
			break;
		
		case -1834049539:
			iVar0 = 477;
			break;
		
		case -2060372580:
			iVar0 = 478;
			break;
		
		case 1057304170:
			iVar0 = 479;
			break;
		
		case 1421572640:
			iVar0 = 480;
			break;
		
		case 481259621:
			iVar0 = 481;
			break;
		
		case 1227497670:
			iVar0 = 482;
			break;
		
		case 319276780:
			iVar0 = 483;
			break;
		
		case 2070827921:
			iVar0 = 484;
			break;
		
		case 1433629991:
			iVar0 = 485;
			break;
		
		case -1712994650:
			iVar0 = 486;
			break;
		
		case 2125094286:
			iVar0 = 487;
			break;
		
		case 712298404:
			iVar0 = 488;
			break;
		
		case 1998072324:
			iVar0 = 489;
			break;
		
		case 1249206960:
			iVar0 = 490;
			break;
		
		case -621355603:
			iVar0 = 491;
			break;
		
		case 1570835960:
			iVar0 = 492;
			break;
		
		case -1254202543:
			iVar0 = 493;
			break;
		
		case -956136061:
			iVar0 = 494;
			break;
		
		case -1925480683:
			iVar0 = 495;
			break;
		
		case 220143168:
			iVar0 = 496;
			break;
		
		case -1021851577:
			iVar0 = 497;
			break;
		
		case -773345516:
			iVar0 = 498;
			break;
		
		case 1091795205:
			iVar0 = 499;
			break;
	}
	switch (iParam0)
	{
		case -1159824040:
			iVar0 = 500;
			break;
		
		case 1448723789:
			iVar0 = 501;
			break;
		
		case -488127340:
			iVar0 = 502;
			break;
		
		case -1964967283:
			iVar0 = 503;
			break;
		
		case -1635180127:
			iVar0 = 504;
			break;
		
		case -10501563:
			iVar0 = 505;
			break;
		
		case 933419071:
			iVar0 = 506;
			break;
		
		case 1362374839:
			iVar0 = 507;
			break;
		
		case 488078687:
			iVar0 = 508;
			break;
		
		case -1869054624:
			iVar0 = 509;
			break;
		
		case -1817642831:
			iVar0 = 510;
			break;
		
		case 482472119:
			iVar0 = 511;
			break;
		
		case -1736839817:
			iVar0 = 512;
			break;
		
		case 415527077:
			iVar0 = 513;
			break;
		
		case -907440189:
			iVar0 = 514;
			break;
		
		case -2099454789:
			iVar0 = 515;
			break;
		
		case -1719543542:
			iVar0 = 516;
			break;
		
		case 1848661824:
			iVar0 = 517;
			break;
		
		case -2018029706:
			iVar0 = 518;
			break;
		
		case -717212544:
			iVar0 = 519;
			break;
		
		case -594210450:
			iVar0 = 520;
			break;
		
		case 1520437442:
			iVar0 = 521;
			break;
		
		case 374349467:
			iVar0 = 522;
			break;
		
		case 1533123503:
			iVar0 = 523;
			break;
		
		case -1832780872:
			iVar0 = 524;
			break;
		
		case 130721536:
			iVar0 = 525;
			break;
		
		case 195356001:
			iVar0 = 526;
			break;
		
		case -556915722:
			iVar0 = 527;
			break;
		
		case -1930562696:
			iVar0 = 528;
			break;
		
		case 941227127:
			iVar0 = 529;
			break;
		
		case -842699589:
			iVar0 = 530;
			break;
		
		case 1654019571:
			iVar0 = 531;
			break;
		
		case 224191803:
			iVar0 = 532;
			break;
		
		case -1996796255:
			iVar0 = 533;
			break;
		
		case -1850715440:
			iVar0 = 534;
			break;
		
		case 1603163718:
			iVar0 = 535;
			break;
		
		case 1567227108:
			iVar0 = 536;
			break;
		
		case -1630649997:
			iVar0 = 537;
			break;
		
		case -25727072:
			iVar0 = 538;
			break;
		
		case -1363418653:
			iVar0 = 539;
			break;
		
		case 1878229535:
			iVar0 = 540;
			break;
		
		case 1531050226:
			iVar0 = 541;
			break;
	}
	if (iVar0 != -1)
	{
		*uParam1 = (129 + iVar0);
		return true;
	}
	return false;
}

int func_578(int iParam0, int iParam1)//Position - 0x4F69C
{
	int iVar0;
	int iVar1;
	
	if (func_580(iParam0) == 3976)
	{
		return false;
	}
	iVar0 = func_579(iParam0, iParam1);
	iVar1 = iParam0;
	return gameplay::is_bit_set(iVar0, func_50(iVar1));
}

var func_579(var uParam0, int iParam1)//Position - 0x4F6CE
{
	var uVar0;
	
	uVar0 = func_300(func_580(uParam0), iParam1, 0);
	return uVar0;
}

int func_580(var uParam0)//Position - 0x4F6E7
{
	int iVar0;
	int iVar1;
	
	iVar0 = uParam0;
	iVar1 = func_54(iVar0);
	if ((func_568() == 0 || func_567() == 0) || (func_568() == 999 && func_567() == 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;
			
			case 20:
				return 3349;
				break;
			
			case 21:
				return 3352;
				break;
			}
	}
	return 3976;
}

int func_581(int iParam0)//Position - 0x4F87F
{
	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_582(int iParam0, int iParam1)//Position - 0x4F8D4
{
	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_504(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_575(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_575(-1261720761, 4);
		}
		else if (iParam1 == 80)
		{
			return func_575(-1261720761, 4);
		}
		else if (iParam1 == 81)
		{
			return func_575(-1261720761, 4);
		}
		else if (iParam1 == 82)
		{
			return func_575(-1261720761, 4);
		}
		else if (iParam1 == 83)
		{
			return func_575(-1261720761, 4);
		}
		else if (iParam1 == 84)
		{
			return func_575(-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_504(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_575(iVar9, 4);
						}
						else
						{
							return uVar10;
						}
					}
					iVar8++;
				}
			}
		}
	}
	return -1;
}

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

void func_584(int iParam0, int iParam1)//Position - 0x50CD3
{
	int iVar0;
	
	iVar0 = func_601();
	if (iVar0 != -1)
	{
		if (!func_585(iParam0, iParam1, iVar0))
		{
			func_599(iVar0, 0, Global_69340);
		}
	}
}

bool func_585(int iParam0, int iParam1, int iParam2)//Position - 0x50D00
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	if (!func_589(iParam0, iParam1))
	{
		if (iParam0 == joaat("mp_m_freemode_01"))
		{
			iVar0 = -1;
			iVar1 = -1;
			if (iParam1 >= 237)
			{
				iVar1 = func_504(iParam0, iParam1, 11, 3);
				iVar0 = func_587(iVar1);
			}
			if (iVar1 != -1 && func_534(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_574(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_504(iParam0, iParam1, 11, 4);
				iVar2 = func_587(iVar3);
			}
			if (iVar3 != -1 && func_534(iVar3, 0) != -1)
			{
				return false;
			}
			if ((iParam1 >= 0 && iParam1 <= 15) || iVar2 == 0)
			{
				if (iParam2 == 13 || iParam2 == 15)
				{
					if (func_574(iParam0, 11, iParam1, 0) == -1)
					{
						return true;
					}
				}
			}
			else if ((iParam1 >= 32 && iParam1 <= 47) || iVar2 == 2)
			{
				if (iParam2 == 13 || iParam2 == 16)
				{
					if (func_574(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_586(int iParam0, int iParam1, int iParam2)//Position - 0x50FDC
{
	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_504(iParam0, iParam1, 4, 3);
			iVar1 = func_587(iVar0);
		}
		iVar2 = -1;
		iVar3 = -1;
		if (iParam2 >= 237)
		{
			iVar2 = func_504(iParam0, iParam2, 11, 3);
			iVar3 = func_587(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) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1325813684, 0))
			{
				return false;
			}
		}
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		iVar4 = -1;
		iVar5 = -1;
		if (iParam1 >= 256)
		{
			iVar4 = func_504(iParam0, iParam1, 4, 4);
			iVar5 = func_587(iVar4);
		}
		iVar6 = -1;
		if (iParam2 >= 256)
		{
			iVar6 = func_504(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) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1325813684, 0))
		{
			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_587(int iParam0)//Position - 0x51ED3
{
	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_588(int iParam0, int iParam1, int iParam2)//Position - 0x52035
{
	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_504(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_485(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_504(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_485(iParam0, iVar10, 11, 4);
							return iVar0;
						}
						else
						{
							iVar0 = iVar11;
							return iVar0;
						}
					}
					iVar9++;
				}
			}
		}
	}
	if (iVar0 != -99)
	{
		iVar0 = (iVar0 + iParam2);
	}
	return iVar0;
}

bool func_589(int iParam0, int iParam1)//Position - 0x5232C
{
	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_504(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_504(iParam0, iParam1, 11, 4), -1393156190, 0)))
			{
				return true;
			}
			break;
	}
	return false;
}

int func_590(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x5246D
{
	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;
	int iVar93;
	
	iVar0 = -99;
	iVar1 = 1;
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		iVar2 = -1;
		iVar3 = -1;
		if (iParam2 >= 237)
		{
			iVar2 = func_504(iParam0, iParam2, 11, 3);
			iVar3 = func_587(iVar2);
		}
		iVar4 = -1;
		iVar5 = -1;
		if (iParam1 >= 237)
		{
			iVar4 = func_504(iParam0, iParam1, 11, 3);
			iVar5 = func_587(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)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -549843760, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1830529185, 0))
			{
				if ((((((iParam1 >= 124 && iParam1 <= 139) || (iParam1 >= 188 && iParam1 <= 235)) || iVar5 == 8) || iVar5 == 12) || iVar5 == 13) || iVar5 == 14)
				{
					return -99;
				}
				if (!dlc1::_0x341DE7ED1D2A1BFD(iVar2, -549843760, 0) && !dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1830529185, 0))
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -828478571, 0))
					{
						return -99;
					}
				}
			}
			if ((dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1655154167, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1719167561, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1431529976, 0))
			{
				return -99;
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1690933245, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1325813684, 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_485(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_591())
			{
				iVar0 = 34;
				iVar1 = 0;
				dlc1::init_shop_ped_component(&Var13);
				if (Global_2565441[1] != 0)
				{
					dlc1::_get_num_props_from_outfit(3, 6, -1, 0, -1, 8);
					dlc1::get_shop_ped_query_component(Global_2565438[1], &Var13);
					if (Var13.f_1 != Global_2565441[1])
					{
						Global_2565441[1] = 0;
						Global_2565438[1] = 0;
					}
				}
				if (Global_2565441[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_2565441[1] = Var13.f_1;
								Global_2565438[1] = iVar31;
								iVar30 = iVar32 + 1;
							}
							iVar31++;
						}
						iVar30++;
					}
				}
				if (Global_2565441[1] != 0)
				{
					iVar0 = (func_486(iParam0, func_426(8)) + Global_2565438[1]);
					iVar1 = 1;
				}
			}
			else
			{
				iVar0 = 34;
				iVar1 = 0;
				if (iParam1 >= 237)
				{
					iVar33 = func_504(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_485(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_504(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_485(iParam0, iVar43, 8, 3);
							}
							else
							{
								iVar0 = iVar44;
							}
							iVar42 = iVar41 + 1;
							iVar1 = 0;
						}
						iVar42++;
					}
				}
				else
				{
					iVar0 = func_485(iParam0, -1739646902, 8, 3);
					iVar1 = 1;
				}
			}
		}
		else if (iParam1 <= 219)
		{
			iVar0 = 208;
		}
		else if (iParam1 <= 235)
		{
			iVar0 = 2;
			iVar1 = 0;
			if (func_591())
			{
				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_2565441[iVar47] != 0)
				{
					dlc1::_get_num_props_from_outfit(3, 6, -1, 0, -1, 8);
					dlc1::get_shop_ped_query_component(Global_2565438[iVar47], &Var48);
					if (Var48.f_1 != Global_2565441[iVar47])
					{
						Global_2565441[iVar47] = 0;
						Global_2565438[iVar47] = 0;
					}
				}
				if (Global_2565441[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_2565441[iVar47] = Var48.f_1;
								Global_2565438[iVar47] = iVar66;
								iVar65 = iVar67 + 1;
							}
							iVar66++;
						}
						iVar65++;
					}
				}
				if (Global_2565441[iVar47] != 0)
				{
					iVar0 = (func_486(iParam0, func_426(8)) + Global_2565438[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 = false;
			iVar69 = func_504(iParam0, iParam1, 11, 3);
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1351486939, 0))
			{
				iVar68 = true;
			}
			if (iVar69 != -1)
			{
				iVar70 = dlc1::_0xC17AD0E5752BECDA(iVar69);
				iVar71 = 0;
				while (iVar71 < iVar70)
				{
					dlc1::get_variant_component(iVar69, iVar71, &iVar72, &iVar73, &iVar74);
					if (iVar74 == 8)
					{
						if (iVar72 != 0 && iVar72 != 1849449579)
						{
							iVar0 = func_485(iParam0, iVar72, 8, 3);
							iVar1 = 0;
							if (!iVar68 || dlc1::_0x341DE7ED1D2A1BFD(iVar72, 647976134, 0))
							{
								iVar71 = iVar70 + 1;
							}
						}
						else
						{
							iVar0 = iVar73;
							iVar71 = iVar70 + 1;
							iVar1 = 0;
						}
					}
					iVar71++;
				}
			}
		}
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		iVar75 = -1;
		iVar76 = -1;
		if (iParam2 >= 256)
		{
			iVar75 = func_504(iParam0, iParam2, 11, 4);
			iVar76 = func_587(iVar75);
		}
		iVar77 = -1;
		iVar78 = -1;
		if (iParam1 >= 256)
		{
			iVar77 = func_504(iParam0, iParam1, 11, 4);
			iVar78 = func_587(iVar77);
		}
		if (iVar75 != -1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar75, -491588875, 0))
			{
				return -99;
			}
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar75, -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)) || iVar78 == 0) || iVar78 == 2) || iVar78 == 4) || iVar78 == 5) || iVar78 == 11) || iVar78 == 12) || iVar78 == 13) || iVar78 == 15) || iVar77 == -221826679) || iVar77 == 1172264892) || iVar77 == 1474853838) || iVar77 == 278369420) || iVar77 == -310817200) || iVar77 == -138976564) || iVar77 == -905541781) || iVar77 == 998321559) || iVar77 == 64401473)
			{
			}
			else
			{
				return -99;
			}
		}
		iVar79 = 0;
		iVar80 = false;
		if (((((((((dlc1::_0x341DE7ED1D2A1BFD(iVar77, -761463976, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar77, -1347486026, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar77, -1119232689, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar77, 1784133476, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar77, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar77, -2020757158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar77, -2020757158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar77, 2030343924, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar77, -549843760, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar77, 1830529185, 0))
		{
			iVar80 = true;
			if ((((iParam2 >= 16 && iParam2 <= 31) || (iParam2 >= 128 && iParam2 <= 143)) || iVar76 == 1) || iVar76 == 8)
			{
				iVar79 = 2;
			}
			else if ((dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1769225721, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1834446747, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -868698159, 0))
			{
				iVar79 = 0;
			}
			else if ((((((((((((((iParam2 >= 160 && iParam2 <= 175) || iVar76 == 10) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 684992453, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1939378450, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -820724897, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 153792394, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -872449705, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 700658917, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1714969731, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 745826556, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1055526375, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 144417099, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 947651647, 0))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar77, 1784133476, 0))
				{
					iVar79 = 1;
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar77, -1119232689, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar77, 2044466679, 0))
				{
					iVar79 = 1;
				}
				else
				{
					iVar79 = -1;
				}
			}
			else
			{
				iVar79 = 1;
			}
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar77, -1351486939, 0))
		{
			iVar80 = true;
			if ((((((((((iParam2 >= 112 && iParam2 <= 127) || iVar76 == 7) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 684992453, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -820724897, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -872449705, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -416620954, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 947651647, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -549843760, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1830529185, 0))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1769225721, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1834446747, 0))
				{
					iVar79 = 0;
				}
				else
				{
					iVar79 = 1;
				}
			}
			else if ((((((dlc1::_0x341DE7ED1D2A1BFD(iVar75, 153792394, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1322269404, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 548036233, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 700658917, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1014753511, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -2119756144, 0))
			{
				iVar79 = 0;
			}
			else
			{
				iVar79 = -1;
			}
		}
		switch (iVar77)
		{
			case -221826679:
			case 1172264892:
			case 1474853838:
			case 278369420:
			case -310817200:
			case -138976564:
			case -905541781:
			case 998321559:
			case 64401473:
			case 15269846:
			case -674026069:
			case -904392139:
			case -1135708510:
			case -1360241698:
			case -2130051046:
			case 1935434943:
			case 1704282417:
			case 1472114052:
			case 1169688951:
			case -1193832172:
			case -886884949:
			case -1669539745:
			case -1370260468:
			case -413962745:
			case -238779663:
				iVar80 = true;
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1769225721, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -868698159, 0))
				{
					iVar79 = 1;
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1834446747, 0))
				{
					iVar79 = 2;
				}
				else if (((((dlc1::_0x341DE7ED1D2A1BFD(iVar75, -870074461, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1719338724, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -416620954, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 947651647, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -549843760, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1830529185, 0))
				{
					iVar79 = 3;
				}
				else if ((((((iParam2 >= 16 && iParam2 <= 31) || (iParam2 >= 128 && iParam2 <= 143)) || (iParam2 >= 112 && iParam2 <= 127)) || iVar76 == 1) || iVar76 == 7) || iVar76 == 8)
				{
					iVar79 = 0;
				}
				else
				{
					iVar79 = -1;
				}
				break;
			
			case 619380843:
				iVar80 = true;
				if ((((iParam2 >= 16 && iParam2 <= 31) || (iParam2 >= 128 && iParam2 <= 143)) || iVar76 == 1) || iVar76 == 8)
				{
					iVar79 = 0;
				}
				else
				{
					iVar79 = -1;
				}
				break;
		}
		if (iVar80)
		{
			if (iVar79 != -1)
			{
				iVar81 = dlc1::_0xC17AD0E5752BECDA(iVar77);
				iVar82 = 0;
				while (iVar82 < iVar81)
				{
					dlc1::get_variant_component(iVar77, iVar82, &iVar83, &iVar84, &iVar85);
					if (iVar85 == 8)
					{
						if ((((iVar79 == 3 && dlc1::_0x341DE7ED1D2A1BFD(iVar83, 1318819110, 0)) || (iVar79 == 2 && dlc1::_0x341DE7ED1D2A1BFD(iVar83, -1138757583, 0))) || (iVar79 == 1 && dlc1::_0x341DE7ED1D2A1BFD(iVar83, 647976134, 0))) || (((iVar79 == 0 && !dlc1::_0x341DE7ED1D2A1BFD(iVar83, 647976134, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar83, -1138757583, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar83, 1318819110, 0)))
						{
							if (iVar83 != 0 && iVar83 != 1849449579)
							{
								iVar0 = func_485(iParam0, iVar83, 8, 4);
							}
							else
							{
								iVar0 = iVar84;
							}
							iVar82 = iVar81 + 1;
							iVar1 = 0;
							return iVar0;
						}
					}
					iVar82++;
				}
			}
			return -99;
		}
		if ((((((((iParam1 >= 192 && iParam1 <= 207) || iVar78 == 12) && ((((iParam2 >= 96 && iParam2 <= 111) || (iParam2 >= 112 && iParam2 <= 127)) || iVar76 == 6) || iVar76 == 7)) && func_591()) && !dlc1::_0x341DE7ED1D2A1BFD(iVar75, -416620954, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar75, 947651647, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar75, -549843760, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1830529185, 0))
		{
			iVar86 = iVar77;
			if (iParam1 == 199)
			{
				iVar0 = func_485(iParam0, 331193219, 8, 4);
			}
			else if (iParam1 == 200)
			{
				iVar0 = func_485(iParam0, 1115060468, 8, 4);
			}
			else if (iParam1 == 201)
			{
				iVar0 = func_485(iParam0, 779636984, 8, 4);
			}
			else if (iVar86 == 948380380)
			{
				iVar0 = func_485(iParam0, -570249206, 8, 4);
			}
			else if (iVar86 == 708412993)
			{
				iVar0 = func_485(iParam0, -876115052, 8, 4);
			}
			else if (iVar86 == 1974869305)
			{
				iVar0 = func_485(iParam0, -108599534, 8, 4);
			}
			else if (iVar86 == 1197916315)
			{
				iVar0 = func_485(iParam0, 200575961, 8, 4);
			}
			else if (iVar86 == 587593690)
			{
				iVar0 = func_485(iParam0, 961930907, 8, 4);
			}
			else if (iVar86 == 323213398)
			{
				iVar0 = func_485(iParam0, -257698508, 8, 4);
			}
			else if (iVar86 == 1050193651)
			{
				iVar0 = func_485(iParam0, 516534659, 8, 4);
			}
			else if (iVar86 == 811438717)
			{
				iVar0 = func_485(iParam0, -1174312584, 8, 4);
			}
			else if (iVar86 == -877868759)
			{
				iVar0 = func_485(iParam0, -1192794304, 8, 4);
			}
			else if (iVar86 == -1108464212)
			{
				iVar0 = func_485(iParam0, -2027256889, 8, 4);
			}
			else if (iVar86 == -467866094)
			{
				iVar0 = func_485(iParam0, -1670074789, 8, 4);
			}
			else if (iVar86 == -673000034)
			{
				iVar0 = func_485(iParam0, -326349175, 8, 4);
			}
			else if (iVar86 == -1984939718)
			{
				iVar0 = func_485(iParam0, -796060021, 8, 4);
			}
			iVar1 = 0;
		}
		else if (iParam1 <= 15)
		{
			if (((iParam2 >= 160 && iParam2 <= 175) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1769225721, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -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) || iVar76 == 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 (iVar77 != -1)
			{
				iVar87 = true;
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar77, 1965569012, 0))
				{
					iVar87 = false;
					if (iParam2 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1200513218, 0))
					{
						iVar87 = true;
					}
				}
				if (iVar87)
				{
					iVar88 = 0;
					if (iParam2 >= 156 && iParam2 <= 171)
					{
						if (iVar78 == 12)
						{
							iVar88 = 1;
						}
					}
					iVar89 = dlc1::_0xC17AD0E5752BECDA(iVar77);
					iVar90 = 0;
					while (iVar90 < iVar89)
					{
						dlc1::get_variant_component(iVar77, iVar90, &iVar91, &iVar92, &iVar93);
						if (iVar93 == 8 && ((iVar91 == 0 || iVar91 == 1849449579) || iVar88 == dlc1::_0x341DE7ED1D2A1BFD(iVar91, 647976134, 0)))
						{
							if (iVar91 != 0 && iVar91 != 1849449579)
							{
								iVar0 = func_485(iParam0, iVar91, 8, 4);
							}
							else
							{
								iVar0 = iVar92;
							}
							iVar90 = iVar89 + 1;
							iVar1 = 0;
						}
						iVar90++;
					}
				}
			}
		}
	}
	if (iVar1 && iVar0 != -99)
	{
		iVar0 = (iVar0 + iParam3);
	}
	return iVar0;
}

int func_591()//Position - 0x53E28
{
	return dlc2::is_dlc_present(42019760);
}

int func_592(int iParam0, int iParam1, int iParam2)//Position - 0x53E39
{
	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_593(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x54DAF
{
	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_504(iParam0, iParam2, 11, 3);
				iVar1 = func_587(iVar2);
			}
			if (iParam1 >= 241)
			{
				iVar4 = func_504(iParam0, iParam1, 8, 3);
				iVar3 = func_587(iVar4);
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 320460654, 0))
			{
				iVar0 = 14;
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -2017999390, 0))
			{
				iVar0 = 6;
			}
			else if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1786447517, 0))
			{
				iVar0 = 1;
			}
			else if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1010805287, 0))
			{
				iVar0 = 4;
			}
			else 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_485(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_504(iParam0, iParam2, 11, 4);
				iVar1 = func_587(iVar2);
			}
			if (iParam1 >= 136)
			{
				iVar4 = func_504(iParam0, iParam1, 8, 4);
				iVar3 = func_587(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_589(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_504(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)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -549843760, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1830529185, 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_485(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_594(int iParam0, int iParam1, int iParam2)//Position - 0x55947
{
	int iVar0;
	
	if (iParam1 == 14)
	{
		iVar0 = iParam2;
		return func_500(iVar0);
	}
	switch (iParam0)
	{
		case joaat("player_zero"):
			switch (iParam1)
			{
				case 0:
					return 0;
					break;
				
				case 2:
					return Global_101186.f_1902.f_539[0 /*65*/].f_59;
					break;
				
				case 3:
					if (Global_101186.f_7851.f_99.f_58[120])
					{
						return 1;
					}
					else
					{
						return 0;
					}
					break;
				
				case 4:
					if (Global_101186.f_7851.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_101186.f_1902.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_101186.f_1902.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_595(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0x55D61
{
	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;
	int iVar149;
	int iVar150;
	int iVar151;
	int iVar152;
	int iVar153;
	int iVar154;
	int iVar155;
	int iVar156;
	int iVar157;
	int iVar158;
	int iVar159;
	int iVar160;
	
	iVar0 = -99;
	if (iParam4 == 2)
	{
		func_596(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_495(iParam0, 8);
					iVar3 = func_504(iParam1, iVar2, 8, 3);
					iVar4 = func_587(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_504(iParam1, iParam3, 11, 3);
					if (iVar5 != -1)
					{
						iVar6 = true;
						if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 19149565, 0))
						{
							iVar2 = func_495(iParam0, 8);
							iVar7 = func_504(iParam1, iVar2, 8, 3);
							iVar8 = func_587(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_485(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_504(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_485(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_587(func_504(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_495(iParam0, 8);
					iVar21 = func_504(iParam1, iVar2, 8, 3);
					iVar22 = func_587(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_504(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_485(iParam1, iVar26, 8, 3);
								}
								else
								{
									iVar0 = iVar27;
									iVar25 = iVar24 + 1;
								}
							}
							iVar25++;
						}
					}
				}
			}
			else if (iParam2 == 7)
			{
				iVar29 = -1;
				iVar30 = -1;
				if (iParam3 >= 92)
				{
					iVar30 = func_504(iParam1, iParam3, 7, 3);
					iVar29 = func_587(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_495(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_504(iParam1, iVar2, 8, 3);
						iVar32 = func_587(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_485(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_504(iParam1, iVar2, 8, 3);
					iVar40 = func_587(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_485(iParam1, iVar44, 8, 3);
									}
									else
									{
										iVar0 = iVar45;
									}
									iVar43 = iVar42 + 1;
								}
								iVar43++;
							}
						}
					}
				}
				else if (iParam3 >= 92)
				{
					iVar47 = func_504(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_485(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_504(iParam1, iParam3, 7, 3);
					iVar53 = func_587(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_495(iParam0, 11);
					if (iVar55 >= 237)
					{
						iVar56 = func_504(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_485(iParam1, iVar59, 11, 3);
										}
										else
										{
											iVar0 = iVar60;
										}
										iVar58 = iVar57 + 1;
									}
									iVar58++;
								}
							}
						}
					}
				}
			}
		}
		else if (iParam4 == 7)
		{
			if (iParam2 == 11)
			{
				iVar62 = func_495(iParam0, 11);
				if (iVar62 >= 237)
				{
					iVar63 = func_504(iParam1, iVar62, 11, 3);
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar63, 1847239679, 0) && dlc1::_0x341DE7ED1D2A1BFD(iVar63, 1553766533, 0))
					{
						iVar63 = func_504(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_485(iParam1, iVar66, 7, 3);
									}
									else
									{
										iVar0 = iVar67;
										iVar65 = iVar64 + 1;
									}
								}
								iVar65++;
							}
						}
					}
				}
			}
			else if (iParam2 == 14)
			{
				if (iParam3 >= 327)
				{
					iVar69 = func_504(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_485(iParam1, iVar72, 7, 3);
								}
								else
								{
									iVar0 = iVar73;
									iVar71 = iVar70 + 1;
								}
							}
							iVar71++;
						}
					}
				}
			}
		}
		else if (iParam4 == 4)
		{
			if (iParam2 == 11)
			{
				if (iParam3 >= 237)
				{
					iVar75 = func_504(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_485(iParam1, iVar78, 4, 3);
								}
								else
								{
									iVar0 = iVar79;
									iVar77 = iVar76 + 1;
								}
							}
							iVar77++;
						}
					}
				}
			}
		}
		else if (iParam4 == 10)
		{
			if (iParam2 == 11)
			{
				if (iParam3 >= 237)
				{
					iVar81 = func_504(iParam1, iParam3, 11, 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 == 10)
							{
								if (iVar84 != 0 && iVar84 != 1849449579)
								{
									iVar0 = func_485(iParam1, iVar84, 10, 3);
								}
								else
								{
									iVar0 = iVar85;
									iVar83 = iVar82 + 1;
								}
							}
							iVar83++;
						}
					}
				}
			}
		}
		else if (iParam4 == 6)
		{
			if (iParam2 == 4)
			{
				if (iParam3 >= 256)
				{
					iVar87 = func_504(iParam1, iParam3, 4, 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_485(iParam1, iVar90, 6, 3);
								}
								else
								{
									iVar0 = iVar91;
									iVar89 = iVar88 + 1;
								}
							}
							iVar89++;
						}
					}
				}
			}
			else if (iParam2 == 11)
			{
				if (iParam3 >= 237)
				{
					iVar93 = func_504(iParam1, iParam3, 11, 3);
					if (iVar93 != -1)
					{
						iVar94 = dlc1::_get_num_forced_components(iVar93);
						iVar95 = 0;
						while (iVar95 < iVar94)
						{
							dlc1::get_forced_component(iVar93, iVar95, &iVar96, &iVar97, &iVar98);
							if (iVar98 == 6)
							{
								if (iVar96 != 0 && iVar96 != 1849449579)
								{
									iVar0 = func_485(iParam1, iVar96, 6, 3);
								}
								else
								{
									iVar0 = iVar97;
									iVar95 = iVar94 + 1;
								}
							}
							iVar95++;
						}
					}
				}
			}
		}
		else if (iParam4 == 14)
		{
			if (iParam2 == 1)
			{
				if (iParam3 >= 26)
				{
					iVar99 = func_504(iParam1, iParam3, 1, 3);
					if (iVar99 != -1)
					{
						iVar100 = dlc1::_0x017568A8182D98A6(iVar99);
						iVar101 = 0;
						while (iVar101 < iVar100)
						{
							dlc1::_0xE1CA84EBF72E691D(iVar99, iVar101, &iVar102, &iVar103, &iVar104);
							if (iVar104 == iParam5)
							{
								if (iVar102 != 0 && iVar102 != 1849449579)
								{
									iVar0 = func_485(iParam1, iVar102, 14, 3);
									iVar101 = iVar100 + 1;
								}
								else
								{
									iVar0 = iVar103;
									iVar101 = iVar100 + 1;
								}
							}
							iVar101++;
						}
					}
				}
			}
		}
	}
	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)
				{
					iVar105 = func_504(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 == 3)
							{
								if (iVar108 != 0 && iVar108 != 1849449579)
								{
									iVar0 = func_485(iParam1, iVar108, 3, 4);
								}
								else
								{
									iVar0 = iVar109;
									iVar107 = iVar106 + 1;
								}
							}
							iVar107++;
						}
					}
				}
			}
		}
		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)
				{
					iVar111 = func_504(iParam1, iParam3, 11, 4);
					if (iVar111 != -1)
					{
						iVar112 = dlc1::_get_num_forced_components(iVar111);
						iVar113 = 0;
						while (iVar113 < iVar112)
						{
							dlc1::get_forced_component(iVar111, iVar113, &iVar114, &iVar115, &iVar116);
							if (iVar116 == 8)
							{
								if (iVar114 != 0 && iVar114 != 1849449579)
								{
									iVar0 = func_485(iParam1, iVar114, 8, 4);
								}
								else
								{
									iVar0 = iVar115;
									iVar113 = iVar112 + 1;
								}
							}
							iVar113++;
						}
					}
				}
			}
			else if (iParam2 == 7)
			{
				iVar117 = -1;
				if (iParam3 >= 55)
				{
					iVar117 = func_504(iParam1, iParam3, 7, 4);
				}
				if ((iVar117 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar117, -920534092, 0)) || (iVar117 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar117, 1537081084, 0)))
				{
					iVar118 = dlc1::get_hash_name_for_component(iParam0, 8, ped::get_ped_drawable_variation(iParam0, 8), ped::get_ped_texture_variation(iParam0, 8));
					iVar119 = false;
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar117, -378906828, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar117, -108328099, 0))
					{
						if (dlc1::_0x341DE7ED1D2A1BFD(iVar118, -1914383230, 0))
						{
							iVar119 = true;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar118, 1553766533, 0))
					{
						iVar119 = true;
					}
					if (iVar119)
					{
						iVar120 = dlc1::_0xC17AD0E5752BECDA(iVar118);
						iVar121 = 0;
						while (iVar121 < iVar120)
						{
							dlc1::get_variant_component(iVar118, iVar121, &iVar122, &iVar123, &iVar124);
							if (iVar124 == 8)
							{
								if (iVar122 != 0 && iVar122 != 1849449579)
								{
									iVar0 = func_485(iParam1, iVar122, 8, 4);
								}
								else
								{
									iVar0 = iVar123;
								}
								iVar121 = iVar120 + 1;
							}
							iVar121++;
						}
					}
				}
			}
		}
		else if (iParam4 == 6)
		{
			if (iParam2 == 4)
			{
				if (iParam3 >= 256)
				{
					iVar125 = func_504(iParam1, iParam3, 4, 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_485(iParam1, iVar128, 6, 4);
								}
								else
								{
									iVar0 = iVar129;
									iVar127 = iVar126 + 1;
								}
							}
							iVar127++;
						}
					}
				}
			}
			else if (iParam2 == 11)
			{
				if (iParam3 >= 256)
				{
					iVar131 = func_504(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 == 6)
							{
								if (iVar134 != 0 && iVar134 != 1849449579)
								{
									iVar0 = func_485(iParam1, iVar134, 6, 4);
								}
								else
								{
									iVar0 = iVar135;
									iVar133 = iVar132 + 1;
								}
							}
							iVar133++;
						}
					}
				}
			}
		}
		else if (iParam4 == 4)
		{
			if (iParam2 == 11)
			{
				if (iParam3 >= 256)
				{
					iVar137 = func_504(iParam1, iParam3, 11, 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 == 4)
							{
								if (iVar140 != 0 && iVar140 != 1849449579)
								{
									iVar0 = func_485(iParam1, iVar140, 4, 4);
								}
								else
								{
									iVar0 = iVar141;
									iVar139 = iVar138 + 1;
								}
							}
							iVar139++;
						}
					}
				}
			}
		}
		else if (iParam4 == 10)
		{
			if (iParam2 == 11)
			{
				if (iParam3 >= 256)
				{
					iVar143 = func_504(iParam1, iParam3, 11, 4);
					if (iVar143 != -1)
					{
						iVar144 = dlc1::_get_num_forced_components(iVar143);
						iVar145 = 0;
						while (iVar145 < iVar144)
						{
							dlc1::get_forced_component(iVar143, iVar145, &iVar146, &iVar147, &iVar148);
							if (iVar148 == 10)
							{
								if (iVar146 != 0 && iVar146 != 1849449579)
								{
									iVar0 = func_485(iParam1, iVar146, 10, 4);
								}
								else
								{
									iVar0 = iVar147;
									iVar145 = iVar144 + 1;
								}
							}
							iVar145++;
						}
					}
				}
			}
		}
		else if (iParam4 == 7)
		{
			if (iParam2 == 14)
			{
				if (iParam3 >= 327)
				{
					iVar149 = func_504(iParam1, iParam3, 14, 4);
					if (iVar149 != -1)
					{
						iVar150 = dlc1::_get_num_forced_components(iVar149);
						iVar151 = 0;
						while (iVar151 < iVar150)
						{
							dlc1::get_forced_component(iVar149, iVar151, &iVar152, &iVar153, &iVar154);
							if (iVar154 == 7)
							{
								if (iVar152 != 0 && iVar152 != 1849449579)
								{
									iVar0 = func_485(iParam1, iVar152, 7, 4);
								}
								else
								{
									iVar0 = iVar153;
									iVar151 = iVar150 + 1;
								}
							}
							iVar151++;
						}
					}
				}
			}
		}
		else if (iParam4 == 14)
		{
			if (iParam2 == 1)
			{
				if (iParam3 >= 26)
				{
					iVar155 = func_504(iParam1, iParam3, 1, 4);
					if (iVar155 != -1)
					{
						iVar156 = dlc1::_0x017568A8182D98A6(iVar155);
						iVar157 = 0;
						while (iVar157 < iVar156)
						{
							dlc1::_0xE1CA84EBF72E691D(iVar155, iVar157, &iVar158, &iVar159, &iVar160);
							if (iVar160 == iParam5)
							{
								if (iVar158 != 0 && iVar158 != 1849449579)
								{
									iVar0 = func_485(iParam1, iVar158, 14, 4);
									iVar157 = iVar156 + 1;
								}
								else
								{
									iVar0 = iVar159;
									iVar157 = iVar156 + 1;
								}
							}
							iVar157++;
						}
					}
				}
			}
		}
	}
	return iVar0;
}

bool func_596(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x573A5
{
	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_486(iParam1, 1))
					{
						func_609(iParam1, 1, iParam3);
						if (Global_2621445 == -1751726434)
						{
							*iParam4 = 0;
						}
					}
					iVar0 = func_495(iParam0, 1);
					if (iVar0 >= 26)
					{
						iVar1 = func_504(iParam1, iVar0, 1, 3);
						if (dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1188154325, 0))
						{
							iVar1 = func_504(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_485(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_486(iParam1, 1))
					{
						func_609(iParam1, 1, iParam3);
						if (Global_2621445 == -1751726434)
						{
							*iParam4 = 0;
						}
					}
					iVar7 = func_495(iParam0, 1);
					if (iVar7 >= 26)
					{
						iVar8 = func_504(iParam1, iVar7, 1, 4);
						if (dlc1::_0x341DE7ED1D2A1BFD(iVar8, -1188154325, 0))
						{
							iVar8 = func_504(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_485(iParam1, iVar11, 2, 4);
										}
										else
										{
											*iParam4 = uVar12;
											iVar10 = iVar9 + 1;
										}
									}
									iVar10++;
								}
							}
						}
					}
					break;
			}
			break;
	}
	if (*iParam4 != -99)
	{
		func_265(746, iParam3, Global_69340, 1);
		func_265(747, iParam2, Global_69340, 1);
		return true;
	}
	return false;
}

void func_597(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x5766C
{
	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_589(iVar0, iParam2))
				{
					iParam1 = 8;
					iParam2 = func_495(iParam0, iParam1);
				}
			}
			else if (iParam1 == 8)
			{
				iVar1 = func_495(iParam0, 11);
				if (!func_589(iVar0, iVar1))
				{
					return;
				}
			}
			func_583(gameplay::get_hash_key("torsoDecal"), iParam0);
			if (iParam1 == 11)
			{
				if (((((!func_585(iVar0, iParam2, 13) && !func_585(iVar0, iParam2, 14)) && !func_585(iVar0, iParam2, 15)) && !func_585(iVar0, iParam2, 16)) && !func_585(iVar0, iParam2, 71)) && !func_585(iVar0, iParam2, 72))
				{
					func_583(gameplay::get_hash_key("crewLogo"), iParam0);
				}
			}
			iVar2 = func_574(iVar0, iParam1, iParam2, iParam4);
			if (iVar2 != -1)
			{
				if (iParam3 == 1)
				{
					func_598(iParam0, iVar2);
				}
				else
				{
					func_599(iVar2, 1, Global_69340);
				}
			}
		}
	}
}

void func_598(int iParam0, int iParam1)//Position - 0x5778E
{
	int iVar0;
	struct<6> Var1;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (iParam1 != -1)
		{
			iVar0 = func_581(iParam0);
			if (!func_564(iParam1, -1))
			{
				if (func_400(&Var1, iParam1, iVar0, iParam0, -1))
				{
					ped::_set_ped_decoration(iParam0, Var1.f_4, Var1.f_5);
					func_560(iParam0, Var1.f_4, Var1.f_5);
				}
			}
		}
	}
}

void func_599(int iParam0, int iParam1, int iParam2)//Position - 0x577E5
{
	if (iParam1)
	{
		if (!func_564(iParam0, iParam2))
		{
			func_600(iParam0, 1, iParam2);
		}
	}
	else if (func_564(iParam0, iParam2))
	{
		func_600(iParam0, 0, iParam2);
	}
}

void func_600(int iParam0, int iParam1, int iParam2)//Position - 0x5781E
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_565(iParam0, iParam2);
	iVar1 = iParam0;
	if (iVar1 > -1)
	{
		if (iParam1)
		{
			gameplay::set_bit(&iVar0, func_50(iVar1));
		}
		else
		{
			gameplay::clear_bit(&iVar0, func_50(iVar1));
		}
		func_265(func_566(iParam0), iVar0, iParam2, 1);
	}
}

int func_601()//Position - 0x5786C
{
	int iVar0;
	
	iVar0 = Global_69340;
	if (func_564(13, iVar0))
	{
		return 13;
	}
	if (func_564(14, iVar0))
	{
		return 14;
	}
	if (func_564(15, iVar0))
	{
		return 15;
	}
	if (func_564(16, iVar0))
	{
		return 16;
	}
	if (func_564(71, iVar0))
	{
		return 71;
	}
	if (func_564(72, iVar0))
	{
		return 72;
	}
	return -1;
}

int func_602(int iParam0, int iParam1, int iParam2)//Position - 0x578DB
{
	int iVar0;
	int iVar1;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (iParam1 == 12)
		{
			iVar0 = 0;
			while (iVar0 <= 53)
			{
				if (func_535(iParam0, iParam1, iVar0))
				{
					return iVar0;
				}
				iVar0++;
			}
		}
		else if (iParam1 == 13)
		{
			iVar1 = 0;
			while (iVar1 <= 19)
			{
				if (func_535(iParam0, iParam1, iVar1))
				{
					return iVar1;
				}
				iVar1++;
			}
			return 31;
		}
		else if (iParam1 == 14)
		{
			if (iParam2 == -1)
			{
			}
			else
			{
				return func_497(iParam0, iParam2);
			}
		}
		else
		{
			return func_495(iParam0, iParam1);
		}
	}
	return -99;
}

void func_603(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x5797C
{
	int iVar0;
	
	if (iParam2 == -1)
	{
		ped::clear_ped_prop(iParam0, iParam1);
		if (iParam1 == 0)
		{
			ped::set_ped_config_flag(iParam0, 34, false);
			ped::set_ped_config_flag(iParam0, 36, false);
		}
	}
	else
	{
		ped::set_ped_prop_index(iParam0, iParam1, iParam2, iParam3, network::network_is_game_in_progress());
		if (iParam1 == 0)
		{
			iVar0 = func_498(iParam0, iParam2, iParam3, iParam1);
			if (func_604(entity::get_entity_model(iParam0), 14, iVar0))
			{
				ped::set_ped_config_flag(iParam0, 34, true);
				ped::set_ped_config_flag(iParam0, 36, true);
			}
		}
	}
}

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

void func_605(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x57AAE
{
	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_69340 != func_268() || iParam2 == -99)
		{
			return;
		}
		Global_69342[2 /*14*/] = { func_609(iParam0, iParam1, iParam2) };
		if (gameplay::is_bit_set(Global_69342[2 /*14*/].f_6, 1) && gameplay::is_bit_set(Global_69342[2 /*14*/].f_6, 6))
		{
			if (iParam1 == 12)
			{
				func_607(Global_2621444, 2, 1, 1, -1);
			}
			else if (iParam1 == 13)
			{
			}
			else if (iParam1 == 14)
			{
				func_607(Global_2621444, 2, 1, 1, -1);
			}
			else
			{
				func_607(Global_2621444, 2, 1, 1, -1);
			}
			if (iParam3)
			{
				iVar0 = dlc1::_0xC17AD0E5752BECDA(Global_2621444);
				iVar1 = 0;
				while (iVar1 < iVar0)
				{
					if (iVar1 < Global_2565468)
					{
						Global_2565468[iVar1] = -1;
						Global_2565579[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_607(iVar2, 2, 1, 1, -1);
							if (iVar1 < Global_2565468)
							{
								Global_2565468[iVar1] = iVar2;
								Global_2565579[iVar1] = iVar4;
							}
						}
						else
						{
							func_605(iParam0, func_491(iVar4), uVar3, 0);
						}
					}
					iVar1++;
				}
				Global_2565467++;
				if (Global_2565467 < 2)
				{
					iVar1 = 0;
					while (iVar1 < iVar0)
					{
						if (iVar1 < Global_2565468)
						{
							if (Global_2565468[iVar1] != -1)
							{
								if (iParam0 == joaat("mp_m_freemode_01"))
								{
									func_605(iParam0, func_491(Global_2565579[iVar1]), func_485(iParam0, Global_2565468[iVar1], func_491(Global_2565579[iVar1]), 3), 1);
								}
								else
								{
									func_605(iParam0, func_491(Global_2565579[iVar1]), func_485(iParam0, Global_2565468[iVar1], func_491(Global_2565579[iVar1]), 4), 1);
								}
							}
						}
						iVar1++;
					}
				}
				Global_2565467 = (Global_2565467 - 1);
			}
			return;
		}
		if (gameplay::is_bit_set(Global_69342[2 /*14*/].f_6, 1) && !gameplay::is_bit_set(Global_69342[2 /*14*/].f_6, 6))
		{
			if (func_419(iParam1, Global_69342[1 /*14*/].f_2, &iVar5))
			{
				iVar6 = func_300(iVar5, Global_69340, 0);
				gameplay::set_bit(&iVar6, Global_69342[2 /*14*/].f_1);
				func_265(iVar5, iVar6, Global_69340, 1);
			}
			if (iParam3 == 1)
			{
				if (iParam0 == joaat("mp_m_freemode_01"))
				{
					if (iParam1 == 14)
					{
						if (iParam2 >= 83 && iParam2 <= 90)
						{
							iVar7 = (75 + Global_69342[2 /*14*/].f_4);
							func_605(iParam0, 14, iVar7, 0);
						}
						else if (iParam2 >= 75 && iParam2 <= 82)
						{
							iVar7 = (83 + Global_69342[2 /*14*/].f_4);
							func_605(iParam0, 14, iVar7, 0);
						}
					}
					else if (iParam1 == 8)
					{
						if (iParam2 >= 48 && iParam2 <= 63)
						{
							iVar7 = (64 + Global_69342[2 /*14*/].f_4);
							func_605(iParam0, 8, iVar7, 0);
						}
						else if (iParam2 >= 64 && iParam2 <= 79)
						{
							iVar7 = (48 + Global_69342[2 /*14*/].f_4);
							func_605(iParam0, 8, iVar7, 0);
						}
						else if (iParam2 >= 96 && iParam2 <= 111)
						{
							iVar7 = (112 + Global_69342[2 /*14*/].f_4);
							func_605(iParam0, 8, iVar7, 0);
						}
						else if (iParam2 >= 112 && iParam2 <= 127)
						{
							iVar7 = (96 + Global_69342[2 /*14*/].f_4);
							func_605(iParam0, 8, iVar7, 0);
						}
						else if (iParam2 >= 176 && iParam2 <= 191)
						{
							iVar7 = (160 + Global_69342[2 /*14*/].f_4);
							func_605(iParam0, 8, iVar7, 0);
						}
						else if (iParam2 >= 160 && iParam2 <= 175)
						{
							iVar7 = (176 + Global_69342[2 /*14*/].f_4);
							func_605(iParam0, 8, iVar7, 0);
						}
						else if (iParam2 >= 32 && iParam2 <= 47)
						{
							iVar7 = (0 + Global_69342[2 /*14*/].f_4);
							func_605(iParam0, 11, iVar7, 0);
						}
						else if (iParam2 >= 224 && iParam2 <= 239)
						{
							iVar7 = (16 + Global_69342[2 /*14*/].f_4);
							func_605(iParam0, 11, iVar7, 0);
						}
					}
					else if (iParam1 == 11)
					{
						if (iParam2 >= 0 && iParam2 <= 15)
						{
							iVar7 = (32 + Global_69342[2 /*14*/].f_4);
							func_605(iParam0, 8, iVar7, 0);
						}
						else if (iParam2 >= 16 && iParam2 <= 31)
						{
							iVar7 = (224 + Global_69342[2 /*14*/].f_4);
							func_605(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_605(iParam0, 8, (241 + iVar30), 0);
										iVar29 = iVar31 + 1;
									}
									iVar30++;
								}
								iVar29++;
							}
						}
					}
					else if (iParam1 == 7)
					{
						if (iParam2 >= 41 && iParam2 <= 56)
						{
							switch (Global_69342[2 /*14*/].f_4)
							{
								case 0:
									func_605(iParam0, 7, func_485(iParam0, -1893758670, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, 221276858, 7, 3), 0);
									break;
								
								case 1:
									func_605(iParam0, 7, func_485(iParam0, -1596052305, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, 576886046, 7, 3), 0);
									break;
								
								case 2:
									func_605(iParam0, 7, func_485(iParam0, 1233059274, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, -392978047, 7, 3), 0);
									break;
								
								case 3:
									func_605(iParam0, 7, func_485(iParam0, 232228476, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, -33764269, 7, 3), 0);
									break;
								
								case 4:
									func_605(iParam0, 7, func_485(iParam0, -454445919, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, 1510704243, 7, 3), 0);
									break;
								
								case 5:
									func_605(iParam0, 7, func_485(iParam0, 925653285, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, 1800939276, 7, 3), 0);
									break;
								
								case 6:
									func_605(iParam0, 7, func_485(iParam0, -2104856604, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, 833565623, 7, 3), 0);
									break;
								
								case 7:
									func_605(iParam0, 7, func_485(iParam0, 1657483366, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, 1201823645, 7, 3), 0);
									break;
								
								case 8:
									func_605(iParam0, 7, func_485(iParam0, 501294735, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, 2132496022, 7, 3), 0);
									break;
								
								case 9:
									func_605(iParam0, 7, func_485(iParam0, 1882573627, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, -1939019463, 7, 3), 0);
									break;
								
								case 10:
									func_605(iParam0, 7, func_485(iParam0, 206035418, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, 1713491273, 7, 3), 0);
									break;
								
								case 11:
									func_605(iParam0, 7, func_485(iParam0, -642943834, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, -156668318, 7, 3), 0);
									break;
								
								case 12:
									func_605(iParam0, 7, func_485(iParam0, -388295935, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, 106696135, 7, 3), 0);
									break;
								
								case 13:
									func_605(iParam0, 7, func_485(iParam0, 927641567, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, -802905767, 7, 3), 0);
									break;
								
								case 14:
									func_605(iParam0, 7, func_485(iParam0, 1147226636, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, -505527092, 7, 3), 0);
									break;
								
								case 15:
									func_605(iParam0, 7, func_485(iParam0, 312665744, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, -1144129332, 7, 3), 0);
									break;
							}
						}
						else if (iParam2 >= 73 && iParam2 <= 88)
						{
							switch (Global_69342[2 /*14*/].f_4)
							{
								case 0:
									func_605(iParam0, 7, func_485(iParam0, -335266079, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, -925989020, 7, 3), 0);
									break;
								
								case 1:
									func_605(iParam0, 7, func_485(iParam0, -1379548555, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, 244486895, 7, 3), 0);
									break;
								
								case 2:
									func_605(iParam0, 7, func_485(iParam0, -1402159165, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, 1095104597, 7, 3), 0);
									break;
								
								case 3:
									func_605(iParam0, 7, func_485(iParam0, 1357351098, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, 1787874026, 7, 3), 0);
									break;
								
								case 4:
									func_605(iParam0, 7, func_485(iParam0, -1097178082, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, 476163725, 7, 3), 0);
									break;
								
								case 5:
									func_605(iParam0, 7, func_485(iParam0, -179482237, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, 1223952305, 7, 3), 0);
									break;
								
								case 6:
									func_605(iParam0, 7, func_485(iParam0, -750514831, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, 2049796643, 7, 3), 0);
									break;
								
								case 7:
									func_605(iParam0, 7, func_485(iParam0, -1724573356, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, -1013547784, 7, 3), 0);
									break;
								
								case 8:
									func_605(iParam0, 7, func_485(iParam0, 94106144, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, 1456972664, 7, 3), 0);
									break;
								
								case 9:
									func_605(iParam0, 7, func_485(iParam0, 1070524041, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, -1670762848, 7, 3), 0);
									break;
								
								case 10:
									func_605(iParam0, 7, func_485(iParam0, -1644577318, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, 1428867383, 7, 3), 0);
									break;
								
								case 11:
									func_605(iParam0, 7, func_485(iParam0, 1865900118, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, -1664165762, 7, 3), 0);
									break;
								
								case 12:
									func_605(iParam0, 7, func_485(iParam0, 1611776523, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, -1962101510, 7, 3), 0);
									break;
								
								case 13:
									func_605(iParam0, 7, func_485(iParam0, 1381115532, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, -1270511757, 7, 3), 0);
									break;
								
								case 14:
									func_605(iParam0, 7, func_485(iParam0, 1636484345, 7, 3), 0);
									func_605(iParam0, 7, func_485(iParam0, -1571626106, 7, 3), 0);
									break;
								
								case 15:
									func_605(iParam0, 7, func_485(iParam0, 1422633851, 7, 3), 0);
									func_605(iParam0, 7, func_485(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_69342[2 /*14*/].f_4);
							func_605(iParam0, 8, iVar7, 0);
						}
					}
				}
				Global_69342[2 /*14*/] = { func_609(iParam0, iParam1, iParam2) };
				if (iParam1 == 11)
				{
					iVar8 = func_606(iParam0, iParam2, Global_69342[2 /*14*/].f_4);
					if (iVar8 != -99)
					{
						func_605(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_605(iParam0, 8, (136 + iVar51), 0);
									iVar50 = iVar52 + 1;
								}
								iVar51++;
							}
							iVar50++;
						}
					}
				}
				else if (iParam1 == 8)
				{
					iVar8 = func_588(iParam0, iParam2, Global_69342[2 /*14*/].f_4);
					if (iVar8 != -99)
					{
						func_605(iParam0, 11, iVar8, 0);
					}
				}
			}
		}
	}
}

int func_606(int iParam0, int iParam1, int iParam2)//Position - 0x589C8
{
	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_504(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_485(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_504(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_485(iParam0, iVar10, 8, 4);
						}
						else
						{
							iVar0 = iVar11;
						}
						iVar9 = iVar8 + 1;
					}
					iVar9++;
				}
			}
		}
	}
	if (iVar0 != -99)
	{
		iVar0 = (iVar0 + iParam2);
	}
	return iVar0;
}

void func_607(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x58CBD
{
	int iVar0;
	int iVar1;
	var uVar2;
	int iVar3;
	
	iVar0 = Global_69340;
	if (iParam4 != -1)
	{
		iVar0 = iParam4;
	}
	if (func_423(iParam0, iParam1, &uVar2, &iVar1, iParam2, iParam3))
	{
		iVar3 = func_300(uVar2, iVar0, 0);
		gameplay::set_bit(&iVar3, iVar1);
		func_265(uVar2, iVar3, iVar0, 1);
	}
}

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

struct<14> func_609(int iParam0, int iParam1, int iParam2)//Position - 0x58D57
{
	func_480();
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		func_626(iParam1, iParam2);
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		func_610(iParam1, iParam2);
	}
	return Global_69342[0 /*14*/];
}

void func_610(int iParam0, int iParam1)//Position - 0x58D94
{
	switch (iParam0)
	{
		case 2:
			func_625(iParam1);
			break;
		
		case 11:
			func_624(iParam1);
			break;
		
		case 8:
			func_623(iParam1);
			break;
		
		case 9:
			func_622(iParam1);
			break;
		
		case 3:
			func_621(iParam1);
			break;
		
		case 4:
			func_620(iParam1);
			break;
		
		case 6:
			func_619(iParam1);
			break;
		
		case 1:
			func_618(iParam1);
			break;
		
		case 7:
			func_617(iParam1);
			break;
		
		case 10:
			func_616(iParam1);
			break;
		
		case 14:
			func_615(iParam1);
			break;
		
		case 12:
			func_614(iParam1);
			break;
		
		case 5:
			func_613(iParam1);
			break;
		
		case 0:
			func_612(iParam1);
			break;
		
		case 13:
			func_611(iParam1);
			break;
	}
}

void func_611(int iParam0)//Position - 0x58E84
{
	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_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &sVar2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_612(int iParam0)//Position - 0x5903F
{
	int iVar0;
	
	iVar0 = 0;
	Global_69342[0 /*14*/].f_5 = 4;
	func_425(iVar0, iParam0, 0);
}

void func_613(int iParam0)//Position - 0x5905D
{
	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_69342[0 /*14*/].f_5 = 4;
			func_425(iVar10, iParam0, 9);
			return;
			break;
	}
	StringCopy(&Var2, "HA_FMF_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_614(int iParam0)//Position - 0x59160
{
	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_69342[0 /*14*/].f_5 = 4;
			func_425(iVar10, iParam0, 28);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_615(int iParam0)//Position - 0x59458
{
	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_276698.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_276698.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_276698.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_276698.f_28));
		}
	}
	if (iParam0 >= 327)
	{
		Global_69342[0 /*14*/].f_5 = 4;
		func_425(iVar10, iParam0, 327);
		if (Global_69342[0 /*14*/].f_7 > 0)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, -1757550583, 1))
			{
				Global_69342[0 /*14*/].f_7 = system::round((system::to_float(Global_69342[0 /*14*/].f_7) * Global_276698.f_26));
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, 97230661, 1))
			{
				Global_69342[0 /*14*/].f_7 = system::round((system::to_float(Global_69342[0 /*14*/].f_7) * Global_276698.f_56));
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, 1147826474, 1))
			{
				Global_69342[0 /*14*/].f_7 = system::round((system::to_float(Global_69342[0 /*14*/].f_7) * Global_276698.f_28));
			}
		}
	}
	else
	{
		func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_616(int iParam0)//Position - 0x5C36A
{
	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_69342[0 /*14*/].f_5 = 4;
			func_425(iVar10, iParam0, 6);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_617(int iParam0)//Position - 0x5C473
{
	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_4136 != -1)
			{
				iVar1 = Global_262145.f_4136;
			}
			else
			{
				iVar1 = 310;
			}
			break;
		
		case 2:
			iVar6 = 1;
			iVar7 = 1;
			if (Global_262145.f_4137 != -1)
			{
				iVar1 = Global_262145.f_4137;
			}
			else
			{
				iVar1 = 125;
			}
			break;
		
		case 3:
			iVar6 = 1;
			iVar7 = 2;
			if (Global_262145.f_4138 != -1)
			{
				iVar1 = Global_262145.f_4138;
			}
			else
			{
				iVar1 = 145;
			}
			break;
		
		case 4:
			iVar6 = 1;
			iVar7 = 3;
			if (Global_262145.f_4139 != -1)
			{
				iVar1 = Global_262145.f_4139;
			}
			else
			{
				iVar1 = 130;
			}
			break;
		
		case 5:
			iVar6 = 1;
			iVar7 = 4;
			if (Global_262145.f_4140 != -1)
			{
				iVar1 = Global_262145.f_4140;
			}
			else
			{
				iVar1 = 265;
			}
			break;
		
		case 6:
			iVar6 = 1;
			iVar7 = 5;
			if (Global_262145.f_4141 != -1)
			{
				iVar1 = Global_262145.f_4141;
			}
			else
			{
				iVar1 = 280;
			}
			break;
		
		case 7:
			iVar6 = 2;
			iVar7 = 0;
			if (Global_262145.f_4142 != -1)
			{
				iVar1 = Global_262145.f_4142;
			}
			else
			{
				iVar1 = 295;
			}
			break;
		
		case 8:
			iVar6 = 2;
			iVar7 = 1;
			if (Global_262145.f_4143 != -1)
			{
				iVar1 = Global_262145.f_4143;
			}
			else
			{
				iVar1 = 95;
			}
			break;
		
		case 9:
			iVar6 = 2;
			iVar7 = 2;
			if (Global_262145.f_4144 != -1)
			{
				iVar1 = Global_262145.f_4144;
			}
			else
			{
				iVar1 = 85;
			}
			break;
		
		case 10:
			iVar6 = 2;
			iVar7 = 3;
			if (Global_262145.f_4145 != -1)
			{
				iVar1 = Global_262145.f_4145;
			}
			else
			{
				iVar1 = 95;
			}
			break;
		
		case 11:
			iVar6 = 2;
			iVar7 = 4;
			if (Global_262145.f_4146 != -1)
			{
				iVar1 = Global_262145.f_4146;
			}
			else
			{
				iVar1 = 105;
			}
			break;
		
		case 12:
			iVar6 = 2;
			iVar7 = 5;
			if (Global_262145.f_4147 != -1)
			{
				iVar1 = Global_262145.f_4147;
			}
			else
			{
				iVar1 = 95;
			}
			break;
		
		case 13:
			iVar6 = 3;
			iVar7 = 0;
			if (Global_262145.f_4148 != -1)
			{
				iVar1 = Global_262145.f_4148;
			}
			else
			{
				iVar1 = 35;
			}
			break;
		
		case 14:
			iVar6 = 3;
			iVar7 = 1;
			if (Global_262145.f_4149 != -1)
			{
				iVar1 = Global_262145.f_4149;
			}
			else
			{
				iVar1 = 35;
			}
			break;
		
		case 15:
			iVar6 = 3;
			iVar7 = 2;
			if (Global_262145.f_4150 != -1)
			{
				iVar1 = Global_262145.f_4150;
			}
			else
			{
				iVar1 = 30;
			}
			break;
		
		case 16:
			iVar6 = 3;
			iVar7 = 3;
			if (Global_262145.f_4151 != -1)
			{
				iVar1 = Global_262145.f_4151;
			}
			else
			{
				iVar1 = 40;
			}
			break;
		
		case 17:
			iVar6 = 3;
			iVar7 = 4;
			if (Global_262145.f_4152 != -1)
			{
				iVar1 = Global_262145.f_4152;
			}
			else
			{
				iVar1 = 35;
			}
			break;
		
		case 18:
			iVar6 = 3;
			iVar7 = 5;
			if (Global_262145.f_4153 != -1)
			{
				iVar1 = Global_262145.f_4153;
			}
			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_4154 != -1)
			{
				iVar1 = Global_262145.f_4154;
			}
			else
			{
				iVar1 = 355;
			}
			break;
		
		case 22:
			iVar6 = 4;
			iVar7 = 3;
			if (Global_262145.f_4155 != -1)
			{
				iVar1 = Global_262145.f_4155;
			}
			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_4156 != -1)
			{
				iVar1 = Global_262145.f_4156;
			}
			else
			{
				iVar1 = 110;
			}
			break;
		
		case 30:
			iVar6 = 5;
			iVar7 = 5;
			if (Global_262145.f_4157 != -1)
			{
				iVar1 = Global_262145.f_4157;
			}
			else
			{
				iVar1 = 160;
			}
			break;
		
		case 31:
			iVar6 = 6;
			iVar7 = 0;
			if (Global_262145.f_4158 != -1)
			{
				iVar1 = Global_262145.f_4158;
			}
			else
			{
				iVar1 = 385;
			}
			break;
		
		case 32:
			iVar6 = 6;
			iVar7 = 1;
			if (Global_262145.f_4159 != -1)
			{
				iVar1 = Global_262145.f_4159;
			}
			else
			{
				iVar1 = 190;
			}
			break;
		
		case 33:
			iVar6 = 6;
			iVar7 = 2;
			if (Global_262145.f_4160 != -1)
			{
				iVar1 = Global_262145.f_4160;
			}
			else
			{
				iVar1 = 235;
			}
			break;
		
		case 34:
			iVar6 = 6;
			iVar7 = 3;
			if (Global_262145.f_4161 != -1)
			{
				iVar1 = Global_262145.f_4161;
			}
			else
			{
				iVar1 = 220;
			}
			break;
		
		case 35:
			iVar6 = 6;
			iVar7 = 4;
			if (Global_262145.f_4162 != -1)
			{
				iVar1 = Global_262145.f_4162;
			}
			else
			{
				iVar1 = 250;
			}
			break;
		
		case 36:
			iVar6 = 6;
			iVar7 = 5;
			if (Global_262145.f_4163 != -1)
			{
				iVar1 = Global_262145.f_4163;
			}
			else
			{
				iVar1 = 205;
			}
			break;
		
		case 37:
			iVar6 = 7;
			iVar7 = 0;
			if (Global_262145.f_4164 != -1)
			{
				iVar1 = Global_262145.f_4164;
			}
			else
			{
				iVar1 = 445;
			}
			break;
		
		case 38:
			iVar6 = 7;
			iVar7 = 1;
			if (Global_262145.f_4165 != -1)
			{
				iVar1 = Global_262145.f_4165;
			}
			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_4166 != -1)
			{
				iVar1 = Global_262145.f_4166;
			}
			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_69342[0 /*14*/].f_5 = 4;
			func_425(iVar10, iParam0, 55);
			if (Global_69342[0 /*14*/].f_7 > 0)
			{
				Global_69342[0 /*14*/].f_7 = system::round((system::to_float(Global_69342[0 /*14*/].f_7) * Global_276698.f_58));
			}
			return;
			break;
	}
	iVar1 = system::round((system::to_float(iVar1) * Global_276698.f_58));
	StringCopy(&Var2, "T_FMF_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_618(int iParam0)//Position - 0x5CC4F
{
	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_69342[0 /*14*/].f_5 = 4;
			func_425(iVar10, iParam0, 26);
			if (Global_69342[0 /*14*/].f_7 > 0)
			{
				Global_69342[0 /*14*/].f_7 = system::round((system::to_float(Global_69342[0 /*14*/].f_7) * Global_276698.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_276698.f_29));
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_619(int iParam0)//Position - 0x5CF34
{
	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_276698.f_25));
	}
	if (iParam0 >= 256)
	{
		Global_69342[0 /*14*/].f_5 = 4;
		func_425(iVar10, iParam0, 256);
		if (Global_69342[0 /*14*/].f_7 > 0)
		{
			Global_69342[0 /*14*/].f_7 = system::round((system::to_float(Global_69342[0 /*14*/].f_7) * Global_276698.f_25));
		}
	}
	else
	{
		func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_620(int iParam0)//Position - 0x5E55B
{
	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_276698.f_23));
	}
	if (iParam0 >= 256)
	{
		Global_69342[0 /*14*/].f_5 = 4;
		func_425(iVar10, iParam0, 256);
		if (Global_69342[0 /*14*/].f_7 > 0)
		{
			Global_69342[0 /*14*/].f_7 = system::round((system::to_float(Global_69342[0 /*14*/].f_7) * Global_276698.f_23));
		}
	}
	else
	{
		func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_621(int iParam0)//Position - 0x5FBBA
{
	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_69342[0 /*14*/].f_5 = 4;
		func_425(iVar10, iParam0, 16);
		return;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &sVar2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_622(int iParam0)//Position - 0x5FD13
{
	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_69342[0 /*14*/].f_5 = 4;
		func_425(iVar10, iParam0, 36);
		return;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &sVar2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_623(int iParam0)//Position - 0x5FF91
{
	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_69342[0 /*14*/].f_5 = 4;
			func_425(iVar10, iParam0, 136);
			if (Global_69342[0 /*14*/].f_7 > 0)
			{
				Global_69342[0 /*14*/].f_7 = system::round((system::to_float(Global_69342[0 /*14*/].f_7) * Global_276698.f_24));
			}
			return;
			break;
	}
	if (iParam0 == 4 || iParam0 == 20)
	{
		if (func_578(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_578(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_578(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_276698.f_24));
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_624(int iParam0)//Position - 0x61429
{
	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_578(89, -1))
		{
			StringCopy(&Var2, "REW_RS", 16);
			iVar1 = system::round(((system::to_float(1250) * Global_262145.f_2975) * Global_276698.f_24));
		}
		else
		{
			iVar1 = system::round(((system::to_float(40) * Global_262145.f_1500[4]) * Global_276698.f_24));
		}
	}
	else if (iParam0 == 7)
	{
		if (func_578(88, -1))
		{
			StringCopy(&Var2, "REW_LSB", 16);
			iVar1 = system::round(((system::to_float(450) * Global_262145.f_2974) * Global_276698.f_24));
		}
		else
		{
			iVar1 = system::round(((system::to_float(45) * Global_262145.f_1500[7]) * Global_276698.f_24));
		}
	}
	else if (iParam0 == 9)
	{
		if (func_578(87, -1))
		{
			StringCopy(&Var2, "REW_REDSK", 16);
			iVar1 = system::round(((system::to_float(500) * Global_262145.f_2973) * Global_276698.f_24));
		}
		else
		{
			iVar1 = system::round(((system::to_float(40) * Global_262145.f_1500[9]) * Global_276698.f_24));
		}
	}
	else
	{
		iVar11 = iParam0;
		if (iVar11 >= 0 && iVar11 < 256)
		{
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_1500[iVar11]) * Global_276698.f_24));
		}
	}
	if (iParam0 >= 256)
	{
		Global_69342[0 /*14*/].f_5 = 4;
		func_425(iVar10, iParam0, 256);
		if (Global_69342[0 /*14*/].f_7 > 0)
		{
			Global_69342[0 /*14*/].f_7 = system::round((system::to_float(Global_69342[0 /*14*/].f_7) * Global_276698.f_24));
		}
	}
	else
	{
		func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_625(int iParam0)//Position - 0x62BBC
{
	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_69342[0 /*14*/].f_5 = 4;
			func_425(iVar10, iParam0, 92);
			return;
			break;
	}
	StringCopy(&Var2, "H_FMF_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_626(int iParam0, int iParam1)//Position - 0x63A8D
{
	switch (iParam0)
	{
		case 2:
			func_641(iParam1);
			break;
		
		case 11:
			func_640(iParam1);
			break;
		
		case 8:
			func_639(iParam1);
			break;
		
		case 9:
			func_638(iParam1);
			break;
		
		case 3:
			func_637(iParam1);
			break;
		
		case 4:
			func_636(iParam1);
			break;
		
		case 6:
			func_635(iParam1);
			break;
		
		case 1:
			func_634(iParam1);
			break;
		
		case 7:
			func_633(iParam1);
			break;
		
		case 10:
			func_632(iParam1);
			break;
		
		case 14:
			func_631(iParam1);
			break;
		
		case 12:
			func_630(iParam1);
			break;
		
		case 5:
			func_629(iParam1);
			break;
		
		case 0:
			func_628(iParam1);
			break;
		
		case 13:
			func_627(iParam1);
			break;
	}
}

void func_627(int iParam0)//Position - 0x63B7D
{
	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_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &sVar2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_628(int iParam0)//Position - 0x63D47
{
	int iVar0;
	
	iVar0 = 0;
	Global_69342[0 /*14*/].f_5 = 3;
	func_425(iVar0, iParam0, 0);
}

void func_629(int iParam0)//Position - 0x63D65
{
	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_69342[0 /*14*/].f_5 = 3;
			func_425(iVar10, iParam0, 9);
			return;
			break;
	}
	StringCopy(&Var2, "HA_FMM_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_630(int iParam0)//Position - 0x63E68
{
	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_69342[0 /*14*/].f_5 = 3;
			func_425(iVar10, iParam0, 26);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_631(int iParam0)//Position - 0x64131
{
	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_276698.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_276698.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_276698.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_276698.f_21));
		}
	}
	if (iParam0 >= 327)
	{
		Global_69342[0 /*14*/].f_5 = 3;
		func_425(iVar10, iParam0, 327);
		if (Global_69342[0 /*14*/].f_7 > 0)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, -1757550583, 1))
			{
				Global_69342[0 /*14*/].f_7 = system::round((system::to_float(Global_69342[0 /*14*/].f_7) * Global_276698.f_18));
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, 97230661, 1))
			{
				Global_69342[0 /*14*/].f_7 = system::round((system::to_float(Global_69342[0 /*14*/].f_7) * Global_276698.f_20));
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, 1147826474, 1))
			{
				Global_69342[0 /*14*/].f_7 = system::round((system::to_float(Global_69342[0 /*14*/].f_7) * Global_276698.f_21));
			}
		}
	}
	else
	{
		func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_632(int iParam0)//Position - 0x6702A
{
	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_69342[0 /*14*/].f_5 = 3;
			func_425(iVar10, iParam0, 7);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_633(int iParam0)//Position - 0x67150
{
	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_4167 != -1)
			{
				iVar1 = Global_262145.f_4167;
			}
			else
			{
				iVar1 = 115;
			}
			break;
		
		case 42:
			iVar6 = 10;
			iVar7 = 1;
			if (Global_262145.f_4168 != -1)
			{
				iVar1 = Global_262145.f_4168;
			}
			else
			{
				iVar1 = 125;
			}
			break;
		
		case 43:
			iVar6 = 10;
			iVar7 = 2;
			if (Global_262145.f_4169 != -1)
			{
				iVar1 = Global_262145.f_4169;
			}
			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_4173 != -1)
			{
				iVar1 = Global_262145.f_4173;
			}
			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_4170 != -1)
			{
				iVar1 = Global_262145.f_4170;
			}
			else
			{
				iVar1 = 65;
			}
			break;
		
		case 74:
			iVar6 = 12;
			iVar7 = 1;
			if (Global_262145.f_4171 != -1)
			{
				iVar1 = Global_262145.f_4171;
			}
			else
			{
				iVar1 = 65;
			}
			break;
		
		case 75:
			iVar6 = 12;
			iVar7 = 2;
			if (Global_262145.f_4172 != -1)
			{
				iVar1 = Global_262145.f_4172;
			}
			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_69342[0 /*14*/].f_5 = 3;
			func_425(iVar10, iParam0, 92);
			if (Global_69342[0 /*14*/].f_7 > 0)
			{
				Global_69342[0 /*14*/].f_7 = system::round((system::to_float(Global_69342[0 /*14*/].f_7) * Global_276698.f_57));
			}
			return;
			break;
	}
	iVar1 = system::round((system::to_float(iVar1) * Global_276698.f_57));
	StringCopy(&Var2, "T_FMM_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_634(int iParam0)//Position - 0x67A48
{
	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_69342[0 /*14*/].f_5 = 3;
			func_425(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_276698.f_22));
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_635(int iParam0)//Position - 0x67CFF
{
	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_276698.f_17));
	}
	StringCopy(&Var2, "F_FMM_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	if (iParam0 >= 256)
	{
		Global_69342[0 /*14*/].f_5 = 3;
		func_425(iVar10, iParam0, 256);
		if (Global_69342[0 /*14*/].f_7 > 0)
		{
			Global_69342[0 /*14*/].f_7 = system::round((system::to_float(Global_69342[0 /*14*/].f_7) * Global_276698.f_17));
		}
	}
	else
	{
		func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_636(int iParam0)//Position - 0x69386
{
	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_276698.f_15));
	}
	if (iParam0 >= 256)
	{
		Global_69342[0 /*14*/].f_5 = 3;
		func_425(iVar10, iParam0, 256);
		if (Global_69342[0 /*14*/].f_7 > 0)
		{
			Global_69342[0 /*14*/].f_7 = system::round((system::to_float(Global_69342[0 /*14*/].f_7) * Global_276698.f_15));
		}
	}
	else
	{
		func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_637(int iParam0)//Position - 0x6A9B9
{
	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_69342[0 /*14*/].f_5 = 3;
			func_425(iVar10, iParam0, 16);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &sVar2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_638(int iParam0)//Position - 0x6AB0E
{
	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_69342[0 /*14*/].f_5 = 3;
			func_425(iVar10, iParam0, 46);
			return;
			break;
	}
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &sVar2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_639(int iParam0)//Position - 0x6AE28
{
	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_4176 != -1)
			{
				iVar1 = Global_262145.f_4176;
			}
			else
			{
				iVar1 = 165;
			}
			break;
		
		case 49:
			StringCopy(&Var2, "SP_FMM_3_1", 16);
			iVar6 = 3;
			iVar7 = 1;
			if (Global_262145.f_4184 != -1)
			{
				iVar1 = Global_262145.f_4184;
			}
			else
			{
				iVar1 = 120;
			}
			break;
		
		case 50:
			StringCopy(&Var2, "SP_FMM_3_2", 16);
			iVar6 = 3;
			iVar7 = 2;
			if (Global_262145.f_4179 != -1)
			{
				iVar1 = Global_262145.f_4179;
			}
			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_4176 != -1)
			{
				iVar1 = Global_262145.f_4176;
			}
			else
			{
				iVar1 = 165;
			}
			break;
		
		case 65:
			StringCopy(&Var2, "SP_FMM_3_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			if (Global_262145.f_4184 != -1)
			{
				iVar1 = Global_262145.f_4184;
			}
			else
			{
				iVar1 = 120;
			}
			break;
		
		case 66:
			StringCopy(&Var2, "SP_FMM_3_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			if (Global_262145.f_4179 != -1)
			{
				iVar1 = Global_262145.f_4179;
			}
			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_4197 != -1)
			{
				iVar1 = Global_262145.f_4197;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 97:
			StringCopy(&Var2, "SP_FMM_6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			if (Global_262145.f_4195 != -1)
			{
				iVar1 = Global_262145.f_4195;
			}
			else
			{
				iVar1 = 415;
			}
			break;
		
		case 98:
			StringCopy(&Var2, "SP_FMM_6_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			if (Global_262145.f_4175 != -1)
			{
				iVar1 = Global_262145.f_4175;
			}
			else
			{
				iVar1 = 440;
			}
			break;
		
		case 99:
			StringCopy(&Var2, "SP_FMM_6_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			if (Global_262145.f_4189 != -1)
			{
				iVar1 = Global_262145.f_4189;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 100:
			StringCopy(&Var2, "SP_FMM_6_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			if (Global_262145.f_4174 != -1)
			{
				iVar1 = Global_262145.f_4174;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 101:
			StringCopy(&Var2, "SP_FMM_6_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			if (Global_262145.f_4191 != -1)
			{
				iVar1 = Global_262145.f_4191;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 102:
			StringCopy(&Var2, "SP_FMM_6_6", 16);
			iVar6 = 6;
			iVar7 = 6;
			if (Global_262145.f_4194 != -1)
			{
				iVar1 = Global_262145.f_4194;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 103:
			StringCopy(&Var2, "SP_FMM_6_7", 16);
			iVar6 = 6;
			iVar7 = 7;
			if (Global_262145.f_4190 != -1)
			{
				iVar1 = Global_262145.f_4190;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 104:
			StringCopy(&Var2, "SP_FMM_6_8", 16);
			iVar6 = 6;
			iVar7 = 8;
			if (Global_262145.f_4183 != -1)
			{
				iVar1 = Global_262145.f_4183;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 105:
			StringCopy(&Var2, "SP_FMM_6_9", 16);
			iVar6 = 6;
			iVar7 = 9;
			if (Global_262145.f_4188 != -1)
			{
				iVar1 = Global_262145.f_4188;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 106:
			StringCopy(&Var2, "SP_FMM_6_10", 16);
			iVar6 = 6;
			iVar7 = 10;
			if (Global_262145.f_4186 != -1)
			{
				iVar1 = Global_262145.f_4186;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 107:
			StringCopy(&Var2, "SP_FMM_6_11", 16);
			iVar6 = 6;
			iVar7 = 11;
			if (Global_262145.f_4196 != -1)
			{
				iVar1 = Global_262145.f_4196;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 108:
			StringCopy(&Var2, "SP_FMM_6_12", 16);
			iVar6 = 6;
			iVar7 = 12;
			if (Global_262145.f_4182 != -1)
			{
				iVar1 = Global_262145.f_4182;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 109:
			StringCopy(&Var2, "SP_FMM_6_13", 16);
			iVar6 = 6;
			iVar7 = 13;
			if (Global_262145.f_4177 != -1)
			{
				iVar1 = Global_262145.f_4177;
			}
			else
			{
				iVar1 = 750;
			}
			break;
		
		case 110:
			StringCopy(&Var2, "SP_FMM_6_14", 16);
			iVar6 = 6;
			iVar7 = 14;
			if (Global_262145.f_4192 != -1)
			{
				iVar1 = Global_262145.f_4192;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 111:
			StringCopy(&Var2, "SP_FMM_6_15", 16);
			iVar6 = 6;
			iVar7 = 15;
			if (Global_262145.f_4185 != -1)
			{
				iVar1 = Global_262145.f_4185;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 112:
			StringCopy(&Var2, "SP_FMM_6_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			if (Global_262145.f_4197 != -1)
			{
				iVar1 = Global_262145.f_4197;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 113:
			StringCopy(&Var2, "SP_FMM_6_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			if (Global_262145.f_4195 != -1)
			{
				iVar1 = Global_262145.f_4195;
			}
			else
			{
				iVar1 = 415;
			}
			break;
		
		case 114:
			StringCopy(&Var2, "SP_FMM_6_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			if (Global_262145.f_4175 != -1)
			{
				iVar1 = Global_262145.f_4175;
			}
			else
			{
				iVar1 = 440;
			}
			break;
		
		case 115:
			StringCopy(&Var2, "SP_FMM_6_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			if (Global_262145.f_4189 != -1)
			{
				iVar1 = Global_262145.f_4189;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 116:
			StringCopy(&Var2, "SP_FMM_6_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			if (Global_262145.f_4174 != -1)
			{
				iVar1 = Global_262145.f_4174;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 117:
			StringCopy(&Var2, "SP_FMM_6_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			if (Global_262145.f_4191 != -1)
			{
				iVar1 = Global_262145.f_4191;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 118:
			StringCopy(&Var2, "SP_FMM_6_6", 16);
			iVar6 = 7;
			iVar7 = 6;
			if (Global_262145.f_4194 != -1)
			{
				iVar1 = Global_262145.f_4194;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 119:
			StringCopy(&Var2, "SP_FMM_6_7", 16);
			iVar6 = 7;
			iVar7 = 7;
			if (Global_262145.f_4190 != -1)
			{
				iVar1 = Global_262145.f_4190;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 120:
			StringCopy(&Var2, "SP_FMM_6_8", 16);
			iVar6 = 7;
			iVar7 = 8;
			if (Global_262145.f_4183 != -1)
			{
				iVar1 = Global_262145.f_4183;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 121:
			StringCopy(&Var2, "SP_FMM_6_9", 16);
			iVar6 = 7;
			iVar7 = 9;
			if (Global_262145.f_4188 != -1)
			{
				iVar1 = Global_262145.f_4188;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 122:
			StringCopy(&Var2, "SP_FMM_6_10", 16);
			iVar6 = 7;
			iVar7 = 10;
			if (Global_262145.f_4186 != -1)
			{
				iVar1 = Global_262145.f_4186;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 123:
			StringCopy(&Var2, "SP_FMM_6_11", 16);
			iVar6 = 7;
			iVar7 = 11;
			if (Global_262145.f_4196 != -1)
			{
				iVar1 = Global_262145.f_4196;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 124:
			StringCopy(&Var2, "SP_FMM_6_12", 16);
			iVar6 = 7;
			iVar7 = 12;
			if (Global_262145.f_4182 != -1)
			{
				iVar1 = Global_262145.f_4182;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 125:
			StringCopy(&Var2, "SP_FMM_6_13", 16);
			iVar6 = 7;
			iVar7 = 13;
			if (Global_262145.f_4177 != -1)
			{
				iVar1 = Global_262145.f_4177;
			}
			else
			{
				iVar1 = 750;
			}
			break;
		
		case 126:
			StringCopy(&Var2, "SP_FMM_6_14", 16);
			iVar6 = 7;
			iVar7 = 14;
			if (Global_262145.f_4192 != -1)
			{
				iVar1 = Global_262145.f_4192;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 127:
			StringCopy(&Var2, "SP_FMM_6_15", 16);
			iVar6 = 7;
			iVar7 = 15;
			if (Global_262145.f_4185 != -1)
			{
				iVar1 = Global_262145.f_4185;
			}
			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_4197 != -1)
			{
				iVar1 = Global_262145.f_4197;
			}
			else
			{
				iVar1 = 405;
			}
			break;
		
		case 161:
			StringCopy(&Var2, "SP_FMM_10_1", 16);
			iVar6 = 10;
			iVar7 = 1;
			if (Global_262145.f_4195 != -1)
			{
				iVar1 = Global_262145.f_4195;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 162:
			StringCopy(&Var2, "SP_FMM_10_2", 16);
			iVar6 = 10;
			iVar7 = 2;
			if (Global_262145.f_4181 != -1)
			{
				iVar1 = Global_262145.f_4181;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 163:
			StringCopy(&Var2, "SP_FMM_10_3", 16);
			iVar6 = 10;
			iVar7 = 3;
			if (Global_262145.f_4189 != -1)
			{
				iVar1 = Global_262145.f_4189;
			}
			else
			{
				iVar1 = 385;
			}
			break;
		
		case 164:
			StringCopy(&Var2, "SP_FMM_10_4", 16);
			iVar6 = 10;
			iVar7 = 4;
			if (Global_262145.f_4174 != -1)
			{
				iVar1 = Global_262145.f_4174;
			}
			else
			{
				iVar1 = 385;
			}
			break;
		
		case 165:
			StringCopy(&Var2, "SP_FMM_10_5", 16);
			iVar6 = 10;
			iVar7 = 5;
			if (Global_262145.f_4191 != -1)
			{
				iVar1 = Global_262145.f_4191;
			}
			else
			{
				iVar1 = 395;
			}
			break;
		
		case 166:
			StringCopy(&Var2, "SP_FMM_10_6", 16);
			iVar6 = 10;
			iVar7 = 6;
			if (Global_262145.f_4180 != -1)
			{
				iVar1 = Global_262145.f_4180;
			}
			else
			{
				iVar1 = 500;
			}
			break;
		
		case 167:
			StringCopy(&Var2, "SP_FMM_10_7", 16);
			iVar6 = 10;
			iVar7 = 7;
			if (Global_262145.f_4194 != -1)
			{
				iVar1 = Global_262145.f_4194;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 168:
			StringCopy(&Var2, "SP_FMM_10_8", 16);
			iVar6 = 10;
			iVar7 = 8;
			if (Global_262145.f_4190 != -1)
			{
				iVar1 = Global_262145.f_4190;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 169:
			StringCopy(&Var2, "SP_FMM_10_9", 16);
			iVar6 = 10;
			iVar7 = 9;
			if (Global_262145.f_4183 != -1)
			{
				iVar1 = Global_262145.f_4183;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 170:
			StringCopy(&Var2, "SP_FMM_10_10", 16);
			iVar6 = 10;
			iVar7 = 10;
			if (Global_262145.f_4188 != -1)
			{
				iVar1 = Global_262145.f_4188;
			}
			else
			{
				iVar1 = 405;
			}
			break;
		
		case 171:
			StringCopy(&Var2, "SP_FMM_10_11", 16);
			iVar6 = 10;
			iVar7 = 11;
			if (Global_262145.f_4186 != -1)
			{
				iVar1 = Global_262145.f_4186;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 172:
			StringCopy(&Var2, "SP_FMM_10_12", 16);
			iVar6 = 10;
			iVar7 = 12;
			if (Global_262145.f_4178 != -1)
			{
				iVar1 = Global_262145.f_4178;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 173:
			StringCopy(&Var2, "SP_FMM_10_13", 16);
			iVar6 = 10;
			iVar7 = 13;
			if (Global_262145.f_4193 != -1)
			{
				iVar1 = Global_262145.f_4193;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 174:
			StringCopy(&Var2, "SP_FMM_10_14", 16);
			iVar6 = 10;
			iVar7 = 14;
			if (Global_262145.f_4196 != -1)
			{
				iVar1 = Global_262145.f_4196;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 175:
			StringCopy(&Var2, "SP_FMM_10_15", 16);
			iVar6 = 10;
			iVar7 = 15;
			if (Global_262145.f_4187 != -1)
			{
				iVar1 = Global_262145.f_4187;
			}
			else
			{
				iVar1 = 460;
			}
			break;
		
		case 176:
			StringCopy(&Var2, "SP_FMM_10_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			if (Global_262145.f_4197 != -1)
			{
				iVar1 = Global_262145.f_4197;
			}
			else
			{
				iVar1 = 405;
			}
			break;
		
		case 177:
			StringCopy(&Var2, "SP_FMM_10_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			if (Global_262145.f_4195 != -1)
			{
				iVar1 = Global_262145.f_4195;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 178:
			StringCopy(&Var2, "SP_FMM_10_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			if (Global_262145.f_4181 != -1)
			{
				iVar1 = Global_262145.f_4181;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 179:
			StringCopy(&Var2, "SP_FMM_10_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			if (Global_262145.f_4189 != -1)
			{
				iVar1 = Global_262145.f_4189;
			}
			else
			{
				iVar1 = 385;
			}
			break;
		
		case 180:
			StringCopy(&Var2, "SP_FMM_10_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			if (Global_262145.f_4174 != -1)
			{
				iVar1 = Global_262145.f_4174;
			}
			else
			{
				iVar1 = 385;
			}
			break;
		
		case 181:
			StringCopy(&Var2, "SP_FMM_10_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			if (Global_262145.f_4191 != -1)
			{
				iVar1 = Global_262145.f_4191;
			}
			else
			{
				iVar1 = 395;
			}
			break;
		
		case 182:
			StringCopy(&Var2, "SP_FMM_10_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			if (Global_262145.f_4180 != -1)
			{
				iVar1 = Global_262145.f_4180;
			}
			else
			{
				iVar1 = 500;
			}
			break;
		
		case 183:
			StringCopy(&Var2, "SP_FMM_10_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			if (Global_262145.f_4194 != -1)
			{
				iVar1 = Global_262145.f_4194;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 184:
			StringCopy(&Var2, "SP_FMM_10_8", 16);
			iVar6 = 11;
			iVar7 = 8;
			if (Global_262145.f_4190 != -1)
			{
				iVar1 = Global_262145.f_4190;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 185:
			StringCopy(&Var2, "SP_FMM_10_9", 16);
			iVar6 = 11;
			iVar7 = 9;
			if (Global_262145.f_4183 != -1)
			{
				iVar1 = Global_262145.f_4183;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 186:
			StringCopy(&Var2, "SP_FMM_10_10", 16);
			iVar6 = 11;
			iVar7 = 10;
			if (Global_262145.f_4188 != -1)
			{
				iVar1 = Global_262145.f_4188;
			}
			else
			{
				iVar1 = 405;
			}
			break;
		
		case 187:
			StringCopy(&Var2, "SP_FMM_10_11", 16);
			iVar6 = 11;
			iVar7 = 11;
			if (Global_262145.f_4186 != -1)
			{
				iVar1 = Global_262145.f_4186;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 188:
			StringCopy(&Var2, "SP_FMM_10_12", 16);
			iVar6 = 11;
			iVar7 = 12;
			if (Global_262145.f_4178 != -1)
			{
				iVar1 = Global_262145.f_4178;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 189:
			StringCopy(&Var2, "SP_FMM_10_13", 16);
			iVar6 = 11;
			iVar7 = 13;
			if (Global_262145.f_4193 != -1)
			{
				iVar1 = Global_262145.f_4193;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 190:
			StringCopy(&Var2, "SP_FMM_10_14", 16);
			iVar6 = 11;
			iVar7 = 14;
			if (Global_262145.f_4196 != -1)
			{
				iVar1 = Global_262145.f_4196;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 191:
			StringCopy(&Var2, "SP_FMM_10_15", 16);
			iVar6 = 11;
			iVar7 = 15;
			if (Global_262145.f_4187 != -1)
			{
				iVar1 = Global_262145.f_4187;
			}
			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_578(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_578(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_578(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_276698.f_16));
	if (iParam0 >= 241)
	{
		Global_69342[0 /*14*/].f_5 = 3;
		func_425(iVar10, iParam0, 241);
		if (Global_69342[0 /*14*/].f_7 > 0)
		{
			Global_69342[0 /*14*/].f_7 = system::round((system::to_float(Global_69342[0 /*14*/].f_7) * Global_276698.f_16));
		}
	}
	else
	{
		func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_640(int iParam0)//Position - 0x6D431
{
	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_578(89, -1))
		{
			StringCopy(&Var2, "REW_RS", 16);
			iVar1 = system::round(((system::to_float(1250) * Global_262145.f_2975) * Global_276698.f_16));
		}
		else
		{
			iVar1 = system::round(((system::to_float(45) * Global_262145.f_430[23]) * Global_276698.f_16));
		}
	}
	else if (iParam0 == 17)
	{
		if (func_578(88, -1))
		{
			StringCopy(&Var2, "REW_LSB", 16);
			iVar1 = system::round(((system::to_float(450) * Global_262145.f_2974) * Global_276698.f_16));
		}
		else
		{
			iVar1 = system::round(((system::to_float(60) * Global_262145.f_430[17]) * Global_276698.f_16));
		}
	}
	else if (iParam0 == 28)
	{
		if (func_578(87, -1))
		{
			StringCopy(&Var2, "REW_REDSK", 16);
			iVar1 = system::round(((system::to_float(500) * Global_262145.f_2973) * Global_276698.f_16));
		}
		else
		{
			iVar1 = system::round(((system::to_float(55) * Global_262145.f_430[28]) * Global_276698.f_16));
		}
	}
	else
	{
		iVar11 = iParam0;
		if (iVar11 >= 0 && iVar11 < 237)
		{
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_430[iVar11]) * Global_276698.f_16));
		}
	}
	if (iParam0 >= 237)
	{
		Global_69342[0 /*14*/].f_5 = 3;
		func_425(iVar10, iParam0, 237);
		if (Global_69342[0 /*14*/].f_7 > 0)
		{
			Global_69342[0 /*14*/].f_7 = system::round((system::to_float(Global_69342[0 /*14*/].f_7) * Global_276698.f_16));
		}
	}
	else
	{
		func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_641(int iParam0)//Position - 0x6E9EB
{
	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_69342[0 /*14*/].f_5 = 3;
			func_425(iVar10, iParam0, 91);
			return;
			break;
	}
	StringCopy(&Var2, "H_FMM_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	func_418(&(Global_69342[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

bool func_642(int iParam0, int iParam1, int iParam2)//Position - 0x6F8A5
{
	var uVar0;
	
	uVar0 = func_643(iParam1);
	if (Global_101186.f_1902.f_539[uVar0 /*65*/].f_63 != -99)
	{
		if (!func_501(iParam0, Global_101186.f_1902.f_539[uVar0 /*65*/].f_64, Global_101186.f_1902.f_539[uVar0 /*65*/].f_63))
		{
			*iParam2 = Global_101186.f_1902.f_539[uVar0 /*65*/].f_62;
			Global_101186.f_1902.f_539[uVar0 /*65*/].f_63 = -99;
			Global_101186.f_1902.f_539[uVar0 /*65*/].f_64 = 1;
			return true;
		}
	}
	return false;
}

int func_643(int iParam0)//Position - 0x6F931
{
	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_644(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12)//Position - 0x6F96C
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	var uVar11;
	var uVar28;
	var uVar38;
	struct<14> Var55;
	var uVar69;
	
	if (ped::is_ped_injured(iParam0) || iParam2 == -99)
	{
		return false;
	}
	Global_69341++;
	iVar5 = -99;
	iVar6 = -99;
	iVar7 = -99;
	iVar8 = -99;
	iVar9 = -99;
	iVar10 = entity::get_entity_model(iParam0);
	if (iParam5 == 0)
	{
		Global_69342[1 /*14*/] = { func_415(iVar10, iParam1, iParam2) };
		if (!func_608(iParam3))
		{
			Global_69341 = (Global_69341 - 1);
			return false;
		}
		func_657(iParam1);
	}
	if (iParam1 == 12)
	{
		if (iParam7 == 1)
		{
			if (iVar10 == joaat("player_one"))
			{
				iVar5 = func_495(iParam0, 8);
				if (iVar5 != 9)
				{
					iVar5 = -99;
				}
			}
			iVar6 = func_495(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_497(iParam0, 1);
			if (!func_506(iVar10, 14, iVar7))
			{
				iVar7 = -99;
			}
			iVar8 = func_497(iParam0, 0);
			if (!func_505(iVar10, 14, iVar8) && !func_503(iVar10, 14, iVar8))
			{
				iVar8 = -99;
			}
			if (iVar10 == joaat("player_one"))
			{
				iVar9 = func_497(iParam0, 2);
			}
		}
		ped::clear_all_ped_props(iParam0);
		uVar11 = 15;
		if (iParam5 == 1)
		{
			uVar11 = { Global_69385 };
		}
		else
		{
			uVar11 = { func_489(iVar10, iParam2) };
		}
		iVar0 = 0;
		while (iVar0 <= 14)
		{
			if (uVar11[iVar0] != -99)
			{
				Global_69342[1 /*14*/] = { func_415(iVar10, iVar0, uVar11[iVar0]) };
				if (gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 0))
				{
					if (iVar0 == 13)
					{
						uVar28 = 9;
						if (iParam5 == 1)
						{
							uVar28 = { Global_69402 };
						}
						else
						{
							uVar28 = { func_483(iVar10, uVar11[iVar0]) };
						}
						iVar1 = 0;
						while (iVar1 <= 8)
						{
							Global_69342[1 /*14*/] = { func_415(iVar10, 14, uVar28[iVar1]) };
							func_603(iParam0, Global_69342[1 /*14*/].f_12, Global_69342[1 /*14*/].f_3, Global_69342[1 /*14*/].f_4);
							func_657(14);
							if (Global_69341 == 1)
							{
								iVar2 = 0;
								while (iVar2 < 15)
								{
									iVar3 = func_649(iParam0, iVar10, 14, uVar28[iVar1], iVar2, 0);
									if (iVar3 != -99)
									{
										func_644(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
									}
									iVar2++;
								}
							}
							iVar1++;
						}
					}
					else if (iVar0 != 14 && iVar0 != 12)
					{
						if ((iVar10 == joaat("player_one") && iVar0 == 2) && uVar11[iVar0] == 20)
						{
							func_648(iVar10, 2, 20, &iVar4);
						}
						if (iParam4 == -1)
						{
							ped::set_ped_component_variation(iParam0, func_426(iVar0), Global_69342[1 /*14*/].f_3, Global_69342[1 /*14*/].f_4, ped::get_ped_palette_variation(iParam0, func_426(iVar0)));
						}
						else
						{
							ped::set_ped_component_variation(iParam0, func_426(iVar0), Global_69342[1 /*14*/].f_3, Global_69342[1 /*14*/].f_4, iParam4);
						}
						func_657(iVar0);
						if (Global_69341 == 1)
						{
							iVar2 = 0;
							while (iVar2 < 15)
							{
								iVar3 = func_649(iParam0, iVar10, iVar0, uVar11[iVar0], iVar2, 0);
								if (iVar3 != -99)
								{
									func_644(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
								}
								iVar2++;
							}
						}
					}
				}
			}
			else if (iVar0 != 12 && iVar0 != 14)
			{
				Global_69342[1 /*14*/] = { func_415(iVar10, iVar0, func_494(iParam0, iVar0, -1)) };
				if (gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 3))
				{
					if (iVar0 == 2)
					{
						if (iVar10 == joaat("player_one"))
						{
							if (func_658(iParam0, iVar10, &iVar4, 1))
							{
								func_644(iParam0, 2, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
							}
						}
					}
					else
					{
						uVar38 = { func_489(iVar10, 0) };
						func_644(iParam0, iVar0, uVar38[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
					}
				}
			}
			iVar0++;
		}
		if (iParam7 == 1)
		{
			Var55 = { func_415(iVar10, 8, iVar5) };
			if (iVar5 != -99)
			{
				if (func_502(iVar10, iParam2, 8, iVar5, &uVar11, &Var55))
				{
					func_644(iParam0, 8, iVar5, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0);
				}
			}
			Var55 = { func_415(iVar10, 9, iVar6) };
			if (iVar6 != -99)
			{
				if (func_502(iVar10, iParam2, 9, iVar6, &uVar11, &Var55))
				{
					func_644(iParam0, 9, iVar6, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0);
				}
			}
			Var55 = { func_415(iVar10, 14, iVar7) };
			if (iVar7 != -99)
			{
				if (func_502(iVar10, iParam2, 14, iVar7, &uVar11, &Var55))
				{
					func_644(iParam0, 14, iVar7, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0);
				}
			}
			Var55 = { func_415(iVar10, 14, iVar8) };
			if (iVar8 != -99)
			{
				if (func_502(iVar10, iParam2, 14, iVar8, &uVar11, &Var55))
				{
					func_644(iParam0, 14, iVar8, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0);
				}
			}
			Var55 = { func_415(iVar10, 14, iVar9) };
			if (iVar9 != -99)
			{
				if (func_502(iVar10, iParam2, 14, iVar9, &uVar11, &Var55))
				{
					func_644(iParam0, 14, iVar9, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0);
				}
			}
		}
	}
	else if (iParam1 == 13)
	{
		uVar69 = { func_483(iVar10, iParam2) };
		iVar1 = 0;
		while (iVar1 <= 8)
		{
			Global_69342[1 /*14*/] = { func_415(iVar10, 14, uVar69[iVar1]) };
			func_603(iParam0, Global_69342[1 /*14*/].f_12, Global_69342[1 /*14*/].f_3, Global_69342[1 /*14*/].f_4);
			func_657(14);
			if (Global_69341 == 1)
			{
				iVar2 = 0;
				while (iVar2 < 15)
				{
					iVar3 = func_649(iParam0, iVar10, 14, uVar69[iVar1], iVar2, 0);
					if (iVar3 != -99)
					{
						func_644(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
					}
					iVar2++;
				}
			}
			iVar1++;
		}
	}
	else if (iParam1 == 14)
	{
		func_603(iParam0, Global_69342[1 /*14*/].f_12, Global_69342[1 /*14*/].f_3, Global_69342[1 /*14*/].f_4);
		func_657(iParam1);
		if (Global_69341 == 1)
		{
			iVar2 = 0;
			while (iVar2 < 15)
			{
				iVar3 = func_649(iParam0, iVar10, iParam1, iParam2, iVar2, 0);
				if (iVar3 != -99)
				{
					func_644(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				}
				iVar2++;
			}
		}
	}
	else
	{
		if (iParam4 == -1)
		{
			ped::set_ped_component_variation(iParam0, func_426(iParam1), Global_69342[1 /*14*/].f_3, Global_69342[1 /*14*/].f_4, ped::get_ped_palette_variation(iParam0, func_426(iParam1)));
		}
		else
		{
			ped::set_ped_component_variation(iParam0, func_426(iParam1), Global_69342[1 /*14*/].f_3, Global_69342[1 /*14*/].f_4, iParam4);
		}
		if (Global_69341 == 1)
		{
			iVar2 = 0;
			while (iVar2 < 15)
			{
				iVar3 = func_649(iParam0, iVar10, iParam1, iParam2, iVar2, 0);
				if (iVar3 != -99)
				{
					func_644(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				}
				iVar2++;
			}
		}
		if (iParam6 == 0)
		{
			func_645(iVar10, iParam1, iParam2);
		}
	}
	if (Global_69341 == 1)
	{
		if (func_658(iParam0, iVar10, &iVar4, 0))
		{
			func_644(iParam0, 2, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
		}
		if (func_642(iParam0, iVar10, &iVar4))
		{
			func_644(iParam0, 1, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
		}
	}
	Global_69341 = (Global_69341 - 1);
	return true;
}

void func_645(int iParam0, int iParam1, int iParam2)//Position - 0x70168
{
	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_647(iParam0, 12, iVar0))
	{
		if (func_646(iParam0, iParam1, iParam2))
		{
			uVar1 = func_643(iParam0);
			if (iParam1 == 3)
			{
				Global_101186.f_1902.f_539.f_196[uVar1] = iParam2;
			}
			else if (iParam1 == 4)
			{
				Global_101186.f_1902.f_539.f_200[uVar1] = iParam2;
			}
		}
	}
}

bool func_646(int iParam0, int iParam1, int iParam2)//Position - 0x701F2
{
	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_647(int iParam0, int iParam1, int iParam2)//Position - 0x702D0
{
	Global_69342[1 /*14*/] = { func_415(iParam0, iParam1, iParam2) };
	return gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 2);
}

bool func_648(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x702FA
{
	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_643(iParam0);
		Global_101186.f_1902.f_539[uVar0 /*65*/].f_60 = iParam2;
		Global_101186.f_1902.f_539[uVar0 /*65*/].f_61 = iParam1;
		return true;
	}
	return false;
}

int func_649(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0x70601
{
	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_495(iParam0, 1);
				iVar0 = func_656(iParam1, iParam3, iVar1);
				break;
			
			case 1:
				iVar2 = func_495(iParam0, 2);
				iVar0 = func_656(iParam1, iVar2, iParam3);
				break;
		}
	}
	else if (iParam4 == 2)
	{
		func_648(iParam1, iParam2, iParam3, &iVar0);
	}
	else if (iParam4 == 1)
	{
		func_655(iParam1, iParam2, iParam3, &iVar0);
	}
	else if (iParam4 == 6)
	{
		if (iParam2 == 4)
		{
			if (func_654(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_653(iParam0, 3, 44, 59))
									{
										iVar0 = 44;
									}
								}
								else if (((iParam3 >= 8 && iParam3 <= 17) || (iParam3 >= 18 && iParam3 <= 27)) || (iParam3 >= 28 && iParam3 <= 43))
								{
									if (!func_653(iParam0, 3, 135, 150))
									{
										iVar0 = func_652(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_653(iParam0, 3, 209, 222))
									{
										iVar0 = func_652(iParam1, 3, 209, 222);
									}
								}
								else if ((iParam3 >= 1 && iParam3 <= 4) || (iParam3 >= 5 && iParam3 <= 8))
								{
									if (!func_653(iParam0, 3, 243, 258))
									{
										if (iParam3 == 1 || iParam3 == 5)
										{
											iVar0 = func_652(iParam1, 3, 243, 246);
										}
										else if (iParam3 == 2 || iParam3 == 6)
										{
											iVar0 = func_652(iParam1, 3, 247, 250);
										}
										else if (iParam3 == 3 || iParam3 == 7)
										{
											iVar0 = func_652(iParam1, 3, 251, 254);
										}
										else if (iParam3 == 4 || iParam3 == 8)
										{
											iVar0 = func_652(iParam1, 3, 255, 258);
										}
									}
								}
								else if (iParam3 == 41 || iParam3 == 42)
								{
									if (!func_653(iParam0, 3, 176, 191) && !func_653(iParam0, 3, 227, 242))
									{
										iVar0 = func_652(iParam1, 3, 176, 191);
									}
								}
								break;
						}
						break;
					
					case 8:
						if (iParam2 == 11 || iParam2 == 3)
						{
							if (iParam2 == 11)
							{
								iVar5 = iParam3;
								iVar4 = func_495(iParam0, 3);
							}
							else if (iParam2 == 3)
							{
								iVar4 = iParam3;
								iVar5 = func_495(iParam0, 11);
								iVar5 = func_651(iParam1, iVar4, iVar5, 0);
							}
							iVar3 = func_495(iParam0, 8);
							if (((iVar5 >= 5 && iVar5 <= 8) || (iVar5 >= 25 && iVar5 <= 40)) || (iVar5 >= 42 && iVar5 <= 43))
							{
								if (!func_650(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_495(iParam0, 8);
								iVar8 = func_495(iParam0, 11);
								if (((iVar7 >= 27 && iVar7 <= 42) || (iVar7 >= 43 && iVar7 <= 58)) || (iVar7 >= 59 && iVar7 <= 74))
								{
									iVar0 = func_651(iParam1, iParam3, iVar8, 0);
								}
								else
								{
									iVar0 = func_651(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_495(iParam0, 11);
								iVar0 = func_651(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_650(int iParam0, int iParam1, int iParam2, int iParam3, var uParam4)//Position - 0x711B4
{
	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_651(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x71498
{
	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_652(iParam0, 11, 9, 24);
			}
			else
			{
				iParam2 = func_652(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_652(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x7175F
{
	int iVar0;
	int iVar1;
	
	iVar0 = iParam2;
	while (iVar0 <= (iParam3 - 1))
	{
		iVar1 = iVar0;
		if (func_647(iParam0, iParam1, iVar1))
		{
			return iVar1;
		}
		iVar0++;
	}
	return -99;
}

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

bool func_654(int iParam0, int iParam1, int iParam2)//Position - 0x717BF
{
	*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_655(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x71A89
{
	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_643(iParam0);
		Global_101186.f_1902.f_539[uVar0 /*65*/].f_63 = iParam2;
		Global_101186.f_1902.f_539[uVar0 /*65*/].f_64 = iParam1;
		return true;
	}
	return false;
}

int func_656(int iParam0, int iParam1, int iParam2)//Position - 0x71D13
{
	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_657(int iParam0)//Position - 0x71E6A
{
	if (gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 1) && !gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 6))
	{
		func_414(iParam0, Global_69342[1 /*14*/].f_5, Global_69342[1 /*14*/].f_2, 2, Global_69342[1 /*14*/].f_1, 1, 0);
	}
	if (gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 1) && gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 6))
	{
		if (iParam0 == 12)
		{
			func_607(Global_2621444, 2, 1, 1, -1);
		}
		else if (iParam0 == 13)
		{
		}
		else if (iParam0 == 14)
		{
			func_607(Global_2621444, 2, 1, 1, -1);
		}
		else
		{
			func_607(Global_2621444, 2, 1, 1, -1);
		}
	}
}

bool func_658(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x71F22
{
	var uVar0;
	
	uVar0 = func_643(iParam1);
	if (Global_101186.f_1902.f_539[uVar0 /*65*/].f_60 != -99)
	{
		if (!func_501(iParam0, Global_101186.f_1902.f_539[uVar0 /*65*/].f_61, Global_101186.f_1902.f_539[uVar0 /*65*/].f_60) || iParam3 == 1)
		{
			*iParam2 = Global_101186.f_1902.f_539[uVar0 /*65*/].f_59;
			Global_101186.f_1902.f_539[uVar0 /*65*/].f_60 = -99;
			Global_101186.f_1902.f_539[uVar0 /*65*/].f_61 = 2;
			return true;
		}
	}
	return false;
}

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

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

void func_661()//Position - 0x72275
{
	if (func_25())
	{
		ped::set_enable_scuba(player::player_ped_id(), 1);
		ped::set_ped_max_time_underwater(player::player_ped_id(), 1E+08f);
		ped::set_ped_dies_in_water(player::player_ped_id(), 0);
		player::_0xD2B315B6689D537D(player::player_id(), 1);
	}
	else
	{
		ped::set_enable_scuba(player::player_ped_id(), 0);
		player::_0xD2B315B6689D537D(player::player_id(), 0);
		if (!player::get_player_invincible(player::player_id()))
		{
			ped::set_ped_max_time_underwater(player::player_ped_id(), -1f);
			ped::set_ped_dies_in_water(player::player_ped_id(), 1);
		}
	}
	switch (entity::get_entity_model(player::player_ped_id()))
	{
		case joaat("player_zero"):
			switch (ped::get_ped_drawable_variation(player::player_ped_id(), 3))
			{
				case 1:
				case 5:
					player::_0xD2B315B6689D537D(player::player_id(), 0);
					break;
			}
			break;
		
		case joaat("player_one"):
			switch (ped::get_ped_drawable_variation(player::player_ped_id(), 3))
			{
				case 10:
					player::_0xD2B315B6689D537D(player::player_id(), 0);
					break;
			}
			break;
		
		case joaat("player_two"):
			switch (ped::get_ped_drawable_variation(player::player_ped_id(), 3))
			{
				case 1:
				case 2:
					player::_0xD2B315B6689D537D(player::player_id(), 0);
					break;
			}
			break;
	}
}

bool func_662(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x72373
{
	struct<32> Var0;
	int iVar32;
	int iVar33;
	int iVar34;
	int iVar35;
	int iVar36;
	
	if ((func_386(iParam0) && func_391(iParam0)) || iParam2)
	{
		Var0.f_1 = 13;
		Var0.f_15 = 11;
		if (iParam3)
		{
			audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
		}
		Var0 = iParam0;
		Var0.f_28 = iParam1;
		if (!ped::is_ped_injured(player::player_ped_id()))
		{
			Var0.f_27 = entity::get_entity_model(player::player_ped_id());
			Var0.f_1[0] = ped::get_ped_drawable_variation(player::player_ped_id(), 0);
			Var0.f_1[1] = ped::get_ped_drawable_variation(player::player_ped_id(), 1);
			Var0.f_1[2] = ped::get_ped_drawable_variation(player::player_ped_id(), 2);
			Var0.f_1[3] = ped::get_ped_drawable_variation(player::player_ped_id(), 3);
			Var0.f_1[4] = ped::get_ped_drawable_variation(player::player_ped_id(), 4);
			Var0.f_1[5] = ped::get_ped_drawable_variation(player::player_ped_id(), 5);
			Var0.f_1[6] = ped::get_ped_drawable_variation(player::player_ped_id(), 6);
			Var0.f_1[7] = ped::get_ped_drawable_variation(player::player_ped_id(), 8);
			Var0.f_1[8] = ped::get_ped_drawable_variation(player::player_ped_id(), 9);
			Var0.f_1[9] = ped::get_ped_drawable_variation(player::player_ped_id(), 10);
			Var0.f_1[10] = ped::get_ped_drawable_variation(player::player_ped_id(), 11);
			Var0.f_1[11] = ped::get_ped_prop_index(player::player_ped_id(), 0);
			Var0.f_1[12] = ped::get_ped_prop_index(player::player_ped_id(), 1);
			Var0.f_15[0] = ped::get_ped_texture_variation(player::player_ped_id(), 0);
			Var0.f_15[1] = ped::get_ped_texture_variation(player::player_ped_id(), 1);
			Var0.f_15[2] = ped::get_ped_texture_variation(player::player_ped_id(), 2);
			Var0.f_15[3] = ped::get_ped_texture_variation(player::player_ped_id(), 3);
			Var0.f_15[4] = ped::get_ped_texture_variation(player::player_ped_id(), 4);
			Var0.f_15[5] = ped::get_ped_texture_variation(player::player_ped_id(), 5);
			Var0.f_15[6] = ped::get_ped_texture_variation(player::player_ped_id(), 6);
			Var0.f_15[7] = ped::get_ped_texture_variation(player::player_ped_id(), 8);
			Var0.f_15[8] = ped::get_ped_texture_variation(player::player_ped_id(), 9);
			Var0.f_15[9] = ped::get_ped_texture_variation(player::player_ped_id(), 10);
			Var0.f_15[10] = ped::get_ped_texture_variation(player::player_ped_id(), 11);
			Var0.f_29 = func_664(Var0.f_27);
			Var0.f_31 = unk_0x5E203DA2BA15D436(player::player_ped_id());
			iVar32 = func_385(iParam2);
			if (Var0 == 327 || Var0 == 328)
			{
				iVar32 = -1;
				if (iParam2)
				{
					iVar34 = 10;
					iVar35 = 19;
				}
				else
				{
					iVar34 = 0;
					iVar35 = 9;
				}
				iVar33 = iVar34;
				while (iVar33 <= iVar35)
				{
					if (Local_6878[iVar33 /*32*/] == Var0)
					{
						iVar32 = iVar33;
					}
					iVar33++;
				}
			}
			if (iVar32 == -1)
			{
				if (iParam2)
				{
					func_663(iParam2);
					Local_6878[10 /*32*/] = { Var0 };
				}
				else
				{
					iVar36 = func_110(iParam2);
					if (iVar36 == -1)
					{
						return false;
					}
					else
					{
						Local_6878[iVar36 /*32*/] = { Var0 };
					}
				}
			}
		}
	}
	return true;
}

void func_663(int iParam0)//Position - 0x72627
{
	int iVar0;
	
	if (iParam0)
	{
		iVar0 = 19;
		while (iVar0 >= 11)
		{
			Local_6878[iVar0 /*32*/] = { Local_6878[(iVar0 - 1) /*32*/] };
			iVar0 = (iVar0 + -1);
		}
	}
	else
	{
		iVar0 = 9;
		while (iVar0 >= 1)
		{
			Local_6878[iVar0 /*32*/] = { Local_6878[(iVar0 - 1) /*32*/] };
			iVar0 = (iVar0 + -1);
		}
	}
}

bool func_664(int iParam0)//Position - 0x7268A
{
	if (iParam0 == 0)
	{
		iParam0 = entity::get_entity_model(player::player_ped_id());
	}
	if ((iParam0 == joaat("hc_driver") && ped::get_ped_drawable_variation(player::player_ped_id(), 0) == 2) || (iParam0 == joaat("hc_hacker") && ped::get_ped_drawable_variation(player::player_ped_id(), 0) == 1))
	{
		return false;
	}
	switch (iParam0)
	{
		case joaat("a_f_y_runner_01"):
		case joaat("a_f_m_bevhills_02"):
		case joaat("a_f_m_business_02"):
		case joaat("a_f_y_hipster_04"):
		case joaat("a_f_m_bevhills_01"):
		case joaat("s_f_y_airhostess_01"):
		case joaat("a_f_y_hipster_02"):
		case joaat("s_f_y_shop_mid"):
		case joaat("u_f_y_spyactress"):
		case joaat("s_f_m_fembarber"):
		case joaat("a_f_y_business_03"):
		case joaat("a_f_y_business_01"):
		case joaat("s_f_m_shop_high"):
		case joaat("a_f_y_business_02"):
		case joaat("s_f_y_hooker_01"):
		case joaat("a_f_y_business_04"):
		case joaat("a_f_y_hipster_01"):
		case joaat("a_f_y_hipster_03"):
		case joaat("a_f_y_vinewood_01"):
		case joaat("a_f_y_vinewood_04"):
		case joaat("a_f_y_bevhills_01"):
		case joaat("a_f_y_bevhills_03"):
		case joaat("a_f_y_bevhills_02"):
		case joaat("a_f_y_bevhills_04"):
		case joaat("a_f_y_genhot_01"):
		case joaat("a_f_y_soucent_01"):
		case joaat("a_f_m_fatwhite_01"):
		case joaat("a_f_m_eastsa_02"):
		case joaat("a_f_y_eastsa_01"):
		case joaat("a_f_y_eastsa_02"):
		case joaat("a_f_y_indian_01"):
		case joaat("a_f_m_fatbla_01"):
		case joaat("a_f_y_soucent_02"):
		case joaat("a_f_m_skidrow_01"):
		case joaat("a_f_m_trampbeac_01"):
		case joaat("a_f_m_tramp_01"):
		case joaat("a_f_m_salton_01"):
		case joaat("a_f_y_tourist_02"):
		case joaat("a_f_y_beach_01"):
		case joaat("a_f_m_beach_01"):
		case joaat("a_f_m_bodybuild_01"):
		case joaat("a_f_y_yoga_01"):
		case joaat("a_f_y_skater_01"):
		case joaat("a_f_y_tennis_01"):
		case joaat("a_f_y_golfer_01"):
		case joaat("g_f_y_vagos_01"):
		case joaat("a_f_y_epsilon_01"):
		case joaat("a_f_y_eastsa_03"):
		case joaat("g_f_y_lost_01"):
		case joaat("a_f_m_fatcult_01"):
		case joaat("u_f_m_corpse_01"):
		case joaat("s_f_y_migrant_01"):
		case joaat("s_f_y_factory_01"):
		case joaat("s_f_m_maid_01"):
		case joaat("s_f_y_cop_01"):
		case joaat("s_f_y_ranger_01"):
		case joaat("s_f_y_baywatch_01"):
		case joaat("s_f_y_sheriff_01"):
		case joaat("ig_amandatownley"):
		case joaat("ig_maude"):
		case joaat("ig_mrs_thornhill"):
		case joaat("ig_patricia"):
		case joaat("ig_tanisha"):
		case joaat("ig_tracydisanto"):
		case joaat("u_f_y_comjane"):
		case joaat("u_f_o_moviestar"):
		case joaat("ig_orleans"):
		case joaat("mp_f_freemode_01"):
			return false;
			break;
	}
	return true;
}

void func_665()//Position - 0x72886
{
	ped::reset_ped_movement_clipset(player::player_ped_id(), 1048576000);
	switch (entity::get_entity_model(player::player_ped_id()))
	{
		case joaat("hc_gunman"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 9) == 1)
			{
				ped::set_ped_movement_clipset(player::player_ped_id(), "ANIM_GROUP_MOVE_BALLISTIC", 1048576000);
			}
			break;
	}
}

void func_666()//Position - 0x728D1
{
	int iVar0;
	int iVar1;
	
	iVar0 = entity::get_entity_model(player::player_ped_id());
	iVar1 = func_664(iVar0);
	if (iVar0 == joaat("hc_gunman"))
	{
		if (ped::get_ped_drawable_variation(player::player_ped_id(), 9) == 1)
		{
			weapon::set_weapon_animation_override(player::player_ped_id(), 1429513766);
		}
		else if (ped::get_ped_drawable_variation(player::player_ped_id(), 3) == 7 || ped::get_ped_drawable_variation(player::player_ped_id(), 3) == 2)
		{
			weapon::set_weapon_animation_override(player::player_ped_id(), 1429513766);
		}
	}
	else if (iVar0 == joaat("ig_jimmydisanto"))
	{
		weapon::set_weapon_animation_override(player::player_ped_id(), 1830115867);
	}
	else if (iVar1)
	{
		if (func_668(iVar0) || func_667(iVar0))
		{
			weapon::set_weapon_animation_override(player::player_ped_id(), 1429513766);
		}
	}
	else if (func_668(iVar0))
	{
		weapon::set_weapon_animation_override(player::player_ped_id(), -986602487);
	}
	else if (func_667(iVar0))
	{
		weapon::set_weapon_animation_override(player::player_ped_id(), 1386108800);
	}
}

bool func_667(int iParam0)//Position - 0x729B5
{
	switch (iParam0)
	{
		case joaat("a_f_m_eastsa_02"):
		case joaat("a_f_y_soucent_01"):
		case joaat("a_f_y_tourist_02"):
		case joaat("a_f_m_salton_01"):
		case joaat("a_f_m_tramp_01"):
		case joaat("g_m_m_mexboss_01"):
		case joaat("a_m_y_musclbeac_01"):
		case joaat("ig_maude"):
		case joaat("a_m_m_farmer_01"):
		case joaat("g_m_m_mexboss_02"):
		case joaat("a_f_m_fatbla_01"):
		case joaat("a_f_m_fatwhite_01"):
		case joaat("a_m_m_fatlatin_01"):
		case joaat("a_m_m_genfat_01"):
		case joaat("a_m_m_genfat_02"):
		case joaat("a_f_m_fatcult_01"):
			return true;
			break;
	}
	return false;
}

bool func_668(int iParam0)//Position - 0x72A2C
{
	switch (iParam0)
	{
		case joaat("s_m_y_fireman_01"):
		case joaat("s_m_m_snowcop_01"):
		case joaat("s_m_y_swat_01"):
		case joaat("a_m_m_hillbilly_01"):
		case joaat("g_m_y_mexgoon_02"):
		case joaat("g_m_y_mexgoon_03"):
		case joaat("g_m_y_mexgoon_01"):
		case joaat("s_m_y_construct_01"):
		case joaat("s_m_y_construct_02"):
		case joaat("s_m_m_dockwork_01"):
		case joaat("s_m_y_factory_01"):
		case joaat("s_m_y_garbage"):
		case joaat("s_m_m_gardener_01"):
		case joaat("g_m_y_salvagoon_02"):
		case joaat("s_m_m_migrant_01"):
		case joaat("s_m_y_chef_01"):
		case joaat("s_f_m_maid_01"):
		case joaat("s_m_y_valet_01"):
		case joaat("s_m_m_mariachi_01"):
		case joaat("a_m_y_musclbeac_02"):
		case joaat("ig_tracydisanto"):
		case joaat("s_m_y_blackops_02"):
		case joaat("s_m_y_marine_03"):
		case joaat("a_m_y_motox_01"):
		case joaat("ig_orleans"):
			return true;
			break;
	}
	return false;
}

void func_669()//Position - 0x72AD9
{
	int iVar0;
	
	iLocal_7921 = 0;
	iVar0 = 0;
	while (iVar0 < Local_7757)
	{
		if (audio::_0x49B99BF3FDA89A7A(player::player_ped_id(), &(Local_7757[iVar0 /*8*/]), 0) || gameplay::is_string_null_or_empty(&(Local_7757[iVar0 /*8*/])))
		{
			if (!func_670(Local_7757[iVar0 /*8*/]))
			{
				iLocal_7902[iLocal_7921] = iVar0;
				iLocal_7921++;
			}
		}
		iVar0++;
	}
	iLocal_7676[3] = 0;
}

bool func_670(var uParam0, var uParam1, var uParam2, var uParam3, var uParam4, var uParam5, var uParam6, var uParam7)//Position - 0x72B48
{
	switch (entity::get_entity_model(player::player_ped_id()))
	{
		case joaat("a_f_y_business_03"):
			if (gameplay::are_strings_equal(&uParam0, "GENERIC_INSULT_MED"))
			{
				return true;
			}
			break;
	}
	return false;
}

void func_671()//Position - 0x72B78
{
	if (iLocal_7599)
	{
		iLocal_7599 = 0;
		return;
	}
	if ((entity::get_entity_model(player::player_ped_id()) != joaat("player_zero") && entity::get_entity_model(player::player_ped_id()) != joaat("player_one")) && entity::get_entity_model(player::player_ped_id()) != joaat("player_two"))
	{
		if (entity::get_entity_model(player::player_ped_id()) != joaat("s_m_m_paramedic_01"))
		{
			audio::_0x40CF0D12D142A9E8(player::player_ped_id());
		}
	}
	switch (entity::get_entity_model(player::player_ped_id()))
	{
		case joaat("ig_tanisha"):
			audio::_0xA5342D390CDA41D6(player::player_ped_id(), 0);
			break;
		
		case joaat("hc_driver"):
		case joaat("hc_hacker"):
			if (!func_664(entity::get_entity_model(player::player_ped_id())))
			{
				audio::_0xA5342D390CDA41D6(player::player_ped_id(), 0);
				if (entity::get_entity_model(player::player_ped_id()) == joaat("hc_driver") && ped::get_ped_drawable_variation(player::player_ped_id(), 0) == 2)
				{
					audio::_0x7CDC8C3B89F661B3(player::player_ped_id(), gameplay::get_hash_key("TALINA_PVG"));
				}
				if (entity::get_entity_model(player::player_ped_id()) == joaat("hc_hacker") && ped::get_ped_drawable_variation(player::player_ped_id(), 0) == 1)
				{
					audio::_0x7CDC8C3B89F661B3(player::player_ped_id(), gameplay::get_hash_key("PAIGE_PVG"));
				}
			}
			break;
		
		case joaat("g_f_y_lost_01"):
			switch (ped::get_ped_drawable_variation(player::player_ped_id(), 0))
			{
				case 0:
					audio::_0x7CDC8C3B89F661B3(player::player_ped_id(), gameplay::get_hash_key("FEMALE_LOST_BLACK_PVG"));
					break;
				
				case 1:
					audio::_0x7CDC8C3B89F661B3(player::player_ped_id(), gameplay::get_hash_key("FEMALE_LOST_WHITE_PVG"));
					break;
			}
			break;
		
		case joaat("s_m_m_paramedic_01"):
			switch (ped::get_ped_drawable_variation(player::player_ped_id(), 0))
			{
				case 0:
					audio::_0x40CF0D12D142A9E8(player::player_ped_id());
					break;
				
				case 1:
					unk_0x1B7ABE26CBCBF8C7(player::player_ped_id(), 2, gameplay::get_hash_key("S_M_M_PARAMEDIC_01_BLACK_PVG"));
					break;
				
				case 2:
					unk_0x1B7ABE26CBCBF8C7(player::player_ped_id(), 1, gameplay::get_hash_key("S_M_M_PARAMEDIC_01_WHITE_PVG"));
					break;
			}
			break;
	}
}

void func_672(int iParam0)//Position - 0x72D30
{
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		if (Local_6878[iParam0 /*32*/] == 327)
		{
			func_674(player::player_ped_id(), 107, &(Local_7925[0 /*401*/]), 0);
		}
		else if (Local_6878[iParam0 /*32*/] == 328)
		{
			func_674(player::player_ped_id(), 108, &(Local_7925[1 /*401*/]), 0);
		}
		else
		{
			func_397(player::player_ped_id(), Local_6878[iParam0 /*32*/].f_1[0], Local_6878[iParam0 /*32*/].f_1[1], Local_6878[iParam0 /*32*/].f_1[2], Local_6878[iParam0 /*32*/].f_1[3], Local_6878[iParam0 /*32*/].f_1[4], Local_6878[iParam0 /*32*/].f_1[5], Local_6878[iParam0 /*32*/].f_1[6], Local_6878[iParam0 /*32*/].f_1[7], Local_6878[iParam0 /*32*/].f_1[8], Local_6878[iParam0 /*32*/].f_1[9], Local_6878[iParam0 /*32*/].f_1[10]);
			if (Local_6878[iParam0 /*32*/].f_1[11] != -1)
			{
				ped::set_ped_prop_index(player::player_ped_id(), 0, Local_6878[iParam0 /*32*/].f_1[11], 0, false);
			}
			else
			{
				ped::clear_ped_prop(player::player_ped_id(), 0);
			}
			if (Local_6878[iParam0 /*32*/].f_1[12] != -1)
			{
				ped::set_ped_prop_index(player::player_ped_id(), 1, Local_6878[iParam0 /*32*/].f_1[12], 0, false);
			}
			else
			{
				ped::clear_ped_prop(player::player_ped_id(), 1);
			}
			func_673(player::player_ped_id(), Local_6878[iParam0 /*32*/].f_15[0], Local_6878[iParam0 /*32*/].f_15[1], Local_6878[iParam0 /*32*/].f_15[2], Local_6878[iParam0 /*32*/].f_15[3], Local_6878[iParam0 /*32*/].f_15[4], Local_6878[iParam0 /*32*/].f_15[5], Local_6878[iParam0 /*32*/].f_15[6], Local_6878[iParam0 /*32*/].f_15[7], Local_6878[iParam0 /*32*/].f_15[8], Local_6878[iParam0 /*32*/].f_15[9], Local_6878[iParam0 /*32*/].f_15[10]);
			if (Local_6878[iParam0 /*32*/] < 273 || Local_6878[iParam0 /*32*/] > 300)
			{
				if (Local_6878[iParam0 /*32*/].f_31 != 0)
				{
					unk_0x9A53DED9921DE990(player::player_ped_id(), Local_6878[iParam0 /*32*/].f_31);
					iLocal_7599 = 1;
				}
				else
				{
					Local_6878[iParam0 /*32*/].f_31 = unk_0x5E203DA2BA15D436(player::player_ped_id());
				}
			}
		}
	}
}

void func_673(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 - 0x72F67
{
	if (!ped::is_ped_injured(iParam0))
	{
		ped::set_ped_component_variation(iParam0, 0, ped::get_ped_drawable_variation(iParam0, 0), iParam1, 0);
		ped::set_ped_component_variation(iParam0, 1, ped::get_ped_drawable_variation(iParam0, 1), iParam2, 0);
		ped::set_ped_component_variation(iParam0, 2, ped::get_ped_drawable_variation(iParam0, 2), iParam3, 0);
		ped::set_ped_component_variation(iParam0, 3, ped::get_ped_drawable_variation(iParam0, 3), iParam4, 0);
		ped::set_ped_component_variation(iParam0, 4, ped::get_ped_drawable_variation(iParam0, 4), iParam5, 0);
		ped::set_ped_component_variation(iParam0, 5, ped::get_ped_drawable_variation(iParam0, 5), iParam6, 0);
		ped::set_ped_component_variation(iParam0, 6, ped::get_ped_drawable_variation(iParam0, 6), iParam7, 0);
		ped::set_ped_component_variation(iParam0, 8, ped::get_ped_drawable_variation(iParam0, 8), iParam8, 0);
		ped::set_ped_component_variation(iParam0, 9, ped::get_ped_drawable_variation(iParam0, 9), iParam9, 0);
		ped::set_ped_component_variation(iParam0, 10, ped::get_ped_drawable_variation(iParam0, 10), iParam10, 0);
		ped::set_ped_component_variation(iParam0, 11, ped::get_ped_drawable_variation(iParam0, 11), iParam11, 0);
	}
}

bool func_674(int iParam0, int iParam1, var uParam2, int iParam3)//Position - 0x7303C
{
	int iVar0;
	int iVar1;
	struct<8> Var2;
	int iVar12;
	int iVar13;
	int iVar14;
	struct<9> Var15;
	int iVar28;
	int iVar29;
	int iVar30;
	int iVar31;
	
	iVar0 = true;
	if (iParam3)
	{
		if (!func_680(uParam2, iParam1, entity::get_entity_model(iParam0)))
		{
			iVar0 = false;
		}
	}
	if (iVar0)
	{
		ped::clear_all_ped_props(iParam0);
		iVar1 = 0;
		while (iVar1 < 12)
		{
			if ((*uParam2)[iVar1] != -1)
			{
				ped::set_ped_component_variation(iParam0, iVar1, (*uParam2)[iVar1], uParam2->f_13[iVar1], 0);
			}
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 < uParam2->f_26)
		{
			if (uParam2->f_26[iVar1] != -1 && uParam2->f_26[iVar1] != 255)
			{
				ped::set_ped_prop_index(iParam0, iVar1, uParam2->f_26[iVar1], uParam2->f_36[iVar1], true);
			}
			iVar1++;
		}
		if (iParam1 == 107 || iParam1 == 108)
		{
			if ((*uParam2)[iVar1] > 0 && dlc1::_0x341DE7ED1D2A1BFD(dlc1::get_hash_name_for_component(iParam0, 1, (*uParam2)[1], uParam2->f_13[1]), -921710083, 0))
			{
				ped::_get_ped_head_blend_data(iParam0, &Var2);
				if (entity::get_entity_model(iParam0) == joaat("mp_m_freemode_01"))
				{
					ped::set_ped_head_blend_data(iParam0, 0, 0, 0, Var2.f_3, Var2.f_4, Var2.f_5, 0f, Var2.f_7, 0f, 0);
				}
				else if (entity::get_entity_model(iParam0) == joaat("mp_f_freemode_01"))
				{
					ped::set_ped_head_blend_data(iParam0, 21, 0, 0, Var2.f_3, Var2.f_4, Var2.f_5, 0f, Var2.f_7, 0f, 0);
				}
				iVar12 = 0;
				while (iVar12 < 20)
				{
					ped::_set_ped_face_feature(iParam0, iVar12, 0f);
					iVar12++;
				}
			}
			else
			{
				ped::set_ped_head_blend_data(iParam0, uParam2->f_46, uParam2->f_48, 0, uParam2->f_46, uParam2->f_48, 0, uParam2->f_50, uParam2->f_51, 0f, 1);
				iVar13 = 0;
				while (iVar13 < 20)
				{
					ped::_set_ped_face_feature(iParam0, uParam2->f_52[iVar13], uParam2->f_73[iVar13]);
					iVar13++;
				}
			}
			Global_69342[1 /*14*/] = { func_609(entity::get_entity_model(iParam0), 2, uParam2->f_94) };
			ped::set_ped_component_variation(iParam0, 2, Global_69342[1 /*14*/].f_3, Global_69342[1 /*14*/].f_4, 0);
			ped::_set_ped_hair_color(iParam0, uParam2->f_95, uParam2->f_96);
			iVar14 = 0;
			while (iVar14 < 13)
			{
				if (uParam2->f_111[iVar14] != -1 && uParam2->f_125[iVar14] != -1f)
				{
					ped::set_ped_head_overlay(iParam0, uParam2->f_97[iVar14], uParam2->f_111[iVar14], uParam2->f_125[iVar14]);
					if (uParam2->f_153[iVar14] != -1)
					{
						ped::_set_ped_head_overlay_color(iParam0, uParam2->f_97[iVar14], uParam2->f_167[iVar14], uParam2->f_139[iVar14], uParam2->f_153[iVar14]);
					}
				}
				iVar14++;
			}
			ped::_set_ped_eye_color(iParam0, system::round(uParam2->f_181));
			iVar28 = func_581(iParam0);
			iVar29 = func_572(iParam0);
			iVar30 = func_679(iParam0);
			iVar31 = 0;
			while (iVar31 < 71)
			{
				if ((uParam2->f_254[iVar31] != -1 && uParam2->f_326[iVar31] != -1) && uParam2->f_182[iVar31] != -1)
				{
					if (func_400(&Var15, uParam2->f_182[iVar31], iVar28, iParam0, -1))
					{
						if (func_678(&Var15, Var15.f_4, Var15.f_8, iVar29, 1, 0, iVar30))
						{
							ped::_set_ped_decoration(iParam0, uParam2->f_254[iVar31], uParam2->f_326[iVar31]);
							func_560(iParam0, uParam2->f_254[iVar31], uParam2->f_326[iVar31]);
						}
					}
				}
				iVar31++;
			}
			func_675(&iParam0, uParam2->f_398, 0);
		}
		return true;
	}
	else
	{
		return false;
	}
	return false;
}

void func_675(int iParam0, int iParam1, int iParam2)//Position - 0x7338E
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	
	if (func_676() == 0)
	{
		return;
	}
	if (iParam1 == 0)
	{
		return;
	}
	if (entity::get_entity_model(*iParam0) == Global_138218.f_7)
	{
		iVar0 = 0;
	}
	else if (entity::get_entity_model(*iParam0) == Global_138218.f_8)
	{
		iVar0 = 0;
	}
	else
	{
		return;
	}
	switch (iParam1)
	{
		case 1:
		case 5:
		case 6:
		case 7:
			iVar1 = Global_1317072;
			iVar2 = Global_1317073;
			iVar3 = Global_1317074;
			break;
		
		case 8:
		case 2:
			iVar1 = 42;
			iVar2 = 42;
			iVar3 = 42;
			break;
		
		case 9:
		case 3:
			iVar1 = 255;
			iVar2 = 255;
			iVar3 = 255;
			break;
		
		case 10:
		case 4:
			iVar1 = 128;
			iVar2 = 128;
			iVar3 = 128;
			break;
	}
	switch (iParam1)
	{
		case 1:
		case 8:
		case 9:
		case 10:
			iVar4 = Global_1317072;
			iVar5 = Global_1317073;
			iVar6 = Global_1317074;
			break;
		
		case 5:
		case 2:
			iVar4 = 42;
			iVar5 = 42;
			iVar6 = 42;
			break;
		
		case 6:
		case 3:
			iVar4 = 255;
			iVar5 = 255;
			iVar6 = 255;
			break;
		
		case 7:
		case 4:
			iVar4 = 128;
			iVar5 = 128;
			iVar6 = 128;
			break;
	}
	switch (iParam1)
	{
		case 1:
			iVar7 = Global_1317072;
			iVar8 = Global_1317073;
			iVar9 = Global_1317074;
			break;
		
		case 5:
		case 2:
		case 8:
			iVar7 = 42;
			iVar8 = 42;
			iVar9 = 42;
			break;
		
		case 6:
		case 3:
		case 9:
			iVar7 = 255;
			iVar8 = 255;
			iVar9 = 255;
			break;
		
		case 7:
		case 4:
		case 10:
			iVar7 = 128;
			iVar8 = 128;
			iVar9 = 128;
			break;
	}
	if (!ped::is_ped_injured(*iParam0))
	{
		ped::_0xA21C118553BBDF02(*iParam0);
		if (iParam2)
		{
			func_512(*iParam0, 11, iVar0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
		}
		ped::_0xCC9682B8951C5229(*iParam0, iVar1, iVar2, iVar3, 0);
		ped::_0xCC9682B8951C5229(*iParam0, iVar7, iVar8, iVar9, 1);
		ped::_0xCC9682B8951C5229(*iParam0, iVar4, iVar5, iVar6, 2);
		ped::_0xCC9682B8951C5229(*iParam0, iVar7, iVar8, iVar9, 3);
	}
}

bool func_676()//Position - 0x735CD
{
	struct<13> Var0;
	
	if (player::is_player_online())
	{
		if ((network::network_is_signed_online() && network::network_is_signed_in()) && network::_0x67A5589628E0CFF6())
		{
			Var0 = { func_677() };
			if (network::_network_player_is_in_clan() && network::network_clan_player_is_active(&Var0))
			{
				return true;
			}
		}
	}
	return false;
}

struct<13> func_677()//Position - 0x73615
{
	struct<13> Var0;
	
	network::network_get_local_handle(&Var0, 13);
	return Var0;
}

bool func_678(char* sParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x7362A
{
	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;
			}
			break;
		
		case 1484379715:
		case 1206993109:
			if (iParam6)
			{
				return false;
			}
			break;
		
		case 1019352240:
			if (iParam4)
			{
				return false;
			}
			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;
						}
					}
			}
			break;
		
		case 277073536:
			if (iParam5)
			{
				return false;
			}
			break;
	}
	return true;
}

bool func_679(int iParam0)//Position - 0x73780
{
	int iVar0;
	int iVar1;
	
	if (!ped::is_ped_injured(iParam0))
	{
		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);
			if (iVar0 == 3)
			{
				if (iVar1 == 14)
				{
					return true;
				}
			}
		}
	}
	return false;
}

bool func_680(var uParam0, int iParam1, int iParam2)//Position - 0x737C6
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	struct<6> Var12;
	int iVar25;
	int iVar26;
	int iVar27;
	int iVar28;
	int iVar29;
	struct<4> Var30;
	int iVar45;
	int iVar46;
	
	iVar0 = 0;
	while (iVar0 < 12)
	{
		(*uParam0)[iVar0] = -1;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < uParam0->f_26)
	{
		uParam0->f_26[iVar0] = -1;
		iVar0++;
	}
	uParam0->f_46 = -1;
	uParam0->f_47 = -1;
	uParam0->f_48 = -1;
	uParam0->f_49 = -1;
	uParam0->f_50 = -1f;
	uParam0->f_51 = -1f;
	iVar0 = 0;
	while (iVar0 < 20)
	{
		uParam0->f_52[iVar0] = 0;
		uParam0->f_73[iVar0] = -1f;
		iVar0++;
	}
	uParam0->f_94 = -99;
	uParam0->f_95 = -1;
	uParam0->f_96 = -1;
	iVar0 = 0;
	while (iVar0 < 13)
	{
		uParam0->f_97[iVar0] = 0;
		uParam0->f_111[iVar0] = -1;
		uParam0->f_125[iVar0] = -1f;
		uParam0->f_139[iVar0] = -1;
		uParam0->f_153[iVar0] = -1;
		uParam0->f_167[iVar0] = 0;
		iVar0++;
	}
	uParam0->f_181 = -1f;
	iVar0 = 0;
	while (iVar0 < 71)
	{
		uParam0->f_182[iVar0] = -1;
		uParam0->f_254[iVar0] = -1;
		uParam0->f_326[iVar0] = -1;
		iVar0++;
	}
	uParam0->f_398 = 0;
	switch (iParam1)
	{
		case 0:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 1;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 1;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 1;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			break;
		
		case 1:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 4;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 1;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 1;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			break;
		
		case 2:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 4;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 5;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 5;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			break;
		
		case 4:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 1;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 1;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 7;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 2;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			break;
		
		case 7:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 1;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 4;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 5;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 5;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			uParam0->f_26[1] = 0;
			uParam0->f_36[1] = 0;
			break;
		
		case 8:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 1;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 3;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 3;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			break;
		
		case 6:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 4;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 5;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 5;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			uParam0->f_26[1] = 0;
			uParam0->f_36[1] = 0;
			break;
		
		case 5:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			break;
		
		case 9:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 1;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 1;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 1;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			break;
		
		case 3:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 2;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 3;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 7;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 2;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			uParam0->f_26[1] = 1;
			uParam0->f_36[1] = 0;
			break;
		
		case 10:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 5;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 1;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 1;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			break;
		
		case 11:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 1;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 6;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 6;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			uParam0->f_26[1] = 0;
			uParam0->f_36[1] = 0;
			break;
		
		case 12:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 1;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 1;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 1;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			break;
		
		case 13:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 1;
			uParam0->f_13[9] = 0;
			break;
		
		case 14:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 1;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 1;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[11] = 0;
			uParam0->f_13[11] = 0;
			break;
		
		case 15:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[11] = 0;
			uParam0->f_13[11] = 0;
			break;
		
		case 16:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			break;
		
		case 17:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			(*uParam0)[11] = 0;
			uParam0->f_13[11] = 0;
			break;
		
		case 18:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 2;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 3;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[11] = 0;
			uParam0->f_13[11] = 0;
			break;
		
		case 19:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 2;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 2;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 1;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 1;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 3;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[11] = 3;
			uParam0->f_13[11] = 0;
			break;
		
		case 20:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 2;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 1;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 2;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 2;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[11] = 3;
			uParam0->f_13[11] = 0;
			uParam0->f_26[1] = 2;
			uParam0->f_36[1] = 0;
			break;
		
		case 21:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 2;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 2;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			(*uParam0)[11] = 0;
			uParam0->f_13[11] = 0;
			break;
		
		case 22:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 1;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 1;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			(*uParam0)[11] = 0;
			uParam0->f_13[11] = 0;
			break;
		
		case 23:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 2;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			(*uParam0)[11] = 0;
			uParam0->f_13[11] = 0;
			break;
		
		case 24:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 5;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 4;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 3;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			(*uParam0)[11] = 0;
			uParam0->f_13[11] = 0;
			break;
		
		case 25:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			break;
		
		case 26:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 1;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			uParam0->f_26[1] = 0;
			uParam0->f_36[1] = 0;
			break;
		
		case 27:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 1;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[11] = 0;
			uParam0->f_13[11] = 0;
			break;
		
		case 28:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 1;
			uParam0->f_13[3] = 1;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 1;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[11] = 0;
			uParam0->f_13[11] = 0;
			break;
		
		case 29:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			break;
		
		case 30:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 1;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 1;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 1;
			uParam0->f_13[8] = 0;
			break;
		
		case 31:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 1;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 1;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 1;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 1;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			break;
		
		case 32:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			break;
		
		case 33:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 2;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 2;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 1;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 1;
			uParam0->f_13[8] = 0;
			break;
		
		case 34:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 1;
			uParam0->f_13[8] = 0;
			break;
		
		case 35:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 1;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 2;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 4;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 1;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 1;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 3;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 2;
			uParam0->f_13[10] = 0;
			break;
		
		case 36:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 1;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 3;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			break;
		
		case 37:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			break;
		
		case 38:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 3;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 6;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 2;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 2;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 3;
			uParam0->f_13[10] = 0;
			break;
		
		case 39:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 4;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 3;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 2;
			uParam0->f_13[10] = 0;
			break;
		
		case 40:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 3;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 6;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			break;
		
		case 41:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 1;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 5;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 3;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 4;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 2;
			uParam0->f_13[10] = 0;
			break;
		
		case 42:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 1;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 1;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 3;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			break;
		
		case 43:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 3;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			break;
		
		case 44:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 1;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 2;
			uParam0->f_13[2] = 2;
			(*uParam0)[3] = 4;
			uParam0->f_13[3] = 1;
			(*uParam0)[4] = 1;
			uParam0->f_13[4] = 1;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 4;
			uParam0->f_13[6] = 1;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 5;
			uParam0->f_13[10] = 0;
			break;
		
		case 45:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 2;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			break;
		
		case 46:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 1;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 2;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 2;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 3;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 1;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			break;
		
		case 47:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 1;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 2;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 2;
			uParam0->f_13[3] = 2;
			(*uParam0)[4] = 5;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 1;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			break;
		
		case 48:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 1;
			(*uParam0)[1] = 1;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 2;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 5;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 1;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			break;
		
		case 49:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 1;
			(*uParam0)[1] = 2;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 2;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 2;
			uParam0->f_13[3] = 1;
			(*uParam0)[4] = 4;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			break;
		
		case 50:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 2;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			break;
		
		case 51:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 1;
			(*uParam0)[1] = 2;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 4;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 2;
			uParam0->f_13[3] = 2;
			(*uParam0)[4] = 5;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 1;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			break;
		
		case 52:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			break;
		
		case 53:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 29;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 25;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 13;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 18;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			(*uParam0)[11] = 0;
			uParam0->f_13[11] = 0;
			break;
		
		case 54:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			uParam0->f_26[1] = 0;
			uParam0->f_36[1] = 0;
			break;
		
		case 55:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 1;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 1;
			uParam0->f_13[4] = 1;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 1;
			uParam0->f_13[8] = 0;
			uParam0->f_26[1] = 0;
			uParam0->f_36[1] = 0;
			break;
		
		case 56:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			break;
		
		case 57:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[11] = 0;
			uParam0->f_13[11] = 0;
			break;
		
		case 58:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[11] = 0;
			uParam0->f_13[11] = 0;
			uParam0->f_26[0] = 0;
			uParam0->f_36[0] = 0;
			uParam0->f_26[1] = 0;
			uParam0->f_36[1] = 0;
			break;
		
		case 59:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			break;
		
		case 60:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			break;
		
		case 61:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 1;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			break;
		
		case 62:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 1;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			break;
		
		case 63:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			break;
		
		case 64:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[11] = 0;
			uParam0->f_13[11] = 0;
			break;
		
		case 65:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			break;
		
		case 66:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 1;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			uParam0->f_26[1] = 0;
			uParam0->f_36[1] = 0;
			break;
		
		case 67:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 1;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 2;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 1;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 1;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 1;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			break;
		
		case 68:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 2;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 1;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 2;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 2;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			uParam0->f_26[1] = 2;
			uParam0->f_36[1] = 0;
			break;
		
		case 69:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[3] = 2;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 1;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 2;
			uParam0->f_13[8] = 0;
			uParam0->f_26[0] = 0;
			uParam0->f_36[0] = 0;
			break;
		
		case 70:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			break;
		
		case 71:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 2;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[11] = 1;
			uParam0->f_13[11] = 0;
			uParam0->f_26[1] = 0;
			uParam0->f_36[1] = 0;
			break;
		
		case 72:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 1;
			uParam0->f_13[9] = 0;
			(*uParam0)[11] = 0;
			uParam0->f_13[11] = 0;
			break;
		
		case 73:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 3;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 3;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 2;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			break;
		
		case 74:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			break;
		
		case 75:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 3;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 4;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 4;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 2;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 3;
			uParam0->f_13[8] = 0;
			uParam0->f_26[0] = 0;
			uParam0->f_36[0] = 0;
			break;
		
		case 76:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 1;
			(*uParam0)[2] = 2;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 2;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 2;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 2;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 1;
			uParam0->f_13[8] = 0;
			break;
		
		case 77:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 1;
			uParam0->f_13[3] = 1;
			(*uParam0)[4] = 5;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 2;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 1;
			uParam0->f_13[8] = 0;
			break;
		
		case 78:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 3;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 4;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 4;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 2;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			break;
		
		case 79:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 4;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 5;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 1;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			break;
		
		case 80:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			break;
		
		case 81:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 1;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 1;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 1;
			uParam0->f_13[8] = 0;
			break;
		
		case 82:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 1;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 1;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 1;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 1;
			uParam0->f_13[8] = 0;
			break;
		
		case 83:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 4;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 1;
			(*uParam0)[4] = 7;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 2;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			uParam0->f_26[1] = 1;
			uParam0->f_36[0] = 0;
			break;
		
		case 84:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 1;
			uParam0->f_13[3] = 1;
			(*uParam0)[4] = 5;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 2;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 1;
			uParam0->f_13[8] = 0;
			break;
		
		case 85:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			break;
		
		case 86:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 4;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 5;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 6;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 2;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			break;
		
		case 87:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[11] = 0;
			uParam0->f_13[11] = 0;
			uParam0->f_26[0] = 0;
			uParam0->f_36[0] = 0;
			uParam0->f_26[1] = 0;
			uParam0->f_36[1] = 0;
			break;
		
		case 88:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 4;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 3;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 2;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 1;
			uParam0->f_13[9] = 1;
			(*uParam0)[10] = 3;
			uParam0->f_13[10] = 0;
			(*uParam0)[11] = 0;
			uParam0->f_13[11] = 0;
			break;
		
		case 89:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 1;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 1;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 1;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 1;
			uParam0->f_13[5] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 1;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			(*uParam0)[10] = 1;
			uParam0->f_13[10] = 0;
			(*uParam0)[11] = 0;
			uParam0->f_13[11] = 0;
			break;
		
		case 90:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[7] = 0;
			uParam0->f_13[7] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			uParam0->f_26[1] = 0;
			uParam0->f_36[1] = 0;
			break;
		
		case 91:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			break;
		
		case 92:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			uParam0->f_26[1] = 0;
			uParam0->f_36[1] = 0;
			break;
		
		case 93:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			break;
		
		case 94:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			break;
		
		case 95:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[11] = 0;
			uParam0->f_13[11] = 0;
			uParam0->f_26[0] = 0;
			uParam0->f_36[0] = 0;
			uParam0->f_26[1] = 0;
			uParam0->f_36[1] = 0;
			break;
		
		case 96:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[9] = 0;
			uParam0->f_13[9] = 0;
			break;
		
		case 97:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 2;
			(*uParam0)[4] = 1;
			uParam0->f_13[4] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			uParam0->f_26[1] = 0;
			uParam0->f_36[1] = 0;
			break;
		
		case 98:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 1;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 1;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			uParam0->f_26[1] = 0;
			uParam0->f_36[1] = 0;
			break;
		
		case 99:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 2;
			(*uParam0)[4] = 2;
			uParam0->f_13[4] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			uParam0->f_26[1] = 0;
			uParam0->f_36[1] = 0;
			break;
		
		case 100:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			uParam0->f_26[1] = 0;
			uParam0->f_36[1] = 0;
			break;
		
		case 101:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			(*uParam0)[6] = 0;
			uParam0->f_13[6] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			break;
		
		case 102:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			break;
		
		case 103:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			(*uParam0)[10] = 0;
			uParam0->f_13[10] = 0;
			break;
		
		case 104:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			break;
		
		case 105:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[2] = 0;
			uParam0->f_13[2] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[8] = 0;
			uParam0->f_13[8] = 0;
			uParam0->f_26[1] = 0;
			uParam0->f_36[1] = 0;
			break;
		
		case 106:
			(*uParam0)[0] = 0;
			uParam0->f_13[0] = 0;
			(*uParam0)[3] = 0;
			uParam0->f_13[3] = 0;
			(*uParam0)[4] = 0;
			uParam0->f_13[4] = 0;
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			break;
		
		case 107:
		case 108:
			if (iParam1 == 107)
			{
				iVar1 = 0;
			}
			else if (iParam1 == 108)
			{
				iVar1 = 1;
			}
			(*uParam0)[0] = func_688(399, iVar1);
			uParam0->f_13[0] = func_688(387, iVar1);
			(*uParam0)[1] = func_688(400, iVar1);
			uParam0->f_13[1] = func_688(388, iVar1);
			(*uParam0)[3] = func_688(402, iVar1);
			uParam0->f_13[3] = func_688(390, iVar1);
			(*uParam0)[4] = func_688(403, iVar1);
			uParam0->f_13[4] = func_688(391, iVar1);
			(*uParam0)[5] = func_688(404, iVar1);
			uParam0->f_13[5] = func_688(392, iVar1);
			(*uParam0)[6] = func_688(405, iVar1);
			uParam0->f_13[6] = func_688(393, iVar1);
			(*uParam0)[7] = func_688(406, iVar1);
			uParam0->f_13[7] = func_688(394, iVar1);
			(*uParam0)[8] = func_688(407, iVar1);
			uParam0->f_13[8] = func_688(395, iVar1);
			(*uParam0)[9] = func_688(408, iVar1);
			uParam0->f_13[9] = func_688(396, iVar1);
			(*uParam0)[10] = func_688(409, iVar1);
			uParam0->f_13[10] = func_688(397, iVar1);
			(*uParam0)[11] = func_688(410, iVar1);
			uParam0->f_13[11] = func_688(398, iVar1);
			uParam0->f_26[0] = func_688(423, iVar1);
			uParam0->f_36[0] = func_688(432, iVar1);
			uParam0->f_26[1] = func_688(424, iVar1);
			uParam0->f_36[1] = func_688(433, iVar1);
			uParam0->f_26[2] = func_688(425, iVar1);
			uParam0->f_36[2] = func_688(434, iVar1);
			uParam0->f_26[3] = func_688(426, iVar1);
			uParam0->f_36[3] = func_688(435, iVar1);
			uParam0->f_26[4] = func_688(427, iVar1);
			uParam0->f_36[4] = func_688(436, iVar1);
			uParam0->f_26[5] = func_688(428, iVar1);
			uParam0->f_36[5] = func_688(437, iVar1);
			uParam0->f_26[6] = func_688(429, iVar1);
			uParam0->f_36[6] = func_688(438, iVar1);
			uParam0->f_26[7] = func_688(430, iVar1);
			uParam0->f_36[7] = func_688(439, iVar1);
			uParam0->f_26[8] = func_688(431, iVar1);
			uParam0->f_36[8] = func_688(440, iVar1);
			if (uParam0->f_26[3] == 0)
			{
				uParam0->f_26[3] = -1;
			}
			if (uParam0->f_26[4] == 0)
			{
				uParam0->f_26[4] = -1;
			}
			if (uParam0->f_26[5] == 0)
			{
				uParam0->f_26[5] = -1;
			}
			if (uParam0->f_26[7] == 0)
			{
				uParam0->f_26[7] = -1;
			}
			if (uParam0->f_26[8] == 0)
			{
				uParam0->f_26[8] = -1;
			}
			uParam0->f_46 = func_688(1396, iVar1);
			uParam0->f_47 = func_688(1397, iVar1);
			uParam0->f_48 = func_688(1400, iVar1);
			uParam0->f_49 = func_688(1401, iVar1);
			uParam0->f_50 = func_687(94, iVar1);
			uParam0->f_51 = func_687(95, iVar1);
			if (uParam0->f_47 == 1)
			{
				iVar2 = ped::_get_first_parent_id_for_ped_type(3);
			}
			else
			{
				iVar2 = ped::_get_first_parent_id_for_ped_type(1);
			}
			uParam0->f_46 = (uParam0->f_46 + iVar2);
			if (uParam0->f_49 == 1)
			{
				iVar2 = ped::_get_first_parent_id_for_ped_type(2);
			}
			else
			{
				iVar2 = ped::_get_first_parent_id_for_ped_type(0);
			}
			uParam0->f_48 = (uParam0->f_48 + iVar2);
			iVar3 = (((ped::_get_num_parent_peds_of_type(1) + ped::_get_num_parent_peds_of_type(0)) + ped::_get_num_parent_peds_of_type(3)) + ped::_get_num_parent_peds_of_type(2));
			if (uParam0->f_46 >= iVar3)
			{
				uParam0->f_46 = ped::_get_first_parent_id_for_ped_type(1);
			}
			if (uParam0->f_48 >= iVar3)
			{
				uParam0->f_48 = ped::_get_first_parent_id_for_ped_type(0);
			}
			uParam0->f_94 = func_688(385, iVar1);
			uParam0->f_95 = func_686(2143, iVar1);
			uParam0->f_96 = func_686(2150, iVar1);
			iVar5 = 0;
			while (iVar5 < 20)
			{
				uParam0->f_52[iVar5] = iVar5;
				iVar4 = func_553(uParam0->f_52[iVar5]);
				uParam0->f_73[iVar5] = func_687(iVar4, iVar1);
				iVar5++;
			}
			iVar11 = 0;
			while (iVar11 < 13)
			{
				uParam0->f_97[iVar11] = func_551(iVar11);
				iVar6 = func_550(uParam0->f_97[iVar11]);
				iVar7 = func_549(uParam0->f_97[iVar11]);
				if (iVar6 != -1 && iVar7 != -1)
				{
					uParam0->f_111[iVar11] = func_688(iVar6, iVar1);
					uParam0->f_125[iVar11] = func_687(iVar7, iVar1);
					iVar8 = func_544(uParam0->f_97[iVar11]);
					iVar9 = func_543(uParam0->f_97[iVar11]);
					if (iVar8 != -1)
					{
						iVar10 = func_686(iVar8, iVar1);
						uParam0->f_153[iVar11] = func_686(iVar9, iVar1);
						func_541(iVar10, &(uParam0->f_139[iVar11]), &(uParam0->f_167[iVar11]));
					}
				}
				iVar11++;
			}
			uParam0->f_181 = func_687(157, iVar1);
			if (iParam2 == joaat("mp_m_freemode_01"))
			{
				iVar25 = 3;
			}
			else
			{
				iVar25 = 4;
			}
			iVar26 = 0;
			iVar27 = 0;
			while (iVar27 < 127)
			{
				if (iVar26 < 71)
				{
					if (func_683(iVar27, iVar1))
					{
						if (func_681(&Var12, iVar27, iVar25, iParam2, -1))
						{
							uParam0->f_182[iVar26] = iVar27;
							uParam0->f_254[iVar26] = Var12.f_4;
							uParam0->f_326[iVar26] = Var12.f_5;
							iVar26++;
						}
					}
				}
				iVar27++;
			}
			iVar29 = dlc1::_0x278F76C3B0A8F109(iVar25);
			iVar28 = 0;
			while (iVar28 < iVar29)
			{
				if (iVar26 < 71)
				{
					if (dlc1::_0xFF56381874F82086(iVar25, iVar28, &Var30))
					{
						if (!dlc1::_is_dlc_data_empty(Var30))
						{
							iVar45 = (129 + iVar28);
							if (func_683(iVar45, iVar1))
							{
								uParam0->f_182[iVar26] = iVar45;
								uParam0->f_254[iVar26] = Var30.f_2;
								uParam0->f_326[iVar26] = Var30.f_3;
								iVar26++;
							}
						}
					}
				}
				iVar28++;
			}
			uParam0->f_398 = func_688(1406, iVar1);
			break;
	}
	iVar46 = false;
	iVar0 = 0;
	while (iVar0 < 12)
	{
		if ((*uParam0)[iVar0] != -1)
		{
			iVar46 = true;
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < uParam0->f_26)
	{
		if (uParam0->f_26[iVar0] != -1 && uParam0->f_26[iVar0] != 255)
		{
			iVar46 = true;
		}
		iVar0++;
	}
	if (iVar46)
	{
		return true;
	}
	return false;
}

int func_681(char* sParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x77908
{
	func_682(sParam0, -1, 0, "", "", "", "", iParam2, -1, 0);
	switch (iParam2)
	{
		case 3:
		case 4:
			switch (iParam1)
			{
				case 0:
					func_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(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_682(sParam0, iParam1, iParam3, "TAT_FM_247", "multiplayer_overlays", "047", "", iParam2, system::round((system::to_float(2500) * Global_262145.f_2972)), 2);
					break;
			}
			if (iParam3 == joaat("mp_m_freemode_01"))
			{
				switch (iParam1)
				{
					case 73:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_001", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 74:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_002", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 75:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_003", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 76:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_004", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 77:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_005", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 78:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_006", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 79:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_009", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 80:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_013", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 81:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_014", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 82:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_015", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 83:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_016", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 84:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_019", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 85:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_020", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 86:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_036", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 90:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_017", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 91:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_018", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 124:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_046", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 125:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_045", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 87:
						func_682(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_682(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_682(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_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 94:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_002", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 95:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_003", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 96:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_004", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 97:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_005", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 98:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_006", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 99:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_007", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 100:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_008", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 101:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_009", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 102:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_010", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 103:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_011", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 104:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_012", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 105:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_013", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 106:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_014", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 107:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_015", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 108:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_M_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 109:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_M_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 110:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_M_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 111:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_M_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 112:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_M_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 113:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_M_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 114:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGInd_M_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 115:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 116:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 117:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 123:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "mpBeach_overlays", "FM_Hair_Fuzz", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 13:
						func_682(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_682(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_682(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_682(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_682(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_682(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 (iParam3 == joaat("mp_f_freemode_01"))
			{
				switch (iParam1)
				{
					case 73:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_027_f", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 74:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_028_f", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 75:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_034_f", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 76:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_036_f", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 77:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_048", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 78:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_052", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 79:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_053", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 80:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_054", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 81:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_055", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 82:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_056", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 83:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_058", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 84:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_067", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 85:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_068", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 92:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_051", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 87:
						func_682(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_682(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_682(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_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 94:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_002", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 95:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_003", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 96:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_004", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 97:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_005", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 98:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_006", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 99:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_007", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 100:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_008", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 101:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_009", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 102:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_010", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 103:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_011", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 104:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_012", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 105:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_013", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 106:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_014", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 107:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_015", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 108:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_F_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 109:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_F_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 110:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_F_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 111:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_F_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 112:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_F_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 113:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_F_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 114:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGInd_F_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 115:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 116:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 117:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 118:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 119:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 120:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 121:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 122:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 123:
						func_682(sParam0, iParam1, iParam3, "NO_LABEL", "mpBeach_overlays", "FM_Hair_Fuzz", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 13:
						func_682(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_682(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_682(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_682(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_401(sParam0, iParam2, iParam1, 129);
	}
	if (iParam4 == 22)
	{
		sParam0->f_7 *= 2;
	}
	return sParam0->f_11 != -1;
}

void func_682(char* sParam0, int iParam1, int iParam2, char* sParam3, char* sParam4, char* sParam5, char* sParam6, int iParam7, int iParam8, int iParam9)//Position - 0x79A6B
{
	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 ((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 (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 (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_683(int iParam0, int iParam1)//Position - 0x79D0D
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_684(iParam0, iParam1);
	iVar1 = iParam0;
	return gameplay::is_bit_set(iVar0, func_50(iVar1));
}

var func_684(var uParam0, int iParam1)//Position - 0x79D2F
{
	var uVar0;
	
	uVar0 = func_686(func_685(uParam0), iParam1);
	return uVar0;
}

int func_685(var uParam0)//Position - 0x79D47
{
	int iVar0;
	int iVar1;
	
	iVar0 = uParam0;
	iVar1 = func_54(iVar0);
	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;
		
		case 20:
			return 3350;
			break;
		
		case 21:
			return 3353;
			break;
	}
	return 2401;
}

int func_686(int iParam0, int iParam1)//Position - 0x79EAF
{
	var uVar0;
	var uVar1;
	
	uVar0 = Global_2473854[iParam0 /*5*/][func_267(iParam1)];
	if (ui::_0xCA6B2F7CE32AB653(uVar0, &uVar1, 0))
	{
		return uVar1;
	}
	return 0;
}

float func_687(int iParam0, int iParam1)//Position - 0x79EDB
{
	var uVar0;
	var uVar1;
	
	uVar0 = Global_2493735[iParam0 /*5*/][func_267(iParam1)];
	if (ui::_0x8F08017F9D7C47BD(uVar0, &uVar1, 0))
	{
		return uVar1;
	}
	return 0f;
}

int func_688(int iParam0, int iParam1)//Position - 0x79F07
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = 0;
	if (iParam1 == -1)
	{
		iParam1 = func_268();
	}
	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, "_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, "_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, "_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::_0x24A49BEAF468DC90(iVar1, &iVar0, iVar2, 8, 0))
	{
		iVar0 = 0;
	}
	if (iParam0 == 384)
	{
	}
	return iVar0;
}

void func_689(int iParam0, vector3 vParam1, int iParam4, int iParam5)//Position - 0x7A283
{
	vector3 vVar0;
	float fVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	float fVar7;
	float fVar8;
	int iVar9;
	
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		if ((entity::get_entity_model(player::player_ped_id()) != iParam0 || iParam4 != 0) || iParam5 != -1)
		{
			if (func_87(vParam1))
			{
				func_718(iParam0, &vVar0, &fVar3);
			}
			else
			{
				vVar0 = { vParam1 };
			}
			switch (entity::get_entity_model(player::player_ped_id()))
			{
				case joaat("player_zero"):
				case joaat("player_one"):
				case joaat("player_two"):
					if (player::is_special_ability_active(player::player_id()))
					{
						player::special_ability_deactivate_fast(player::player_id());
					}
					break;
			}
			if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
			{
				iVar4 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
			}
			if (iParam4 == 0)
			{
				switch (iParam0)
				{
					case joaat("player_zero"):
						iLocal_7590 = ped::create_ped(0, iParam0, vVar0, fVar3, 1, true);
						break;
					
					case joaat("player_one"):
						iLocal_7590 = ped::create_ped(1, iParam0, vVar0, fVar3, 1, true);
						break;
					
					case joaat("player_two"):
						iLocal_7590 = ped::create_ped(3, iParam0, vVar0, fVar3, 1, true);
						break;
					
					default:
						iLocal_7590 = ped::create_ped(26, iParam0, vVar0, fVar3, 1, true);
						switch (iParam0)
						{
							case joaat("ig_amandatownley"):
							case joaat("ig_beverly"):
							case joaat("ig_brad"):
							case joaat("ig_chrisformage"):
							case joaat("ig_davenorton"):
							case joaat("ig_devin"):
							case joaat("ig_denise"):
							case joaat("ig_drfriedlander"):
							case joaat("ig_fabien"):
							case joaat("ig_floyd"):
							case joaat("ig_jimmydisanto"):
							case joaat("ig_lamardavis"):
							case joaat("ig_lazlow"):
							case joaat("ig_lifeinvad_01"):
							case joaat("ig_lestercrest"):
							case joaat("ig_maude"):
							case joaat("ig_mrs_thornhill"):
							case joaat("ig_nervousron"):
							case joaat("ig_patricia"):
							case joaat("ig_siemonyetarian"):
							case joaat("ig_solomon"):
							case joaat("ig_stevehains"):
							case joaat("ig_stretch"):
							case joaat("ig_taocheng"):
							case joaat("ig_tanisha"):
							case joaat("ig_tracydisanto"):
							case joaat("ig_wade"):
							case joaat("u_m_y_zombie_01"):
							case joaat("u_f_o_moviestar"):
							case joaat("s_m_y_mime"):
							case joaat("u_m_y_mani"):
							case joaat("u_m_m_jesus_01"):
							case joaat("u_m_o_taphillbilly"):
							case joaat("s_m_m_strpreach_01"):
							case joaat("u_f_y_comjane"):
							case joaat("u_m_y_imporage"):
							case joaat("u_m_m_griff_01"):
							case joaat("u_m_y_militarybum"):
							case joaat("u_m_o_finguru_01"):
							case joaat("u_m_y_baygor"):
							case joaat("u_m_y_hippie_01"):
								func_674(iLocal_7590, func_717(iParam0), &Local_8728, 1);
								break;
							
							case joaat("mp_m_freemode_01"):
							case joaat("mp_f_freemode_01"):
								if (iParam5 != -1)
								{
									if (iParam5 == 0)
									{
										iVar5 = 107;
									}
									else if (iParam5 == 1)
									{
										iVar5 = 108;
									}
									if (Local_7925[iParam5 /*401*/].f_400)
									{
										func_674(iLocal_7590, iVar5, &(Local_7925[iParam5 /*401*/]), 0);
									}
									else
									{
										func_674(iLocal_7590, iVar5, &Local_8728, 1);
										Local_7925[iParam5 /*401*/] = { Local_8728 };
										Local_7925[iParam5 /*401*/].f_400 = 1;
									}
								}
								break;
							
							case joaat("s_m_y_prisoner_01"):
								ped::set_ped_default_component_variation(iLocal_7590);
								func_397(iLocal_7590, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0);
								func_673(iLocal_7590, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
								break;
							
							default:
								ped::set_ped_default_component_variation(iLocal_7590);
								func_673(iLocal_7590, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
								break;
						}
						break;
				}
			}
			else
			{
				switch (func_716(iParam4))
				{
					case 1:
						if (iParam4 == iLocal_7746)
						{
							switch (iLocal_9784)
							{
								case 0:
									iVar6 = 0;
									iLocal_9784++;
									break;
								
								case 1:
									iVar6 = 1;
									iLocal_9784++;
									break;
								
								case 2:
									iVar6 = 2;
									iLocal_9784++;
									break;
								
								case 3:
									iVar6 = 3;
									iLocal_9784++;
									break;
								
								case 4:
									iVar6 = 6;
									iLocal_9784++;
									break;
								
								case 5:
									iVar6 = 7;
									iLocal_9784++;
									break;
								
								case 6:
									iVar6 = 8;
									iLocal_9784++;
									break;
								
								case 7:
									iVar6 = 9;
									iLocal_9784++;
									break;
								
								case 8:
									iVar6 = 10;
									iLocal_9784 = 0;
									break;
							}
						}
						else
						{
							iLocal_9784 = 1;
							iVar6 = 0;
						}
						break;
					
					case 2:
						if (iParam4 == iLocal_7746)
						{
							switch (iLocal_9783)
							{
								case 0:
									iVar6 = 0;
									iLocal_9783++;
									break;
								
								case 1:
									iVar6 = 8;
									iLocal_9783 = 0;
									break;
							}
						}
						else
						{
							iLocal_9783 = 1;
							iVar6 = 0;
						}
						break;
					
					case 3:
						if (iParam4 == iLocal_7746)
						{
							switch (iLocal_9785)
							{
								case 0:
									iVar6 = 0;
									iLocal_9785++;
									break;
								
								case 1:
									iVar6 = 1;
									iLocal_9785++;
									break;
								
								case 2:
									iVar6 = 8;
									iLocal_9785++;
									break;
								
								case 3:
									iVar6 = 9;
									iLocal_9785++;
									break;
								
								case 4:
									iVar6 = 10;
									iLocal_9785 = 0;
									break;
							}
						}
						else
						{
							iLocal_9785 = 1;
							iVar6 = 0;
						}
						break;
					
					default:
						iVar6 = 0;
						break;
				}
				iLocal_7590 = func_709(iParam4, vVar0, fVar3, iVar6, 1);
				if (func_716(iParam4) == 1)
				{
					if (iVar6 == 2)
					{
						ped::set_ped_prop_index(iLocal_7590, 2, 0, 0, false);
						ped::set_ped_prop_index(iLocal_7590, 1, 0, 0, false);
					}
				}
				ped::set_ped_component_variation(iLocal_7590, 1, 1, 0, 0);
				if (iParam4 == 13)
				{
					if (ped::get_ped_drawable_variation(iLocal_7590, 2) == 0)
					{
						ped::set_ped_component_variation(iLocal_7590, 2, 2, 0, 0);
					}
				}
				iLocal_7746 = iParam4;
			}
			fVar8 = cam::get_gameplay_cam_relative_heading();
			fVar7 = cam::get_gameplay_cam_relative_pitch();
			player::change_player_ped(player::player_id(), iLocal_7590, false, 1);
			cam::set_gameplay_cam_relative_heading(fVar8);
			cam::set_gameplay_cam_relative_pitch(fVar7, 1065353216);
			if (entity::does_entity_exist(iVar4))
			{
				if (vehicle::is_vehicle_driveable(iVar4, 0))
				{
					if (func_98(player::player_ped_id()))
					{
						ped::set_ped_into_vehicle(player::player_ped_id(), iVar4, -1);
					}
					else if (!entity::does_entity_belong_to_this_script(iVar4, 1))
					{
						entity::set_entity_as_mission_entity(iVar4, true, 0);
						vehicle::delete_vehicle(&iVar4);
					}
				}
			}
			switch (iParam0)
			{
				case joaat("s_f_y_cop_01"):
				case joaat("s_m_m_ciasec_01"):
				case joaat("s_m_m_fiboffice_01"):
				case joaat("s_m_m_paramedic_01"):
				case joaat("s_m_y_cop_01"):
				case joaat("s_m_y_fireman_01"):
				case joaat("s_m_y_swat_01"):
				case joaat("s_m_m_marine_01"):
				case joaat("s_m_y_marine_01"):
				case joaat("s_m_y_marine_02"):
				case joaat("s_m_y_marine_03"):
				case joaat("s_m_m_marine_02"):
				case joaat("s_m_y_blackops_01"):
				case joaat("s_m_y_blackops_02"):
				case joaat("s_m_y_armymech_01"):
				case joaat("s_m_y_uscg_01"):
					ped::set_ped_config_flag(player::player_ped_id(), 400, true);
					ui::_0xC594B315EDF2D4AF(player::player_ped_id());
					break;
				
				default:
					ped::set_ped_config_flag(player::player_ped_id(), 400, false);
					break;
			}
			if (iLocal_6555 != 5)
			{
				entity::set_entity_coords(player::player_ped_id(), vVar0, 1, false, 0, 1);
				entity::set_entity_heading(player::player_ped_id(), fVar3);
			}
			func_708(0);
			if (func_46(iParam0))
			{
				iLocal_6559 = 1;
				func_707(iParam0, 1, 0);
				iLocal_7718 = 1;
				iLocal_7719 = iParam0;
			}
			else
			{
				iLocal_6559 = 2;
				iLocal_7718 = 0;
				func_699();
				gameplay::_0xD79185689F8FD5DF(0);
			}
			if (!func_98(player::player_ped_id()))
			{
				func_698(1);
			}
			func_696(iParam0);
			ped::set_ped_config_flag(player::player_ped_id(), 272, true);
			ped::set_ped_config_flag(player::player_ped_id(), 169, true);
			ped::set_ped_reset_flag(player::player_ped_id(), 321, true);
			ped::force_ped_motion_state(player::player_ped_id(), -1871534317, false, 0, 0);
			ped::_0x2208438012482A1A(player::player_ped_id(), 0, 0);
			ped::_0xED3C76ADFA6D07C4(player::player_ped_id());
			func_671();
			func_669();
			func_666();
			func_665();
			switch (iParam0)
			{
				case joaat("player_zero"):
					ui::_0x7B21E0BB01E8224A(42);
					break;
				
				case joaat("player_one"):
					ui::_0x7B21E0BB01E8224A(43);
					break;
				
				case joaat("player_two"):
					ui::_0x7B21E0BB01E8224A(44);
					break;
				
				default:
					ui::_0x7B21E0BB01E8224A(0);
					break;
			}
			iLocal_9809 = 0;
			iLocal_9810 = 0;
			iLocal_9811 = 0;
			iLocal_9812 = 0;
			iLocal_9813 = 0;
			iVar9 = func_95();
			iLocal_9809 = func_46(iVar9);
			iLocal_9811 = func_695(iVar9);
			iLocal_9812 = func_693(iVar9);
			iLocal_9813 = func_691(iVar9);
			if (func_95() == joaat("ig_chrisformage"))
			{
				iLocal_9810 = 1;
			}
			func_690();
			iLocal_9714 = 0;
		}
	}
}

void func_690()//Position - 0x7A9E9
{
	iLocal_7699 = 1;
}

bool func_691(int iParam0)//Position - 0x7A9F5
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 13)
	{
		if (iParam0 == func_692(iVar0))
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

int func_692(int iParam0)//Position - 0x7AA20
{
	switch (iParam0)
	{
		case 0:
			return joaat("u_m_y_hippie_01");
		
		case 1:
			return joaat("u_m_y_baygor");
		
		case 2:
			return joaat("u_m_o_finguru_01");
		
		case 3:
			return joaat("u_m_y_militarybum");
		
		case 4:
			return joaat("u_m_m_griff_01");
		
		case 5:
			return joaat("u_f_y_comjane");
		
		case 6:
			return joaat("s_m_m_strpreach_01");
		
		case 7:
			return joaat("u_m_m_jesus_01");
		
		case 8:
			return joaat("u_m_y_mani");
		
		case 9:
			return joaat("s_m_y_mime");
		
		case 10:
			return joaat("u_f_o_moviestar");
		
		case 11:
			return joaat("u_m_y_imporage");
		
		case 12:
			return joaat("u_m_y_zombie_01");
		
		default:
	}
	return 0;
	return 0;
}

bool func_693(int iParam0)//Position - 0x7AAEA
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 28)
	{
		if (iParam0 == func_694(iVar0))
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

int func_694(int iParam0)//Position - 0x7AB15
{
	switch (iParam0)
	{
		case 0:
			return joaat("player_one");
		
		case 1:
			return joaat("player_two");
		
		case 2:
			return joaat("player_zero");
		
		case 3:
			return joaat("ig_amandatownley");
		
		case 4:
			return joaat("ig_beverly");
		
		case 5:
			return joaat("ig_brad");
		
		case 6:
			return joaat("ig_chrisformage");
		
		case 7:
			return joaat("ig_davenorton");
		
		case 8:
			return joaat("ig_devin");
		
		case 9:
			return joaat("ig_drfriedlander");
		
		case 10:
			return joaat("ig_fabien");
		
		case 11:
			return joaat("ig_floyd");
		
		case 12:
			return joaat("ig_jimmydisanto");
		
		case 13:
			return joaat("ig_lamardavis");
		
		case 14:
			return joaat("ig_lazlow");
		
		case 15:
			return joaat("ig_lestercrest");
		
		case 16:
			return joaat("ig_maude");
		
		case 17:
			return joaat("ig_mrs_thornhill");
		
		case 18:
			return joaat("ig_nervousron");
		
		case 19:
			return joaat("ig_patricia");
		
		case 20:
			return joaat("ig_siemonyetarian");
		
		case 21:
			return joaat("ig_solomon");
		
		case 22:
			return joaat("ig_stevehains");
		
		case 23:
			return joaat("ig_stretch");
		
		case 24:
			return joaat("ig_tanisha");
		
		case 25:
			return joaat("ig_taocheng");
		
		case 26:
			return joaat("ig_tracydisanto");
		
		case 27:
			return joaat("ig_wade");
		
		default:
	}
	return 0;
	return 0;
}

bool func_695(int iParam0)//Position - 0x7ACB1
{
	if (iParam0 == joaat("mp_m_freemode_01") || iParam0 == joaat("mp_f_freemode_01"))
	{
		return true;
	}
	return false;
}

void func_696(int iParam0)//Position - 0x7ACDA
{
	func_697(2, 1);
	func_697(3, 1);
	if (iParam0 == joaat("s_m_m_movalien_01"))
	{
		func_697(4, 1);
	}
	func_697(5, 1);
	func_697(7, 1);
	func_697(10, 1);
	func_697(15, 1);
	func_697(16, 1);
	func_697(19, 1);
	func_697(17, 1);
	func_697(18, 1);
}

void func_697(int iParam0, int iParam1)//Position - 0x7AD34
{
	if (iParam1)
	{
		gameplay::set_bit(&Global_25396, iParam0);
	}
	else
	{
		gameplay::clear_bit(&Global_25396, iParam0);
	}
}

void func_698(int iParam0)//Position - 0x7AD56
{
	if (iParam0)
	{
		StringCopy(&Global_100242, script::get_this_script_name(), 24);
		Global_100236 = 1;
	}
	else
	{
		StringCopy(&Global_100242, "NULL", 24);
		Global_100236 = 0;
	}
}

void func_699()//Position - 0x7AD82
{
	if (!entity::is_entity_dead(player::player_ped_id(), 0))
	{
		ped::set_ped_config_flag(player::player_ped_id(), 157, true);
		entity::set_entity_health(player::player_ped_id(), 200);
	}
	ped::set_ped_max_health(player::player_ped_id(), 200);
	ped::set_ped_config_flag(player::player_ped_id(), 189, false);
	player::set_run_sprint_multiplier_for_player(player::player_id(), 1f);
	player::set_swim_multiplier_for_player(player::player_id(), 1f);
	player::set_player_melee_weapon_damage_modifier(player::player_id(), 1f);
	func_701(0);
	Global_101130 = 0;
	Global_25155 = 0;
	func_698(0);
	ui::display_radar(true);
	if (!func_211(14))
	{
		ui::_0xE1CD1E48E025E661();
	}
	player::set_player_can_use_cover(player::player_id(), 1);
	gameplay::_0xD79185689F8FD5DF(1);
	gameplay::_0xC54A08C85AE4D410(0f);
	func_697(0, 0);
	func_697(1, 0);
	func_697(2, 0);
	func_697(3, 0);
	func_697(4, 0);
	func_697(5, 0);
	func_697(6, 0);
	func_697(7, 0);
	func_697(8, 0);
	func_697(9, 0);
	func_697(10, 0);
	func_697(11, 0);
	func_697(12, 0);
	func_697(13, 0);
	func_697(14, 0);
	func_697(15, 0);
	func_697(16, 0);
	func_697(17, 0);
	func_697(18, 0);
	func_697(19, 0);
	func_697(20, 0);
	Global_91349 = 0;
	if (Global_25307 != 0)
	{
		decisionevent::remove_shocking_event(Global_25307);
	}
	func_700(0);
	network::network_block_invites(0);
}

void func_700(int iParam0)//Position - 0x7AEBE
{
	if (iParam0)
	{
		Global_15768 = 1;
	}
	else
	{
		Global_15768 = 0;
	}
}

void func_701(int iParam0)//Position - 0x7AED6
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 45)
	{
		func_702(iVar0, iParam0);
		iVar0++;
	}
}

void func_702(int iParam0, int iParam1)//Position - 0x7AEF9
{
	if (iParam1)
	{
		if (!func_706(iParam0, 2, 1))
		{
			func_705(iParam0, 2, 1);
		}
	}
	else if (func_706(iParam0, 2, 1))
	{
		func_703(iParam0, 2, 1);
	}
}

void func_703(int iParam0, int iParam1, int iParam2)//Position - 0x7AF30
{
	int iVar0;
	
	if (iParam2)
	{
		gameplay::clear_bit(&(Global_91362.f_1300[iParam0]), iParam1);
	}
	else if (network::network_is_game_in_progress())
	{
		if (func_568() == 0)
		{
			iVar0 = func_300(func_704(iParam0), -1, 0);
			gameplay::clear_bit(&iVar0, iParam1);
			func_265(func_704(iParam0), iVar0, -1, 1);
		}
	}
	else
	{
		gameplay::clear_bit(&(Global_101186.f_668[iParam0]), iParam1);
	}
}

int func_704(int iParam0)//Position - 0x7AF98
{
	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 3879;
			break;
		
		default:
			break;
	}
	return 3976;
}

void func_705(int iParam0, int iParam1, int iParam2)//Position - 0x7B250
{
	int iVar0;
	
	if (iParam2)
	{
		gameplay::set_bit(&(Global_91362.f_1300[iParam0]), iParam1);
	}
	else if (network::network_is_game_in_progress())
	{
		if (func_568() == 0)
		{
			iVar0 = func_300(func_704(iParam0), -1, 0);
			gameplay::set_bit(&iVar0, iParam1);
			func_265(func_704(iParam0), iVar0, -1, 1);
		}
	}
	else
	{
		gameplay::set_bit(&(Global_101186.f_668[iParam0]), iParam1);
	}
}

int func_706(int iParam0, int iParam1, int iParam2)//Position - 0x7B2B8
{
	if (iParam2)
	{
		return gameplay::is_bit_set(Global_91362.f_1300[iParam0], iParam1);
	}
	else if (network::network_is_game_in_progress())
	{
		if (func_568() == 0)
		{
			return gameplay::is_bit_set(func_300(func_704(iParam0), -1, 0), iParam1);
		}
	}
	else
	{
		return gameplay::is_bit_set(Global_101186.f_668[iParam0], iParam1);
	}
	return false;
}

void func_707(int iParam0, int iParam1, int iParam2)//Position - 0x7B318
{
	if (!func_63(iParam0))
	{
		return;
	}
	if (iParam1)
	{
		ui::display_radar(false);
		if (!func_211(14))
		{
			ui::_0xFDB423997FA30340();
		}
	}
	if (!entity::is_entity_dead(player::player_ped_id(), 0))
	{
		ped::remove_ped_helmet(player::player_ped_id(), 0);
		if (iParam0 != joaat("ig_orleans"))
		{
			ped::set_ped_stealth_movement(player::player_ped_id(), 0, 0);
			ped::remove_ped_helmet(player::player_ped_id(), 0);
			entity::set_entity_max_health(player::player_ped_id(), 200);
			entity::set_entity_health(player::player_ped_id(), 200);
		}
		else
		{
			ped::set_ped_config_flag(player::player_ped_id(), 189, true);
			player::set_player_melee_weapon_damage_modifier(player::player_id(), 100f);
			ped::set_ped_max_health(player::player_ped_id(), 5000);
			entity::set_entity_health(player::player_ped_id(), 5000);
		}
		ped::set_ped_config_flag(player::player_ped_id(), 157, false);
		if (iParam2)
		{
			switch (iParam0)
			{
				case joaat("a_c_mtlion"):
				case joaat("a_c_boar"):
				case joaat("a_c_cow"):
				case joaat("a_c_coyote"):
				case joaat("ig_orleans"):
					Global_25307 = decisionevent::add_shocking_event_for_entity(81, player::player_ped_id(), 0f);
					if (Global_25307 == 0)
					{
					}
					break;
				}
			}
	}
	func_701(1);
	Global_101130 = 1;
	Global_25155 = 1;
	func_698(1);
	gameplay::_0xD79185689F8FD5DF(0);
	gameplay::_0xB8F87EAD7533B176(0f);
	gameplay::_0xC3EAD29AB273ECE8(0f);
	gameplay::_0xA7A1127490312C36(0f);
	gameplay::_0x31727907B2C43C55(0f);
	gameplay::_0x405591EC8FD9096D(0f);
	gameplay::_0xF751B16FB32ABC1D(0f);
	gameplay::_0xB3E6360DDE733E82(0f);
	gameplay::_0x7C9C0B1EEB1F9072(0f);
	gameplay::_0x6216B116083A7CB4(0f);
	gameplay::_0x9F5E6BB6B34540DA(0f);
	gameplay::_0xB9854DFDE0D833D6(0f);
	gameplay::_0xC54A08C85AE4D410(0.1f);
	if (iParam0 != joaat("ig_orleans"))
	{
		func_697(0, 1);
		func_697(1, 1);
		func_697(2, 1);
		func_697(3, 1);
		func_697(4, 1);
		func_697(5, 1);
		func_697(6, 1);
		func_697(7, 1);
		func_697(8, 1);
		func_697(9, 1);
		func_697(10, 1);
		func_697(11, 1);
		func_697(12, 1);
		func_697(13, 1);
		func_697(14, 1);
		func_697(15, 1);
		func_697(16, 1);
		func_697(17, 1);
		func_697(18, 1);
		func_697(19, 1);
		func_697(20, 1);
	}
	func_700(1);
	network::network_block_invites(1);
}

void func_708(int iParam0)//Position - 0x7B501
{
	func_697(0, iParam0);
	func_697(1, iParam0);
	func_697(11, iParam0);
	func_697(12, iParam0);
	func_697(13, iParam0);
	func_697(14, iParam0);
}

int func_709(int iParam0, vector3 vParam1, float fParam4, int iParam5, int iParam6)//Position - 0x7B537
{
	int iVar0;
	
	iVar0 = ped::create_ped(26, Global_87518[iParam0 /*5*/].f_4, vParam1, fParam4, 1, true);
	func_713(iVar0, iParam0, iParam5, iParam6);
	entity::set_entity_as_mission_entity(iVar0, true, 0);
	ped::set_ped_suffers_critical_hits(iVar0, 0);
	if (func_716(iParam0) == 1)
	{
		ped::set_ped_max_health(iVar0, func_710(iParam0, 0));
		ped::set_ped_accuracy(iVar0, func_710(iParam0, 1));
		ped::set_ped_shoot_rate(iVar0, func_710(iParam0, 2));
	}
	else
	{
		ped::set_ped_max_health(iVar0, 100);
		ped::set_ped_accuracy(iVar0, 25);
		ped::set_ped_shoot_rate(iVar0, 40);
	}
	return iVar0;
}

int func_710(int iParam0, int iParam1)//Position - 0x7B5C2
{
	if (func_716(iParam0) != 1)
	{
		return -1;
	}
	return func_711(iParam0, iParam1);
}

int func_711(int iParam0, int iParam1)//Position - 0x7B5E0
{
	return func_712(iParam1, Global_101186.f_1.f_73[iParam0 /*3*/].f_1, Global_101186.f_1.f_73[iParam0 /*3*/].f_2);
}

int func_712(int iParam0, int iParam1, int iParam2)//Position - 0x7B60A
{
	switch (iParam0)
	{
		case 0:
		case 1:
			return system::shift_right(iParam1, (15 * iParam0)) & 32767;
			break;
		
		case 2:
		case 3:
			return system::shift_right(iParam2, (15 * (iParam0 - 2))) & 32767;
			break;
	}
	return -1;
}

void func_713(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x7B65E
{
	func_714(iParam0, "", iParam1, iParam2, iParam3);
}

void func_714(int iParam0, char* sParam1, int iParam2, int iParam3, int iParam4)//Position - 0x7B676
{
	int iVar0;
	
	iVar0 = func_716(iParam2);
	switch (iVar0)
	{
		case 1:
			switch (iParam3)
			{
				case 0:
					func_715(iParam0, sParam1, 0, Global_87518[iParam2 /*5*/].f_2, 0, 0);
					func_715(iParam0, sParam1, 2, 1, 0, 0);
					func_715(iParam0, sParam1, 3, 6, Global_87518[iParam2 /*5*/].f_3, 0);
					func_715(iParam0, sParam1, 4, 6, Global_87518[iParam2 /*5*/].f_3, 0);
					func_715(iParam0, sParam1, 6, 1, 0, 0);
					func_715(iParam0, sParam1, 8, 0, 0, 0);
					func_715(iParam0, sParam1, 9, 0, 0, 0);
					func_715(iParam0, sParam1, 10, 1, 0, 0);
					func_715(iParam0, sParam1, 1, 1, 0, 0);
					if (iParam0 != 0)
					{
						ped::clear_ped_prop(iParam0, 0);
						cutscene::_0x2A56C06EBEF2B0D9(sParam1, iParam0, 0);
					}
					break;
				
				case 1:
					func_715(iParam0, sParam1, 0, Global_87518[iParam2 /*5*/].f_2, 0, 0);
					func_715(iParam0, sParam1, 2, 1, 0, 0);
					func_715(iParam0, sParam1, 3, 0, 0, 0);
					func_715(iParam0, sParam1, 4, 0, 0, 0);
					func_715(iParam0, sParam1, 6, 1, 0, 0);
					func_715(iParam0, sParam1, 8, 0, 0, 0);
					func_715(iParam0, sParam1, 9, 0, 0, 0);
					func_715(iParam0, sParam1, 10, 0, 0, 0);
					func_715(iParam0, sParam1, 1, 1, 0, 0);
					break;
				
				case 2:
					func_715(iParam0, sParam1, 0, Global_87518[iParam2 /*5*/].f_2, 0, 0);
					func_715(iParam0, sParam1, 2, 1, 0, 0);
					func_715(iParam0, sParam1, 3, 3, 0, 0);
					func_715(iParam0, sParam1, 4, 3, 0, 0);
					func_715(iParam0, sParam1, 6, 0, 0, 0);
					func_715(iParam0, sParam1, 8, 3, 0, 0);
					func_715(iParam0, sParam1, 9, 3, 0, 0);
					func_715(iParam0, sParam1, 10, 1, 0, 0);
					func_715(iParam0, sParam1, 1, 1, 0, 0);
					break;
				
				case 3:
					func_715(iParam0, sParam1, 0, Global_87518[iParam2 /*5*/].f_2, 0, 0);
					func_715(iParam0, sParam1, 2, 1, 0, 0);
					func_715(iParam0, sParam1, 3, 3, 0, 0);
					func_715(iParam0, sParam1, 4, 8, 0, 0);
					func_715(iParam0, sParam1, 6, 1, 0, 0);
					func_715(iParam0, sParam1, 8, 0, 0, 0);
					func_715(iParam0, sParam1, 9, 3, 0, 0);
					func_715(iParam0, sParam1, 10, 1, 0, 0);
					func_715(iParam0, sParam1, 1, 1, 0, 0);
					break;
				
				case 4:
					func_715(iParam0, sParam1, 0, Global_87518[iParam2 /*5*/].f_2, 1, 0);
					func_715(iParam0, sParam1, 2, 1, 0, 0);
					func_715(iParam0, sParam1, 3, 4, 0, 0);
					func_715(iParam0, sParam1, 4, 4, 0, 0);
					func_715(iParam0, sParam1, 6, 1, 0, 0);
					func_715(iParam0, sParam1, 8, 0, 0, 0);
					func_715(iParam0, sParam1, 9, 0, 0, 0);
					func_715(iParam0, sParam1, 10, 1, 0, 0);
					func_715(iParam0, sParam1, 1, 1, 0, 0);
					break;
				
				case 5:
					func_715(iParam0, sParam1, 0, Global_87518[iParam2 /*5*/].f_2, 2, 0);
					func_715(iParam0, sParam1, 2, 1, 0, 0);
					func_715(iParam0, sParam1, 3, 5, 0, 0);
					func_715(iParam0, sParam1, 4, 5, 0, 0);
					func_715(iParam0, sParam1, 6, 1, 0, 0);
					func_715(iParam0, sParam1, 8, 5, 0, 0);
					func_715(iParam0, sParam1, 9, 0, 0, 0);
					func_715(iParam0, sParam1, 10, 1, 0, 0);
					func_715(iParam0, sParam1, 1, 1, 0, 0);
					break;
				
				case 6:
					func_715(iParam0, sParam1, 0, Global_87518[iParam2 /*5*/].f_2, 0, 0);
					func_715(iParam0, sParam1, 1, 1, 0, 0);
					func_715(iParam0, sParam1, 2, 1, 0, 0);
					func_715(iParam0, sParam1, 3, 1, 0, 0);
					func_715(iParam0, sParam1, 4, 1, 0, 0);
					func_715(iParam0, sParam1, 6, 4, 0, 0);
					func_715(iParam0, sParam1, 8, 0, 0, 0);
					func_715(iParam0, sParam1, 9, 1, 0, 0);
					func_715(iParam0, sParam1, 10, 1, 0, 0);
					if (iParam0 != 0)
					{
						ped::set_ped_prop_index(iParam0, 0, 5, 0, false);
						cutscene::_0x2A56C06EBEF2B0D9(sParam1, iParam0, 0);
					}
					else
					{
						cutscene::set_cutscene_ped_prop_variation(sParam1, 0, 5, 0, 0);
					}
					break;
				
				case 7:
					func_715(iParam0, sParam1, 0, Global_87518[iParam2 /*5*/].f_2, 0, 0);
					func_715(iParam0, sParam1, 2, 1, 0, 0);
					func_715(iParam0, sParam1, 3, 2, 0, 0);
					func_715(iParam0, sParam1, 4, 2, 0, 0);
					func_715(iParam0, sParam1, 6, 1, 0, 0);
					func_715(iParam0, sParam1, 8, 4, 0, 0);
					func_715(iParam0, sParam1, 9, 0, 0, 0);
					func_715(iParam0, sParam1, 10, 1, 0, 0);
					func_715(iParam0, sParam1, 1, 1, 0, 0);
					if (iParam0 != 0)
					{
						ped::set_ped_prop_index(iParam0, 0, 1, 0, false);
						cutscene::_0x2A56C06EBEF2B0D9(sParam1, iParam0, 0);
					}
					else
					{
						cutscene::set_cutscene_ped_prop_variation(sParam1, 0, 1, 0, 0);
					}
					break;
				
				case 8:
					func_715(iParam0, sParam1, 0, Global_87518[iParam2 /*5*/].f_2, 0, 0);
					func_715(iParam0, sParam1, 2, 0, 0, 0);
					func_715(iParam0, sParam1, 3, 8, 0, 0);
					func_715(iParam0, sParam1, 4, 8, 0, 0);
					func_715(iParam0, sParam1, 6, 1, 0, 0);
					func_715(iParam0, sParam1, 8, 7, 0, 0);
					func_715(iParam0, sParam1, 9, 2, 0, 0);
					func_715(iParam0, sParam1, 10, 1, 0, 0);
					func_715(iParam0, sParam1, 1, 1, 0, 0);
					break;
				
				case 9:
					func_715(iParam0, sParam1, 0, Global_87518[iParam2 /*5*/].f_2, 0, 0);
					func_715(iParam0, sParam1, 2, 1, 0, 0);
					func_715(iParam0, sParam1, 3, 7, 0, 0);
					func_715(iParam0, sParam1, 4, 7, 0, 0);
					func_715(iParam0, sParam1, 6, 1, 0, 0);
					func_715(iParam0, sParam1, 8, 6, 0, 0);
					func_715(iParam0, sParam1, 9, 0, 0, 0);
					func_715(iParam0, sParam1, 10, 1, 0, 0);
					func_715(iParam0, sParam1, 1, 1, 0, 0);
					break;
				
				case 10:
					func_715(iParam0, sParam1, 0, Global_87518[iParam2 /*5*/].f_2, 0, 0);
					func_715(iParam0, sParam1, 2, 1, 0, 0);
					func_715(iParam0, sParam1, 3, 5, 0, 0);
					func_715(iParam0, sParam1, 4, 5, 0, 0);
					func_715(iParam0, sParam1, 6, 1, 0, 0);
					func_715(iParam0, sParam1, 8, 0, 0, 0);
					func_715(iParam0, sParam1, 9, 0, 0, 0);
					func_715(iParam0, sParam1, 10, 1, 0, 0);
					func_715(iParam0, sParam1, 1, 1, 0, 0);
					break;
			}
			if (iParam2 == 11)
			{
				switch (iParam3)
				{
					case 0:
					case 7:
					case 8:
					case 9:
						if (iParam0 != 0)
						{
							ped::set_ped_prop_index(iParam0, 2, 1, 0, false);
							cutscene::_0x2A56C06EBEF2B0D9(sParam1, iParam0, 0);
						}
						else
						{
							cutscene::set_cutscene_ped_prop_variation(sParam1, 2, 1, 0, 0);
						}
						break;
					}
			}
			break;
		
		case 2:
			switch (iParam3)
			{
				case 0:
					func_715(iParam0, sParam1, 0, Global_87518[iParam2 /*5*/].f_2, 0, 0);
					func_715(iParam0, sParam1, 2, Global_87518[iParam2 /*5*/].f_3, 0, 0);
					if (iParam2 == 6 || iParam2 == 7)
					{
						func_715(iParam0, sParam1, 5, 0, 0, 0);
					}
					else
					{
						func_715(iParam0, sParam1, 5, 2, 0, 0);
					}
					func_715(iParam0, sParam1, 3, Global_87518[iParam2 /*5*/].f_3, 0, 0);
					func_715(iParam0, sParam1, 4, Global_87518[iParam2 /*5*/].f_3, 0, 0);
					func_715(iParam0, sParam1, 8, 0, 0, 0);
					if (iParam0 != 0)
					{
						ped::clear_ped_prop(iParam0, 0);
						cutscene::_0x2A56C06EBEF2B0D9(sParam1, iParam0, 0);
					}
					break;
				
				case 8:
					func_715(iParam0, sParam1, 0, Global_87518[iParam2 /*5*/].f_2, 0, 0);
					func_715(iParam0, sParam1, 2, 2, 0, 0);
					func_715(iParam0, sParam1, 5, 1, 0, 0);
					func_715(iParam0, sParam1, 3, 2, 0, 0);
					func_715(iParam0, sParam1, 4, 2, 0, 0);
					func_715(iParam0, sParam1, 8, 1, 0, 0);
					break;
				
				default:
					return;
					break;
			}
			break;
		
		case 3:
			switch (iParam3)
			{
				case 0:
					func_715(iParam0, sParam1, 0, Global_87518[iParam2 /*5*/].f_2, 0, 0);
					func_715(iParam0, sParam1, 2, 1, 0, 0);
					func_715(iParam0, sParam1, 3, 3, Global_87518[iParam2 /*5*/].f_3, 0);
					if (iParam2 == 13)
					{
						func_715(iParam0, sParam1, 4, 2, 0, 0);
					}
					else
					{
						func_715(iParam0, sParam1, 4, 2, Global_87518[iParam2 /*5*/].f_3, 0);
					}
					func_715(iParam0, sParam1, 8, 1, 0, 0);
					func_715(iParam0, sParam1, 10, 1, 0, 0);
					if (iParam0 != 0)
					{
						ped::clear_ped_prop(iParam0, 0);
						cutscene::_0x2A56C06EBEF2B0D9(sParam1, iParam0, 0);
					}
					break;
				
				case 9:
					func_715(iParam0, sParam1, 0, Global_87518[iParam2 /*5*/].f_2, 0, 0);
					func_715(iParam0, sParam1, 2, 1, 0, 0);
					func_715(iParam0, sParam1, 3, 5, 0, 0);
					func_715(iParam0, sParam1, 4, 4, 0, 0);
					func_715(iParam0, sParam1, 8, 0, 0, 0);
					func_715(iParam0, sParam1, 10, 1, 0, 0);
					break;
				
				case 10:
					func_715(iParam0, sParam1, 0, Global_87518[iParam2 /*5*/].f_2, 0, 0);
					func_715(iParam0, sParam1, 3, 4, 2, 0);
					func_715(iParam0, sParam1, 4, 3, 2, 0);
					func_715(iParam0, sParam1, 8, 1, 0, 0);
					func_715(iParam0, sParam1, 10, 1, 0, 0);
					break;
				
				case 1:
					func_715(iParam0, sParam1, 0, Global_87518[iParam2 /*5*/].f_2, 0, 0);
					func_715(iParam0, sParam1, 3, 0, 0, 0);
					func_715(iParam0, sParam1, 4, 0, 0, 0);
					func_715(iParam0, sParam1, 8, 1, 0, 0);
					func_715(iParam0, sParam1, 10, 0, 0, 0);
					break;
				
				case 8:
					func_715(iParam0, sParam1, 0, Global_87518[iParam2 /*5*/].f_2, 0, 0);
					func_715(iParam0, sParam1, 2, 1, 0, 0);
					func_715(iParam0, sParam1, 3, 2, 0, 0);
					func_715(iParam0, sParam1, 4, 3, 2, 0);
					func_715(iParam0, sParam1, 6, 0, 0, 0);
					func_715(iParam0, sParam1, 8, 1, 0, 0);
					func_715(iParam0, sParam1, 10, 1, 0, 0);
					break;
				
				default:
					return;
					break;
			}
			break;
	}
	if (iParam0 != 0)
	{
		if (iParam4)
		{
			ped::set_ped_prop_index(iParam0, 2, 0, 0, false);
		}
		else
		{
			ped::clear_ped_prop(iParam0, 2);
		}
		cutscene::_0x2A56C06EBEF2B0D9(sParam1, iParam0, 0);
	}
}

void func_715(int iParam0, char* sParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0x7C048
{
	if (iParam0 != 0)
	{
		ped::set_ped_component_variation(iParam0, iParam2, iParam3, iParam4, iParam5);
	}
	cutscene::set_cutscene_ped_component_variation(sParam1, iParam2, iParam3, iParam4, 0);
}

var func_716(int iParam0)//Position - 0x7C071
{
	return Global_87518[iParam0 /*5*/];
}

int func_717(int iParam0)//Position - 0x7C081
{
	switch (iParam0)
	{
		case joaat("ig_amandatownley"):
			return 0;
			break;
		
		case joaat("ig_beverly"):
			return 13;
			break;
		
		case joaat("ig_brad"):
			return 14;
			break;
		
		case joaat("ig_chrisformage"):
			return 16;
			break;
		
		case joaat("ig_davenorton"):
			return 17;
			break;
		
		case joaat("ig_devin"):
			return 21;
			break;
		
		case joaat("ig_denise"):
			return 25;
			break;
		
		case joaat("ig_drfriedlander"):
			return 27;
			break;
		
		case joaat("ig_fabien"):
			return 29;
			break;
		
		case joaat("ig_floyd"):
			return 31;
			break;
		
		case joaat("ig_jimmydisanto"):
			return 35;
			break;
		
		case joaat("ig_lamardavis"):
			return 45;
			break;
		
		case joaat("ig_lazlow"):
			return 52;
			break;
		
		case joaat("ig_lestercrest"):
			return 54;
			break;
		
		case joaat("ig_maude"):
			return 56;
			break;
		
		case joaat("ig_mrs_thornhill"):
			return 57;
			break;
		
		case joaat("ig_nervousron"):
			return 58;
			break;
		
		case joaat("ig_patricia"):
			return 59;
			break;
		
		case joaat("ig_lifeinvad_01"):
			return 60;
			break;
		
		case joaat("ig_siemonyetarian"):
			return 61;
			break;
		
		case joaat("ig_solomon"):
			return 64;
			break;
		
		case joaat("ig_stevehains"):
			return 65;
			break;
		
		case joaat("ig_stretch"):
			return 69;
			break;
		
		case joaat("ig_tanisha"):
			return 70;
			break;
		
		case joaat("ig_taocheng"):
			return 71;
			break;
		
		case joaat("ig_tracydisanto"):
			return 73;
			break;
		
		case joaat("ig_wade"):
			return 87;
			break;
		
		case joaat("u_m_y_hippie_01"):
			return 91;
			break;
		
		case joaat("u_m_y_baygor"):
			return 92;
			break;
		
		case joaat("u_m_o_finguru_01"):
			return 93;
			break;
		
		case joaat("u_m_y_militarybum"):
			return 94;
			break;
		
		case joaat("u_m_m_griff_01"):
			return 95;
			break;
		
		case joaat("u_m_y_imporage"):
			return 96;
			break;
		
		case joaat("u_f_y_comjane"):
			return 97;
			break;
		
		case joaat("s_m_m_strpreach_01"):
			return 100;
			break;
		
		case joaat("u_m_o_taphillbilly"):
			return 101;
			break;
		
		case joaat("u_m_m_jesus_01"):
			return 102;
			break;
		
		case joaat("u_m_y_mani"):
			return 103;
			break;
		
		case joaat("s_m_y_mime"):
			return 104;
			break;
		
		case joaat("u_f_o_moviestar"):
			return 105;
			break;
		
		case joaat("u_m_y_zombie_01"):
			return 106;
			break;
		
		case joaat("mp_m_freemode_01"):
		case joaat("mp_f_freemode_01"):
			return 107;
			break;
	}
	return -1;
}

void func_718(int iParam0, var uParam1, var uParam2)//Position - 0x7C2E2
{
	float fVar0;
	
	switch (iLocal_6555)
	{
		case 3:
		case 2:
			if (func_46(iParam0))
			{
				if (func_719(iParam0))
				{
					*uParam1 = { -13.8082f, -14.2325f, 500.115f };
					*uParam2 = 352.9452f;
				}
				else
				{
					*uParam1 = { -11.9823f, -14.7217f, 499.0583f };
					*uParam2 = 20f;
				}
			}
			else if (iLocal_6555 == 2)
			{
				*uParam1 = { vLocal_7603 };
				*uParam2 = fLocal_7606;
			}
			else
			{
				*uParam1 = { vLocal_7608 };
				*uParam2 = fLocal_7611;
			}
			break;
		
		case 5:
			*uParam1 = { entity::get_entity_coords(player::player_ped_id(), 1) };
			gameplay::get_ground_z_for_3d_coord(*uParam1 + Vector(2f, 0f, 0f), &fVar0, 0);
			if (fVar0 != 0f)
			{
				if (gameplay::absf((uParam1->f_2 - fVar0)) > 2f)
				{
					pathfind::get_safe_coord_for_ped(entity::get_entity_coords(player::player_ped_id(), 1), 0, uParam1, 20);
					uParam1->f_2 = (uParam1->f_2 - 0.9f);
				}
				else
				{
					uParam1->f_2 = fVar0;
				}
			}
			*uParam2 = entity::get_entity_heading(player::player_ped_id());
			break;
	}
}

bool func_719(int iParam0)//Position - 0x7C3E9
{
	switch (iParam0)
	{
		case 1462895032:
		case -541762431:
		case joaat("a_c_chickenhawk"):
		case joaat("a_c_cormorant"):
		case joaat("a_c_crow"):
		case joaat("a_c_hen"):
		case joaat("a_c_pigeon"):
		case joaat("a_c_seagull"):
			return true;
			break;
	}
	return false;
}

void func_720()//Position - 0x7C430
{
	iLocal_7753 = 0;
	iLocal_7754 = 0;
}

int func_721(vector3 vParam0, int iParam3, vector3 vParam4, float fParam7, var uParam8, var uParam9, int iParam10, int iParam11, int iParam12)//Position - 0x7C440
{
	struct<2> Var0;
	vector3 vVar3;
	int iVar6;
	var uVar7;
	vector3 vVar10;
	int iVar13;
	int iVar14;
	var uVar15;
	vector3 vVar18;
	int iVar21;
	vector3 vVar22;
	int iVar25;
	float fVar26;
	float fVar27;
	int iVar28;
	float fVar29;
	float fVar30;
	int iVar31;
	float fVar32;
	float fVar33;
	int iVar34;
	
	if (iLocal_9740)
	{
		return func_727();
	}
	if (player::is_player_teleport_active())
	{
		player::stop_player_teleport();
		return 0;
	}
	if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
	{
		iParam3 = entity::get_entity_model(ped::get_vehicle_ped_is_in(player::player_ped_id(), 0));
	}
	if (iParam12)
	{
		iLocal_9764 = 0;
		iLocal_9762 = 0;
		iLocal_9765 = 0;
	}
	else
	{
		*uParam8 = 0;
		gameplay::get_model_dimensions(iParam3, &Var0, &vVar3);
		if ((iLocal_9762 == 0 && iLocal_9764 == 0) && iLocal_9765 == 0)
		{
			iLocal_9765 = worldprobe::_0xFE466162C4401D18(vParam4 + Vector(vVar3.y, 0f, 0f), (vVar3.x - Var0), (vVar3.y - Var0.f_1), (vVar3.y * 0.5f), 0f, 0f, fParam7, 2, 83, player::player_ped_id(), 4);
		}
		if (iLocal_9765 != 0)
		{
			if (worldprobe::_get_raycast_result(iLocal_9765, &iVar6, &uVar7, &vVar10, &iVar13) == 2)
			{
				if (func_726(iVar6, iVar13, vVar10))
				{
					*uParam9 = 0;
				}
				else
				{
					*uParam9 = 1;
				}
				iLocal_9765 = 0;
				if (!iParam11)
				{
					vVar22 = { ped::get_ped_bone_coords(player::player_ped_id(), 2108, 0f, 0f, 0f) + ped::get_ped_bone_coords(player::player_ped_id(), 20781, 0f, 0f, 0f) / Vector(2f, 2f, 2f) };
				}
				else
				{
					vVar22 = { vParam0 };
				}
				iLocal_9764 = worldprobe::_0xFE466162C4401D18(vVar22 + Vector(vVar3.y, 0f, 0f), ((vVar3.x - Var0) * 1.2f), ((vVar3.y - Var0.f_1) * 1.2f), (vVar3.y * 0.5f), 0f, 0f, fParam7, 2, 83, player::player_ped_id(), 4);
				iLocal_9763 = worldprobe::_0xE6AC6C45FBE83004(vVar22 + Vector(vVar3.y, 0f, 0f), vVar22 - Vector(0.5f, 0f, 0f), 0.3f, 211, player::player_ped_id(), 4);
				iLocal_9762 = worldprobe::_0xFE466162C4401D18(vVar22, ((vVar3.x - Var0) * 1.2f), ((vVar3.y - Var0.f_1) * 1.2f), (vVar3.y * 0.7f), 0f, 0f, fParam7, 2, 511, player::player_ped_id(), 4);
			}
		}
		else
		{
			if (iLocal_9762 != 0 && iLocal_9763 != 0)
			{
				if (worldprobe::_get_raycast_result(iLocal_9763, &iVar14, &uVar15, &vVar18, &iVar21) == 2 && worldprobe::_get_raycast_result(iLocal_9762, &iVar6, &uVar7, &vVar10, &iVar13) == 2)
				{
					if (func_726(iVar6, iVar13, vVar10) || func_726(iVar14, iVar21, vVar18))
					{
						*uParam8 = 0;
						iLocal_9762 = 0;
						iLocal_9764 = 0;
					}
					else
					{
						*uParam8 = 1;
					}
					iLocal_9762 = 0;
				}
			}
			if (iLocal_9764 != 0)
			{
				if (worldprobe::_get_raycast_result(iLocal_9764, &iVar6, &uVar7, &vVar10, &iVar13) == 2)
				{
					if (iVar6 == 1)
					{
						*uParam8 = 0;
						iLocal_9762 = 0;
						iLocal_9764 = 0;
					}
					else
					{
						*uParam8 = 1;
					}
					iLocal_9764 = 0;
				}
			}
		}
	}
	if ((iLocal_9764 == 0 && iLocal_9762 == 0) && iLocal_9765 == 0)
	{
		if (!*uParam8 || iParam12)
		{
			if (*uParam9 && !iParam12)
			{
			}
			else if (func_725(iParam3))
			{
				fParam7 = fLocal_7707;
			}
			else
			{
				vLocal_7704 = { func_724() };
				if (!ped::is_ped_injured(player::player_ped_id()) && ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
				{
					iVar25 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
					if (!vehicle::is_this_model_a_plane(entity::get_entity_model(iVar25)) && !vehicle::is_this_model_a_heli(entity::get_entity_model(iVar25)))
					{
						if (gameplay::are_strings_equal(&(Local_9128[iLocal_9127 /*17*/].f_13), "CM_LOC_28"))
						{
							fParam7 = 209.1812f;
							vLocal_7704 = { 490.7735f, 5589.512f, 793.088f };
						}
						if (gameplay::are_strings_equal(&(Local_9128[iLocal_9127 /*17*/].f_13), "CM_LOC_27"))
						{
							fParam7 = 99.5279f;
							vLocal_7704 = { 3101.277f, 2244.696f, 71.6135f };
						}
					}
				}
			}
		}
		else
		{
			vLocal_7704 = { vLocal_7701 };
			if (!iParam10)
			{
				iVar28 = gameplay::get_ground_z_for_3d_coord(vLocal_7701, &fVar26, 0);
				water::get_water_height(vLocal_7701 + Vector(50f, 0f, 0f), &fVar27);
				if (iVar28)
				{
					vLocal_7704.z = func_723(fVar26, fVar27);
				}
			}
		}
		if (iParam10)
		{
			iVar31 = gameplay::get_ground_z_for_3d_coord(vLocal_7704 + Vector(0.1f, 0f, 0f), &fVar29, 0);
			water::get_water_height(vLocal_7701 + Vector(50f, 0f, 0f), &fVar30);
			fVar29 = func_723(fVar29, fVar30);
			if (vLocal_7704.y < fVar29 && iVar31)
			{
				vLocal_7704.z = func_723(fVar29, fVar30);
			}
		}
		switch (iLocal_5945)
		{
			case 0:
				if (!streaming::is_new_load_scene_active())
				{
					streaming::_new_load_scene_start_safe(vLocal_7704, 20f, 0);
				}
				iLocal_5945++;
				break;
			
			case 1:
				if (streaming::is_new_load_scene_loaded() || !streaming::is_new_load_scene_active())
				{
					gameplay::get_ground_z_for_3d_coord(vLocal_7704, &fVar32, 0);
					water::get_water_height(vLocal_7704 + Vector(30f, 0f, 0f), &fVar33);
					iVar34 = !fVar32 < fVar33;
					func_722(vLocal_7704, fParam7, 0, iVar34, 20000);
					iLocal_5945 = 0;
					iLocal_9741 = gameplay::get_game_timer();
					iLocal_9740 = 1;
					streaming::new_load_scene_stop();
					if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
					{
						rope::activate_physics(ped::get_vehicle_ped_is_in(player::player_ped_id(), 0));
					}
				}
				break;
			}
	}
	return 0;
}

void func_722(vector3 vParam0, float fParam3, int iParam4, int iParam5, int iParam6)//Position - 0x7C904
{
	int iVar0;
	
	player::start_player_teleport(player::player_id(), vParam0, fParam3, true, iParam5, iParam4);
	iVar0 = (gameplay::get_game_timer() + iParam6);
	while (!(player::_has_player_teleport_finished(player::player_id()) || iVar0 < gameplay::get_game_timer()))
	{
		system::wait(0);
	}
}

float func_723(float fParam0, float fParam1)//Position - 0x7C949
{
	if (fParam0 > fParam1)
	{
		return fParam0;
	}
	return fParam1;
}

Vector3 func_724()//Position - 0x7C960
{
	vector3 vVar0;
	vector3 vVar3[6];
	float fVar22;
	float fVar23;
	int iVar24;
	int iVar25;
	
	vVar0 = { entity::get_entity_coords(player::player_ped_id(), 1) };
	vVar3[0 /*3*/] = { 249.0731f, -1290.208f, 28.1948f };
	vVar3[1 /*3*/] = { -157.7122f, -878.0799f, 28.2652f };
	vVar3[2 /*3*/] = { 143.3925f, 1665.615f, 227.9352f };
	vVar3[3 /*3*/] = { 916.2925f, 3546.9f, 32.8042f };
	vVar3[4 /*3*/] = { 1698.727f, 4748.225f, 40.9841f };
	vVar3[5 /*3*/] = { 430.5542f, 6535.083f, 26.9338f };
	fVar22 = 9999.9f;
	iVar24 = 0;
	while (iVar24 < vVar3.x)
	{
		fVar23 = gameplay::get_distance_between_coords(vVar0, vVar3[iVar24 /*3*/], 1);
		if (fVar23 < fVar22)
		{
			fVar22 = fVar23;
			iVar25 = iVar24;
		}
		iVar24++;
	}
	return vVar3[iVar25 /*3*/];
}

bool func_725(int iParam0)//Position - 0x7CA43
{
	if (func_7(&vLocal_7704, &fLocal_7707, iParam0, 1, 1, 2.5f))
	{
		return true;
	}
	return false;
}

bool func_726(int iParam0, int iParam1, vector3 vParam2)//Position - 0x7CA69
{
	vector3 vVar0;
	vector3 vVar3;
	
	if (iParam0 == 0)
	{
		worldprobe::_0x2B3334BCA57CD799(iParam1);
		return false;
	}
	if (entity::does_entity_exist(iParam1))
	{
		if (entity::is_entity_an_object(iParam1) || entity::is_entity_a_vehicle(iParam1))
		{
			gameplay::get_model_dimensions(entity::get_entity_model(iParam1), &vVar0, &vVar3);
			if ((gameplay::absf(vVar0.y) + gameplay::absf(vVar3.y)) < 0.2f)
			{
				worldprobe::_0x2B3334BCA57CD799(iParam1);
				return false;
			}
			else
			{
				worldprobe::_0x2B3334BCA57CD799(iParam1);
				return true;
			}
		}
		else
		{
			worldprobe::_0x2B3334BCA57CD799(iParam1);
			if (vParam2.y < 0.2f && vParam2.y > -0.2f)
			{
			}
			return false;
		}
	}
	else
	{
		worldprobe::_0x2B3334BCA57CD799(iParam1);
		return false;
	}
	return false;
}

bool func_727()//Position - 0x7CB15
{
	if (((!(entity::is_entity_in_air(player::player_ped_id()) || ped::is_ped_falling(player::player_ped_id())) || (gameplay::get_game_timer() - iLocal_9741) > 10000) || entity::is_entity_in_water(player::player_ped_id())) && (gameplay::get_game_timer() - iLocal_9741) > 500)
	{
		if ((gameplay::get_game_timer() - iLocal_9741) > 10000)
		{
		}
		iLocal_9740 = 0;
		iLocal_9741 = 0;
		return true;
	}
	player::set_player_cloth_pin_frames(player::player_id(), 1);
	return false;
}

Vector3 func_728(vector3 vParam0, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x7CB8C
{
	vector3 vVar0;
	
	if (iParam3 && pathfind::get_safe_coord_for_ped(vParam0, 0, &vVar0, 21))
	{
	}
	else if ((iParam4 && !iParam5) && func_731(vParam0, &vVar0, iParam3, iParam6))
	{
	}
	else if (iParam5 && func_729(vParam0, &vVar0))
	{
	}
	else
	{
		vVar0 = { func_724() };
	}
	return vVar0;
}

bool func_729(vector3 vParam0, var uParam3)//Position - 0x7CBF4
{
	int iVar0;
	float fVar1;
	int iVar2;
	
	if (!ped::is_ped_injured(player::player_ped_id()) && ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
	{
		iVar0 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
		fVar1 = entity::get_entity_heading(iVar0);
		iVar2 = entity::get_entity_model(iVar0);
		if (func_730(vParam0, uParam3, fVar1, iVar2))
		{
			return true;
		}
	}
	return false;
}

bool func_730(vector3 vParam0, var uParam3, float fParam4, int iParam5)//Position - 0x7CC47
{
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		if (!func_11(vParam0, fParam4, iParam5, 1, 0) || iParam5 == -1384627013)
		{
			if (func_7(&vParam0, &fParam4, iParam5, 0, 1, 2.5f))
			{
				*uParam3 = { vParam0 };
				return true;
			}
		}
		else
		{
			*uParam3 = { vParam0 };
			return true;
		}
	}
	return false;
}

bool func_731(vector3 vParam0, var uParam3, var uParam4, int iParam5)//Position - 0x7CCAE
{
	float fVar0;
	int iVar1;
	
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		fVar0 = entity::get_entity_heading(player::player_ped_id());
		if (iParam5 != 0)
		{
			iVar1 = iParam5;
		}
		else
		{
			iVar1 = entity::get_entity_model(player::player_ped_id());
		}
		if (uParam4 && pathfind::get_safe_coord_for_ped(vParam0, 0, uParam3, 28))
		{
			return true;
		}
		else if (func_730(vParam0 + Vector(0.1f, 0f, 0f), uParam3, fVar0, iVar1))
		{
			return true;
		}
	}
	return false;
}

int func_732(int iParam0)//Position - 0x7CD1F
{
	int iVar0;
	
	iVar0 = 1;
	if (iParam0 == 0)
	{
		iParam0 = entity::get_entity_model(player::player_ped_id());
	}
	if (func_63(iParam0))
	{
		func_734(&(Local_6811.f_20), iParam0);
		if (!gameplay::is_string_null_or_empty(&(Local_6811.f_20.f_24)))
		{
			if (!audio::request_script_audio_bank(&(Local_6811.f_20.f_24), false, -1))
			{
				iVar0 = 0;
			}
		}
		func_733(&Local_6811, &(Local_6811.f_16), iParam0);
		if (!gameplay::is_string_null_or_empty(&Local_6811))
		{
			streaming::request_anim_dict(&Local_6811);
			if (!streaming::has_anim_dict_loaded(&Local_6811))
			{
				iVar0 = 0;
			}
		}
	}
	Local_6811.f_65 = gameplay::get_game_timer();
	return iVar0;
}

void func_733(char* sParam0, char* sParam1, int iParam2)//Position - 0x7CDAA
{
	switch (iParam2)
	{
		case joaat("a_c_boar"):
			StringCopy(sParam0, "", 64);
			break;
		
		case 1462895032:
			StringCopy(sParam0, "", 64);
			break;
		
		case joaat("a_c_cow"):
			StringCopy(sParam0, "", 64);
			break;
		
		case joaat("a_c_coyote"):
			StringCopy(sParam0, "", 64);
			break;
		
		case joaat("a_c_deer"):
			StringCopy(sParam0, "", 64);
			break;
		
		case joaat("a_c_husky"):
			StringCopy(sParam0, "facials@creatures@retriever@bark", 64);
			break;
		
		case joaat("a_c_mtlion"):
			StringCopy(sParam0, "", 64);
			break;
		
		case joaat("a_c_pig"):
			StringCopy(sParam0, "", 64);
			break;
		
		case 1125994524:
			StringCopy(sParam0, "facials@creatures@pug@bark", 64);
			break;
		
		case 1832265812:
			StringCopy(sParam0, "facials@creatures@pug@bark", 64);
			break;
		
		case -541762431:
			StringCopy(sParam0, "", 64);
			break;
		
		case joaat("a_c_retriever"):
			StringCopy(sParam0, "facials@creatures@retriever@bark", 64);
			break;
		
		case joaat("a_c_rottweiler"):
			StringCopy(sParam0, "facials@creatures@rottweile@bark", 64);
			break;
		
		case joaat("a_c_shepherd"):
			StringCopy(sParam0, "facials@creatures@retriever@bark", 64);
			break;
		
		case -1384627013:
			StringCopy(sParam0, "facials@creatures@pug@bark", 64);
			break;
		
		case joaat("a_c_chickenhawk"):
			StringCopy(sParam0, "", 64);
			break;
		
		case joaat("a_c_cormorant"):
			StringCopy(sParam0, "", 64);
			break;
		
		case joaat("a_c_crow"):
			StringCopy(sParam0, "", 64);
			break;
		
		case joaat("a_c_hen"):
			StringCopy(sParam0, "", 64);
			break;
		
		case joaat("a_c_pigeon"):
			StringCopy(sParam0, "", 64);
			break;
		
		case joaat("a_c_seagull"):
			StringCopy(sParam0, "", 64);
			break;
		
		case -1950698411:
			StringCopy(sParam0, "", 64);
			break;
		
		case joaat("a_c_fish"):
			StringCopy(sParam0, "", 64);
			break;
		
		case -1920284487:
			StringCopy(sParam0, "", 64);
			break;
		
		case 1015224100:
			StringCopy(sParam0, "", 64);
			break;
		
		case joaat("a_c_sharktiger"):
			StringCopy(sParam0, "", 64);
			break;
		
		case -1589092019:
			StringCopy(sParam0, "", 64);
			break;
		
		case joaat("ig_orleans"):
			StringCopy(sParam0, "", 64);
			break;
		
		default:
			break;
	}
	if (!gameplay::is_string_null_or_empty(sParam0))
	{
		StringCopy(sParam1, "bark_facial", 16);
	}
}

void func_734(char* sParam0, int iParam1)//Position - 0x7CFB2
{
	switch (iParam1)
	{
		case joaat("a_c_boar"):
			StringCopy(sParam0, "PEYOTE_ATTRACT_BOAR", 64);
			StringCopy(&(sParam0->f_16), "BOAR", 32);
			StringCopy(&(sParam0->f_28), "EXCITED", 64);
			break;
		
		case 1462895032:
			StringCopy(sParam0, "PEYOTE_ATTRACT_CAT", 64);
			StringCopy(&(sParam0->f_16), "CAT", 32);
			StringCopy(&(sParam0->f_28), "CAT_MEOW", 64);
			break;
		
		case joaat("a_c_cow"):
			StringCopy(sParam0, "PEYOTE_ATTRACT_COW", 64);
			StringCopy(&(sParam0->f_16), "COW", 32);
			StringCopy(&(sParam0->f_28), "", 64);
			break;
		
		case joaat("a_c_coyote"):
			StringCopy(sParam0, "PEYOTE_ATTRACT_COYOTE", 64);
			StringCopy(&(sParam0->f_16), "COYOTE", 32);
			StringCopy(&(sParam0->f_28), "BARK", 64);
			break;
		
		case joaat("a_c_deer"):
			StringCopy(sParam0, "PEYOTE_ATTRACT_DEER", 64);
			StringCopy(&(sParam0->f_16), "DEER", 32);
			StringCopy(&(sParam0->f_28), "CALL", 64);
			break;
		
		case joaat("a_c_husky"):
			StringCopy(sParam0, "PEYOTE_ATTRACT_HUSKY", 64);
			StringCopy(&(sParam0->f_16), "HUSKY", 32);
			StringCopy(&(sParam0->f_28), "BARK", 64);
			break;
		
		case joaat("a_c_mtlion"):
			StringCopy(sParam0, "PEYOTE_ATTRACT_MTLION", 64);
			StringCopy(&(sParam0->f_16), "MTLION", 32);
			StringCopy(&(sParam0->f_28), "ROAR", 64);
			break;
		
		case joaat("a_c_pig"):
			StringCopy(sParam0, "PEYOTE_ATTRACT_PIG", 64);
			StringCopy(&(sParam0->f_16), "PIG", 32);
			StringCopy(&(sParam0->f_28), "EXCITED", 64);
			break;
		
		case 1125994524:
			StringCopy(sParam0, "PEYOTE_ATTRACT_SMALL_DOG", 64);
			StringCopy(&(sParam0->f_16), "SMALL_DOG", 32);
			StringCopy(&(sParam0->f_28), "BARK", 64);
			break;
		
		case 1832265812:
			StringCopy(sParam0, "PEYOTE_ATTRACT_SMALL_DOG", 64);
			StringCopy(&(sParam0->f_16), "SMALL_DOG", 32);
			StringCopy(&(sParam0->f_28), "BARK", 64);
			break;
		
		case -541762431:
			StringCopy(sParam0, "PEYOTE_ATTRACT_RABBIT", 64);
			StringCopy(&(sParam0->f_16), "RABBIT", 32);
			StringCopy(&(sParam0->f_28), "RABBIT_SCREAM", 64);
			break;
		
		case joaat("a_c_retriever"):
			StringCopy(sParam0, "PEYOTE_ATTRACT_RETRIEVER", 64);
			StringCopy(&(sParam0->f_16), "RETRIEVER", 32);
			StringCopy(&(sParam0->f_28), "BARK", 64);
			break;
		
		case joaat("a_c_rottweiler"):
			StringCopy(sParam0, "PEYOTE_ATTRACT_ROTTWEILER", 64);
			StringCopy(&(sParam0->f_16), "ROTTWEILER", 32);
			StringCopy(&(sParam0->f_28), "BARK", 64);
			break;
		
		case joaat("a_c_shepherd"):
			StringCopy(sParam0, "PEYOTE_ATTRACT_SHEPHERD", 64);
			StringCopy(&(sParam0->f_16), "SHEPHERD", 32);
			StringCopy(&(sParam0->f_28), "BARK", 64);
			break;
		
		case -1384627013:
			StringCopy(sParam0, "PEYOTE_ATTRACT_SMALL_DOG", 64);
			StringCopy(&(sParam0->f_16), "SMALL_DOG", 32);
			StringCopy(&(sParam0->f_28), "BARK", 64);
			break;
		
		case joaat("a_c_chickenhawk"):
			StringCopy(sParam0, "PEYOTE_ATTRACT_CHICKENHAWK", 64);
			StringCopy(&(sParam0->f_16), "CHICKENHAWK", 32);
			StringCopy(&(sParam0->f_28), "SCREECH", 64);
			break;
		
		case joaat("a_c_cormorant"):
			StringCopy(sParam0, "PEYOTE_ATTRACT_CORMORANT", 64);
			StringCopy(&(sParam0->f_16), "CORMORANT", 32);
			StringCopy(&(sParam0->f_28), "CALL", 64);
			break;
		
		case joaat("a_c_crow"):
			StringCopy(sParam0, "PEYOTE_ATTRACT_CROW", 64);
			StringCopy(&(sParam0->f_16), "CROW", 32);
			StringCopy(&(sParam0->f_28), "FLIGHT", 64);
			break;
		
		case joaat("a_c_hen"):
			StringCopy(sParam0, "PEYOTE_ATTRACT_HEN", 64);
			StringCopy(&(sParam0->f_16), "HEN", 32);
			StringCopy(&(sParam0->f_28), "SQUAWK", 64);
			break;
		
		case joaat("a_c_pigeon"):
			StringCopy(sParam0, "PEYOTE_ATTRACT_PIGEON", 64);
			StringCopy(&(sParam0->f_16), "PIGEON", 32);
			StringCopy(&(sParam0->f_28), "COO", 64);
			break;
		
		case joaat("a_c_seagull"):
			StringCopy(sParam0, "PEYOTE_ATTRACT_SEAGULL", 64);
			StringCopy(&(sParam0->f_16), "SEAGULL", 32);
			StringCopy(&(sParam0->f_28), "CALL", 64);
			break;
		
		case -1950698411:
			StringCopy(sParam0, "PEYOTE_ATTRACT_DOLPHIN", 64);
			StringCopy(&(sParam0->f_16), "DOLPHIN", 32);
			StringCopy(&(sParam0->f_28), "DOLPHIN_CALL", 64);
			break;
		
		case joaat("a_c_fish"):
			StringCopy(sParam0, "PEYOTE_ATTRACT_SEA_CREATURE", 64);
			StringCopy(&(sParam0->f_16), "SEA_CREATURE", 32);
			break;
		
		case -1920284487:
			StringCopy(sParam0, "PEYOTE_ATTRACT_SEA_CREATURE", 64);
			StringCopy(&(sParam0->f_16), "SEA_CREATURE", 32);
			StringCopy(&(sParam0->f_28), "WHALE_CALL", 64);
			break;
		
		case 1015224100:
			StringCopy(sParam0, "PEYOTE_ATTRACT_SEA_CREATURE", 64);
			StringCopy(&(sParam0->f_16), "SEA_CREATURE", 32);
			break;
		
		case joaat("a_c_sharktiger"):
			StringCopy(sParam0, "PEYOTE_ATTRACT_SEA_CREATURE", 64);
			StringCopy(&(sParam0->f_16), "SEA_CREATURE", 32);
			break;
		
		case -1589092019:
			StringCopy(sParam0, "PEYOTE_ATTRACT_SEA_CREATURE", 64);
			StringCopy(&(sParam0->f_16), "SEA_CREATURE", 32);
			break;
		
		case joaat("ig_orleans"):
			StringCopy(sParam0, "PEYOTE_ATTRACT_SASQUATCH", 64);
			StringCopy(&(sParam0->f_16), "SASQUATCH", 32);
			StringCopy(&(sParam0->f_24), "SAS_BANK_01", 16);
			StringCopy(&(sParam0->f_28), "PEYOTE_PLAYER_SECRET_VOCAL_MASTER", 64);
			break;
		
		default:
			break;
	}
}

void func_735(int iParam0)//Position - 0x7D402
{
	func_736(&(Local_6811.f_64));
	if (!gameplay::is_string_null_or_empty(&Local_6811))
	{
		streaming::remove_anim_dict(&Local_6811);
	}
	if (!gameplay::is_string_null_or_empty(&(Local_6811.f_20.f_24)))
	{
		audio::release_named_script_audio_bank(&(Local_6811.f_20.f_24));
	}
	Local_6811.f_64 = -1;
	StringCopy(&(Local_6811.f_20.f_28), "", 64);
	StringCopy(&(Local_6811.f_20.f_24), "", 16);
	StringCopy(&Local_6811, "", 64);
	StringCopy(&(Local_6811.f_16), "", 16);
	if (iParam0)
	{
		audio::release_script_audio_bank();
	}
}

void func_736(var uParam0)//Position - 0x7D47C
{
	if (*uParam0 != -1)
	{
		audio::stop_sound(*uParam0);
		audio::release_sound_id(*uParam0);
		*uParam0 = -1;
	}
}

int func_737()//Position - 0x7D49D
{
	return iLocal_6550;
}

void func_738()//Position - 0x7D4A8
{
	if (iLocal_7752)
	{
		if (Local_6565[iLocal_6561 /*5*/] != 0)
		{
			func_752();
			func_739();
		}
		else
		{
			iLocal_7752 = 0;
			iLocal_7753 = 0;
		}
	}
}

void func_739()//Position - 0x7D4D5
{
	var uVar0;
	
	if ((iLocal_6564 > 32 || iLocal_6564 == 7) || iLocal_6564 == 8)
	{
		if (iLocal_6564 != 7 && iLocal_6564 != 8)
		{
			switch (Local_6565[iLocal_6561 /*5*/])
			{
				case 1:
					if (func_751(&uVar0, iLocal_6561))
					{
						iLocal_6808 = Local_6565[uVar0 /*5*/];
						iLocal_6809 = Local_6565[uVar0 /*5*/].f_1;
						iLocal_7754 = func_741(Local_6565[uVar0 /*5*/], Local_6565[uVar0 /*5*/].f_1, 0);
						iLocal_6806 = Local_6565[uVar0 /*5*/];
						uLocal_6807 = Local_6565[uVar0 /*5*/].f_1;
					}
					else
					{
						iLocal_6808 = 0;
						iLocal_6809 = 0;
						iLocal_7754 = 0;
					}
					break;
				
				case 0:
					iLocal_7754 = 0;
					break;
				
				default:
					iLocal_7754 = func_741(Local_6565[iLocal_6561 /*5*/], Local_6565[iLocal_6561 /*5*/].f_1, 0);
					iLocal_6806 = Local_6565[iLocal_6561 /*5*/];
					uLocal_6807 = Local_6565[iLocal_6561 /*5*/].f_1;
					break;
			}
		}
		else
		{
			if (iLocal_6564 == 7)
			{
				iLocal_7754 = func_740(0);
			}
			else
			{
				iLocal_7754 = func_740(1);
			}
			iLocal_6806 = Local_6565[iLocal_6561 /*5*/];
			uLocal_6807 = Local_6565[iLocal_6561 /*5*/].f_1;
		}
	}
	iLocal_7752 = 0;
	if (streaming::is_model_valid(iLocal_7754))
	{
		streaming::request_model(iLocal_7754);
		iLocal_7753 = 1;
	}
	else
	{
		iLocal_7753 = 0;
	}
}

var func_740(int iParam0)//Position - 0x7D61C
{
	if (iParam0)
	{
		return Local_6878[iLocal_6561 + 10 /*32*/].f_27;
	}
	return Local_6878[iLocal_6561 /*32*/].f_27;
}

int func_741(int iParam0, int iParam1, int iParam2)//Position - 0x7D645
{
	int iVar0;
	var uVar1;
	
	if (!iParam2)
	{
		iLocal_7745 = 0;
	}
	if (iLocal_6564 == 33)
	{
		iVar0 = func_743(iParam0, 2, iParam1, &uVar1, 0);
	}
	else if ((iLocal_6564 == 39 || iLocal_6564 == 44) || iLocal_6564 == 46)
	{
		iVar0 = func_743(iParam0, 3, iParam1, &uVar1, 0);
	}
	else if (iLocal_7697)
	{
		iVar0 = func_743(iParam0, 0, iParam1, &uVar1, 0);
	}
	else
	{
		iVar0 = func_743(iParam0, 1, iParam1, &uVar1, 0);
	}
	if (iVar0 == 0)
	{
		iVar0 = func_742(1);
	}
	return iVar0;
}

int func_742(int iParam0)//Position - 0x7D6D6
{
	int iVar0;
	
	iVar0 = gameplay::get_random_int_in_range(0, 32);
	if (iParam0)
	{
		switch (iVar0)
		{
			case 0:
				return joaat("a_m_m_eastsa_01");
			
			case 1:
				return joaat("a_m_m_bevhills_01");
			
			case 2:
				return joaat("a_m_m_bevhills_02");
			
			case 3:
				return joaat("a_m_m_business_01");
			
			case 4:
				return joaat("a_m_m_malibu_01");
			
			case 5:
				return joaat("a_m_m_eastsa_02");
			
			case 6:
				return joaat("a_m_m_hillbilly_01");
			
			case 7:
				return joaat("a_m_m_hillbilly_02");
			
			case 8:
				return joaat("a_m_m_og_boss_01");
			
			case 9:
				return joaat("a_m_m_stlat_02");
			
			case 10:
				return joaat("a_m_y_beachvesp_01");
			
			case 11:
				return joaat("a_m_y_epsilon_01");
			
			case 12:
				return joaat("a_m_m_prolhost_01");
			
			case 13:
				return joaat("a_m_m_salton_01");
			
			case 14:
				return joaat("a_m_m_skater_01");
			
			case 15:
				return joaat("a_m_y_skater_02");
			
			case 16:
				return joaat("a_m_y_methhead_01");
			
			case 17:
				return joaat("a_m_m_skidrow_01");
			
			case 18:
				return joaat("a_m_m_soucent_01");
			
			case 19:
				return joaat("a_m_m_soucent_02");
			
			case 20:
				return joaat("a_m_m_soucent_03");
			
			case 21:
				return joaat("a_m_y_genstreet_02");
			
			case 22:
				return joaat("a_m_y_roadcyc_01");
			
			case 23:
				return joaat("a_m_m_afriamer_01");
			
			case 24:
				return joaat("a_m_m_beach_01");
			
			case 25:
				return joaat("a_m_m_farmer_01");
			
			case 26:
				return joaat("a_m_m_fatlatin_01");
			
			case 27:
				return joaat("a_m_m_genfat_01");
			
			case 28:
				return joaat("a_m_m_indian_01");
			
			case 29:
				return joaat("a_m_m_ktown_01");
			
			case 30:
				return joaat("a_m_m_socenlat_01");
			
			case 31:
				return joaat("a_m_m_mexlabor_01");
			
			default:
		}
	}
	else
	{
		switch (iVar0)
		{
			case 0:
				return joaat("a_f_m_bevhills_01");
			
			case 1:
				return joaat("a_f_m_bevhills_02");
			
			case 2:
				return joaat("a_f_m_beach_01");
			
			case 3:
				return joaat("a_f_m_ktown_02");
			
			case 4:
				return joaat("a_f_m_prolhost_01");
			
			case 5:
				return joaat("a_f_m_bodybuild_01");
			
			case 6:
				return joaat("a_f_m_business_02");
			
			case 7:
				return joaat("a_f_m_downtown_01");
			
			case 8:
				return joaat("a_f_m_eastsa_01");
			
			case 9:
				return joaat("a_f_m_eastsa_02");
			
			case 10:
				return joaat("a_f_m_fatwhite_01");
			
			case 11:
				return joaat("a_f_m_ktown_01");
			
			case 12:
				return joaat("a_f_m_ktown_02");
			
			case 13:
				return joaat("a_f_m_salton_01");
			
			case 14:
				return joaat("a_f_m_skidrow_01");
			
			case 15:
				return joaat("a_f_m_soucent_01");
			
			case 16:
				return joaat("a_f_m_soucent_02");
			
			case 17:
				return joaat("a_f_m_soucentmc_01");
			
			case 18:
				return joaat("a_f_m_tramp_01");
			
			case 19:
				return joaat("a_f_m_trampbeac_01");
			
			case 20:
				return joaat("a_f_y_yoga_01");
			
			case 21:
				return joaat("a_f_y_vinewood_02");
			
			case 22:
				return joaat("a_f_y_vinewood_03");
			
			case 23:
				return joaat("a_f_y_vinewood_04");
			
			case 24:
				return joaat("a_f_y_tennis_01");
			
			case 25:
				return joaat("a_f_y_tourist_01");
			
			case 26:
				return joaat("a_f_y_hipster_01");
			
			case 27:
				return joaat("a_f_y_golfer_01");
			
			case 28:
				return joaat("a_f_y_fitness_01");
			
			case 29:
				return joaat("a_f_y_scdressy_01");
			
			case 30:
				return joaat("a_f_y_epsilon_01");
			
			case 31:
				return joaat("a_f_y_hiker_01");
			
			default:
		}
	}
	return joaat("a_f_m_bevhills_01");
}

int func_743(int iParam0, int iParam1, int iParam2, var uParam3, int iParam4)//Position - 0x7DA88
{
	var uVar0;
	
	if (iParam0 == 42)
	{
		func_748();
	}
	*uParam3 = 1;
	iParam2 = iParam2;
	switch (iParam0)
	{
		case 82:
			return joaat("s_m_m_pilot_01");
			break;
		
		case 83:
			return joaat("a_m_y_vinewood_02");
			break;
		
		case 84:
			return joaat("s_m_m_bouncer_01");
			break;
		
		case 85:
			if (iParam1 == 0)
			{
				return joaat("a_m_y_business_01");
			}
			else
			{
				return joaat("a_f_m_bevhills_02");
			}
			break;
		
		case 86:
			return joaat("s_m_y_chef_01");
			break;
		
		case 87:
			return joaat("s_m_m_linecook");
			break;
		
		case 88:
			return joaat("s_m_m_doctor_01");
			break;
		
		case 89:
			return joaat("s_m_y_doorman_01");
			break;
		
		case 90:
			return joaat("a_m_m_tranvest_01");
			break;
		
		case 91:
			return joaat("s_m_m_lifeinvad_01");
			break;
		
		case 93:
			return joaat("s_m_m_mariachi_01");
			break;
		
		case 94:
			if (iParam1 == 0)
			{
				return joaat("a_m_y_business_02");
			}
			else
			{
				return joaat("a_f_m_business_02");
			}
			break;
		
		case 95:
			return joaat("s_m_m_scientist_01");
			break;
		
		case 96:
			if (iParam1 == 0)
			{
				return joaat("a_m_y_vinewood_01");
			}
			else
			{
				return joaat("a_f_y_hipster_04");
			}
			break;
		
		case 97:
			return joaat("s_m_y_valet_01");
			break;
		
		case 98:
			if (iParam1 == 0)
			{
				return joaat("a_m_y_business_03");
			}
			else
			{
				return joaat("a_f_m_bevhills_01");
			}
			break;
		
		case 99:
			return joaat("s_m_y_waiter_01");
			break;
		
		case 100:
			return joaat("s_f_y_airhostess_01");
			break;
		
		case 101:
			return joaat("a_f_y_hipster_02");
			break;
		
		case 102:
			return joaat("s_f_y_shop_mid");
			break;
		
		case 103:
			return joaat("u_f_y_spyactress");
			break;
		
		case 104:
			return joaat("s_f_m_fembarber");
			break;
		
		case 105:
			return joaat("a_f_y_business_03");
			break;
		
		case 106:
			return joaat("a_f_y_business_01");
			break;
		
		case 107:
			return joaat("s_f_m_shop_high");
			break;
		
		case 108:
			return joaat("a_f_y_business_02");
			break;
		
		case 109:
			return joaat("s_f_y_hooker_01");
			break;
		
		case 110:
			return joaat("a_f_y_business_04");
			break;
		
		case 111:
			return joaat("a_m_y_hipster_03");
			break;
		
		case 112:
			return joaat("a_m_y_vinewood_03");
			break;
		
		case 113:
			return joaat("a_m_y_hipster_02");
			break;
		
		case 114:
			return joaat("a_m_y_hipster_01");
			break;
		
		case 117:
			return joaat("a_f_y_hipster_03");
			break;
		
		case 118:
			return joaat("a_f_y_hipster_01");
			break;
		
		case 115:
			return joaat("a_m_m_bevhills_01");
			break;
		
		case 116:
			return joaat("a_m_y_vindouche_01");
			break;
		
		case 119:
			return joaat("a_f_y_vinewood_01");
			break;
		
		case 120:
			return joaat("a_f_y_vinewood_04");
			break;
		
		case 121:
			return joaat("a_f_y_bevhills_01");
			break;
		
		case 122:
			return joaat("a_f_y_bevhills_03");
			break;
		
		case 123:
			return joaat("a_f_y_bevhills_02");
			break;
		
		case 124:
			return joaat("a_f_y_bevhills_04");
			break;
		
		case 125:
			return joaat("a_f_y_genhot_01");
			break;
		
		case 126:
			return joaat("a_m_m_soucent_01");
			break;
		
		case 127:
			return joaat("a_m_y_eastsa_01");
			break;
		
		case 128:
			return joaat("a_m_y_genstreet_02");
			break;
		
		case 129:
			return joaat("a_m_y_latino_01");
			break;
		
		case 133:
			if (iParam1 == 0)
			{
				return joaat("a_m_m_fatlatin_01");
			}
			else
			{
				return joaat("a_f_y_soucent_01");
			}
			break;
		
		case 131:
			if (iParam1 == 0)
			{
				return joaat("a_m_m_genfat_01");
			}
			else
			{
				return joaat("a_f_m_fatwhite_01");
			}
			break;
		
		case 132:
			return joaat("a_m_m_genfat_02");
			break;
		
		case 130:
			return joaat("a_m_y_soucent_03");
			break;
		
		case 134:
			return joaat("a_f_m_eastsa_02");
			break;
		
		case 135:
			return joaat("a_f_y_eastsa_01");
			break;
		
		case 136:
			return joaat("a_f_y_eastsa_02");
			break;
		
		case 137:
			return joaat("a_f_y_indian_01");
			break;
		
		case 138:
			return joaat("a_f_m_fatbla_01");
			break;
		
		case 139:
			return joaat("a_f_y_soucent_02");
			break;
		
		case 140:
			if (iParam1 == 0)
			{
				return joaat("a_m_m_skidrow_01");
			}
			else
			{
				return joaat("a_f_m_skidrow_01");
			}
			break;
		
		case 141:
			if (iParam1 == 0)
			{
				return joaat("a_m_m_tramp_01");
			}
			else
			{
				return joaat("a_f_m_trampbeac_01");
			}
			break;
		
		case 142:
			if (iParam1 == 0)
			{
				return joaat("a_m_o_tramp_01");
			}
			else
			{
				return joaat("a_f_m_tramp_01");
			}
			break;
		
		case 143:
			return joaat("a_m_y_methhead_01");
			break;
		
		case 144:
			if (iParam1 == 0)
			{
				return joaat("a_m_y_salton_01");
			}
			else
			{
				return joaat("a_f_m_salton_01");
			}
			break;
		
		case 145:
			return joaat("a_m_m_rurmeth_01");
			break;
		
		case 146:
			return joaat("a_m_m_hillbilly_01");
			break;
		
		case 147:
			return joaat("a_m_m_hillbilly_02");
			break;
		
		case 148:
			return joaat("s_m_y_prismuscl_01");
			break;
		
		case 149:
			return joaat("s_m_y_prisoner_01");
			break;
		
		case 150:
			if (iParam1 == 0)
			{
				return joaat("a_m_m_beach_01");
			}
			else
			{
				return joaat("a_f_y_tourist_02");
			}
			break;
		
		case 151:
			return joaat("a_m_m_beach_02");
			break;
		
		case 152:
			return joaat("a_m_o_beach_01");
			break;
		
		case 153:
			if (iParam1 == 0)
			{
				return joaat("a_m_y_beach_01");
			}
			else
			{
				return joaat("a_f_y_beach_01");
			}
			break;
		
		case 154:
			if (iParam1 == 0)
			{
				return joaat("a_m_y_beach_02");
			}
			else
			{
				return joaat("a_f_m_beach_01");
			}
			break;
		
		case 155:
			return joaat("a_m_y_beach_03");
			break;
		
		case 156:
			return joaat("a_m_y_stwhi_01");
			break;
		
		case 157:
			return joaat("a_m_y_musclbeac_01");
			break;
		
		case 158:
			return joaat("a_m_y_musclbeac_02");
			break;
		
		case 159:
			return joaat("a_f_m_bodybuild_01");
			break;
		
		case 160:
			if (iParam1 == 0)
			{
				return joaat("a_m_y_yoga_01");
			}
			else
			{
				return joaat("a_f_y_yoga_01");
			}
			break;
		
		case 161:
			return joaat("a_m_y_surfer_01");
			break;
		
		case 162:
			return joaat("a_f_y_skater_01");
			break;
		
		case 163:
			return joaat("a_m_m_skater_01");
			break;
		
		case 164:
			return joaat("a_m_y_skater_01");
			break;
		
		case 165:
			return joaat("a_m_y_skater_02");
			break;
		
		case 166:
			return joaat("a_m_y_beachvesp_01");
			break;
		
		case 167:
			return joaat("a_m_y_stwhi_02");
			break;
		
		case 168:
			return joaat("a_m_y_runner_01");
			break;
		
		case 169:
			return joaat("a_m_y_runner_02");
			break;
		
		case 170:
			return joaat("a_f_y_runner_01");
			break;
		
		case 171:
			return joaat("a_m_y_cyclist_01");
			break;
		
		case 172:
			return joaat("a_m_y_roadcyc_01");
			break;
		
		case 173:
			return joaat("a_m_y_motox_01");
			break;
		
		case 174:
			return joaat("a_m_y_motox_02");
			break;
		
		case 175:
			if (iParam1 == 0)
			{
				return joaat("a_m_m_tennis_01");
			}
			else
			{
				return joaat("a_f_y_tennis_01");
			}
			break;
		
		case 176:
			return joaat("a_m_y_golfer_01");
			break;
		
		case 177:
			return joaat("a_m_m_golfer_01");
			break;
		
		case 178:
			return joaat("a_f_y_golfer_01");
			break;
		
		case 179:
			return joaat("g_m_m_chiboss_01");
			break;
		
		case 180:
			return joaat("g_m_m_chigoon_01");
			break;
		
		case 181:
			return joaat("g_m_m_chigoon_02");
			break;
		
		case 182:
			return joaat("g_m_m_korboss_01");
			break;
		
		case 183:
			return joaat("g_m_y_korlieut_01");
			break;
		
		case 184:
			return joaat("g_m_y_korean_01");
			break;
		
		case 185:
			return joaat("g_f_y_vagos_01");
			break;
		
		case 186:
			return joaat("a_m_y_epsilon_01");
			break;
		
		case 187:
			return joaat("a_m_y_epsilon_02");
			break;
		
		case 188:
			return joaat("a_f_y_epsilon_01");
			break;
		
		case 189:
			return joaat("a_f_y_eastsa_03");
			break;
		
		case 190:
			return joaat("g_m_m_mexboss_01");
			break;
		
		case 191:
			return joaat("g_m_m_mexboss_02");
			break;
		
		case 192:
			return joaat("g_m_y_azteca_01");
			break;
		
		case 193:
			return joaat("g_m_y_mexgoon_03");
			break;
		
		case 194:
			return joaat("g_m_y_salvaboss_01");
			break;
		
		case 195:
			return joaat("g_m_y_salvagoon_01");
			break;
		
		case 196:
			return joaat("g_m_y_salvagoon_02");
			break;
		
		case 197:
			return joaat("g_m_m_armboss_01");
			break;
		
		case 198:
			return joaat("g_m_m_armgoon_01");
			break;
		
		case 199:
			return joaat("g_m_m_armlieut_01");
			break;
		
		case 200:
			return joaat("g_m_y_lost_01");
			break;
		
		case 201:
			return joaat("g_m_y_lost_02");
			break;
		
		case 202:
			return joaat("g_m_y_lost_03");
			break;
		
		case 203:
			return joaat("g_f_y_lost_01");
			break;
		
		case 204:
			return joaat("g_m_y_ballaeast_01");
			break;
		
		case 205:
			return joaat("g_m_y_ballaorig_01");
			break;
		
		case 206:
			return joaat("a_m_m_og_boss_01");
			break;
		
		case 207:
			return joaat("g_m_y_ballasout_01");
			break;
		
		case 208:
			return joaat("g_m_y_famca_01");
			break;
		
		case 209:
			return joaat("g_m_y_famdnf_01");
			break;
		
		case 210:
			return joaat("g_m_y_famfor_01");
			break;
		
		case 211:
			return joaat("a_f_m_fatcult_01");
			break;
		
		case 212:
			return joaat("a_m_y_acult_02");
			break;
		
		case 213:
			return joaat("a_m_o_acult_01");
			break;
		
		case 214:
			return joaat("a_m_o_acult_02");
			break;
		
		case 218:
			return joaat("s_m_m_movspace_01");
			break;
		
		case 219:
			return joaat("u_m_m_spyactor");
			break;
		
		case 220:
			return joaat("u_f_m_corpse_01");
			break;
		
		case 221:
			return joaat("u_m_y_pogo_01");
			break;
		
		case 222:
			return joaat("u_m_y_rsranger_01");
			break;
		
		case 223:
			return joaat("s_m_m_movalien_01");
			break;
		
		case 224:
			return joaat("s_m_y_clown_01");
			break;
		
		case 225:
			return joaat("s_m_y_mime");
			break;
		
		case 226:
			return joaat("s_m_m_strperf_01");
			break;
		
		case 227:
			return joaat("s_m_m_pilot_02");
			break;
		
		case 228:
			return joaat("s_m_y_pilot_01");
			break;
		
		case 229:
			return joaat("s_m_m_marine_02");
			break;
		
		case 230:
			return joaat("s_m_m_marine_01");
			break;
		
		case 231:
			return joaat("s_m_y_marine_01");
			break;
		
		case 232:
			return joaat("s_m_y_marine_02");
			break;
		
		case 233:
			return joaat("s_m_y_marine_03");
			break;
		
		case 234:
			return joaat("s_m_y_armymech_01");
			break;
		
		case 235:
			return joaat("s_m_y_blackops_01");
			break;
		
		case 236:
			return joaat("s_m_y_blackops_02");
			break;
		
		case 237:
			return joaat("s_m_m_chemsec_01");
			break;
	}
	switch (iParam0)
	{
		case 238:
			return joaat("a_m_m_farmer_01");
			break;
		
		case 239:
			if (iParam1 == 0)
			{
				return joaat("s_m_m_migrant_01");
			}
			else
			{
				return joaat("s_f_y_migrant_01");
			}
			break;
		
		case 240:
			return joaat("s_m_y_construct_01");
			break;
		
		case 241:
			return joaat("s_m_y_construct_02");
			break;
		
		case 242:
			return joaat("s_m_m_lathandy_01");
			break;
		
		case 243:
			return joaat("s_m_y_garbage");
			break;
		
		case 244:
			if (iParam1 == 0)
			{
				return joaat("s_m_y_factory_01");
			}
			else
			{
				return joaat("s_f_y_factory_01");
			}
			break;
		
		case 92:
			return joaat("s_f_m_maid_01");
			break;
		
		case 245:
			return joaat("s_m_m_gardener_01");
			break;
		
		case 246:
			return joaat("s_m_m_janitor");
			break;
		
		case 247:
			return joaat("s_m_m_dockwork_01");
			break;
		
		case 248:
			return joaat("s_m_y_dockwork_01");
			break;
		
		case 249:
			return joaat("s_m_y_xmech_01");
			break;
		
		case 250:
			return joaat("s_m_y_xmech_02");
			break;
		
		case 251:
			return joaat("s_m_y_pestcont_01");
			break;
		
		case 252:
			return joaat("s_m_y_fireman_01");
			break;
		
		case 253:
			if (iParam1 == 0)
			{
				return joaat("s_m_y_cop_01");
			}
			else
			{
				return joaat("s_f_y_cop_01");
			}
			break;
		
		case 254:
			return joaat("s_m_m_fiboffice_01");
			break;
		
		case 255:
			return joaat("s_m_y_swat_01");
			break;
		
		case 256:
			return joaat("s_m_m_chemsec_01");
			break;
		
		case 257:
			return joaat("s_m_m_ciasec_01");
			break;
		
		case 258:
			return joaat("s_m_y_hwaycop_01");
			break;
		
		case 259:
			return joaat("s_m_m_paramedic_01");
			break;
		
		case 260:
			return joaat("s_m_y_uscg_01");
			break;
		
		case 261:
			return joaat("s_f_y_ranger_01");
			break;
		
		case 262:
			if (iParam1 == 0)
			{
				return joaat("s_m_y_baywatch_01");
			}
			else
			{
				return joaat("s_f_y_baywatch_01");
			}
			break;
		
		case 263:
			return joaat("s_f_y_sheriff_01");
			break;
		
		case 264:
			return joaat("s_m_m_armoured_01");
			break;
		
		case 265:
			return joaat("s_m_m_armoured_02");
			break;
		
		case 266:
			return joaat("s_m_y_airworker");
			break;
		
		case 267:
			return joaat("s_m_m_postal_01");
			break;
		
		case 268:
			return joaat("s_m_m_postal_02");
			break;
		
		case 269:
			return joaat("s_m_m_ups_01");
			break;
		
		case 270:
			return joaat("s_m_m_ups_02");
			break;
		
		case 271:
			return joaat("s_m_m_lsmetro_01");
			break;
		
		case 272:
			return joaat("s_m_m_trucker_01");
			break;
		
		case 273:
			return joaat("player_one");
			break;
		
		case 274:
			return joaat("player_two");
			break;
		
		case 275:
			return joaat("player_zero");
			break;
		
		case 276:
			return joaat("ig_amandatownley");
			break;
		
		case 277:
			return joaat("ig_beverly");
			break;
		
		case 278:
			return joaat("ig_brad");
			break;
		
		case 279:
			return joaat("ig_chrisformage");
			break;
		
		case 280:
			return joaat("ig_davenorton");
			break;
		
		case 281:
			return joaat("ig_devin");
			break;
		
		case 282:
			return joaat("ig_drfriedlander");
			break;
		
		case 283:
			return joaat("ig_fabien");
			break;
		
		case 284:
			return joaat("ig_floyd");
			break;
		
		case 285:
			return joaat("ig_jimmydisanto");
			break;
		
		case 286:
			return joaat("ig_lamardavis");
			break;
		
		case 287:
			return joaat("ig_lazlow");
			break;
		
		case 288:
			return joaat("ig_lestercrest");
			break;
		
		case 289:
			return joaat("ig_maude");
			break;
		
		case 290:
			return joaat("ig_mrs_thornhill");
			break;
		
		case 291:
			return joaat("ig_nervousron");
			break;
		
		case 292:
			return joaat("ig_patricia");
			break;
		
		case 293:
			return joaat("ig_siemonyetarian");
			break;
		
		case 294:
			return joaat("ig_solomon");
			break;
		
		case 295:
			return joaat("ig_stevehains");
			break;
		
		case 296:
			return joaat("ig_stretch");
			break;
		
		case 297:
			return joaat("ig_tanisha");
			break;
		
		case 298:
			return joaat("ig_taocheng");
			break;
		
		case 299:
			return joaat("ig_tracydisanto");
			break;
		
		case 300:
			return joaat("ig_wade");
			break;
		
		case 301:
			return joaat("u_m_y_hippie_01");
			break;
		
		case 302:
			return joaat("u_m_y_baygor");
			break;
		
		case 303:
			return joaat("u_m_o_finguru_01");
			break;
		
		case 304:
			return joaat("u_m_y_militarybum");
			break;
		
		case 305:
			return joaat("u_m_m_griff_01");
			break;
		
		case 306:
			return joaat("u_f_y_comjane");
			break;
		
		case 307:
			return joaat("s_m_m_strpreach_01");
			break;
		
		case 308:
			return joaat("u_m_m_jesus_01");
			break;
		
		case 309:
			return joaat("u_m_y_mani");
			break;
		
		case 310:
			return joaat("s_m_y_mime");
			break;
		
		case 311:
			return joaat("u_f_o_moviestar");
			break;
		
		case 312:
			return joaat("u_m_y_imporage");
			break;
		
		case 313:
			return joaat("u_m_y_zombie_01");
			break;
		
		case 314:
			iLocal_7745 = 1;
			return func_747(1);
			break;
		
		case 315:
			iLocal_7745 = 2;
			return func_747(2);
			break;
		
		case 316:
			iLocal_7745 = 10;
			return func_747(10);
			break;
		
		case 317:
			iLocal_7745 = 11;
			return func_747(11);
			break;
		
		case 318:
			iLocal_7745 = 3;
			return func_747(3);
			break;
		
		case 319:
			iLocal_7745 = 4;
			return func_747(4);
			break;
		
		case 320:
			iLocal_7745 = 5;
			return func_747(5);
			break;
		
		case 321:
			iLocal_7745 = 6;
			return func_747(6);
			break;
		
		case 322:
			iLocal_7745 = 7;
			return func_747(7);
			break;
		
		case 323:
			iLocal_7745 = 12;
			return func_747(12);
			break;
		
		case 324:
			iLocal_7745 = 8;
			return func_747(8);
			break;
		
		case 325:
			iLocal_7745 = 13;
			return func_747(13);
			break;
		
		case 326:
			iLocal_7745 = 9;
			return func_747(9);
			break;
		
		case 327:
			return func_746(0);
			break;
		
		case 328:
			return func_746(1);
			break;
		
		case 430:
			func_744(iParam4, &uVar0, uParam3, joaat("a_c_boar"), 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 431:
			func_744(iParam4, &uVar0, uParam3, 1462895032, 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 432:
			func_744(iParam4, &uVar0, uParam3, joaat("a_c_cow"), 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 433:
			func_744(iParam4, &uVar0, uParam3, joaat("a_c_coyote"), 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 434:
			func_744(iParam4, &uVar0, uParam3, joaat("a_c_deer"), 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 435:
			func_744(iParam4, &uVar0, uParam3, joaat("a_c_husky"), 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 436:
			func_744(iParam4, &uVar0, uParam3, joaat("a_c_mtlion"), 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 437:
			func_744(iParam4, &uVar0, uParam3, joaat("a_c_pig"), 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 438:
			func_744(iParam4, &uVar0, uParam3, 1125994524, 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 439:
			func_744(iParam4, &uVar0, uParam3, 1832265812, 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 440:
			func_744(iParam4, &uVar0, uParam3, -541762431, 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 441:
			func_744(iParam4, &uVar0, uParam3, joaat("a_c_retriever"), 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 442:
			func_744(iParam4, &uVar0, uParam3, joaat("a_c_rottweiler"), 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 443:
			func_744(iParam4, &uVar0, uParam3, joaat("a_c_shepherd"), 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 444:
			func_744(iParam4, &uVar0, uParam3, -1384627013, 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 445:
			func_744(iParam4, &uVar0, uParam3, joaat("a_c_chickenhawk"), 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 446:
			func_744(iParam4, &uVar0, uParam3, joaat("a_c_cormorant"), 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 447:
			func_744(iParam4, &uVar0, uParam3, joaat("a_c_crow"), 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 448:
			func_744(iParam4, &uVar0, uParam3, joaat("a_c_hen"), 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 449:
			func_744(iParam4, &uVar0, uParam3, joaat("a_c_pigeon"), 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 450:
			func_744(iParam4, &uVar0, uParam3, joaat("a_c_seagull"), 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case 451:
			func_744(iParam4, &uVar0, uParam3, joaat("ig_orleans"), 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
	}
	return uVar0;
}

void func_744(int iParam0, var uParam1, var uParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12)//Position - 0x7EF40
{
	int iVar0;
	
	iVar0 = 0;
	func_745(iParam0, &iVar0, uParam2, 2, 2, uParam1, iParam3, iParam4, iParam5, iParam6, iParam7, iParam8, iParam9, iParam10, iParam11, iParam12, 0, 0);
}

void func_745(int iParam0, int iParam1, var uParam2, int iParam3, int iParam4, var uParam5, var uParam6, var uParam7, var uParam8, var uParam9, var uParam10, var uParam11, var uParam12, var uParam13, var uParam14, var uParam15, int iParam16, int iParam17)//Position - 0x7EF6F
{
	int iVar0[12];
	int iVar13;
	
	if (iParam3 == iParam4)
	{
		iVar0[0] = uParam6;
		iVar0[1] = uParam7;
		iVar0[2] = uParam8;
		iVar0[3] = uParam9;
		iVar0[4] = uParam10;
		iVar0[5] = uParam11;
		iVar0[6] = uParam12;
		iVar0[7] = uParam13;
		iVar0[8] = uParam14;
		iVar0[9] = uParam15;
		iVar0[10] = iParam16;
		iVar0[11] = iParam17;
		*uParam2 = 0;
		iVar13 = 0;
		while (iVar13 <= (iVar0 - 1))
		{
			*uParam2 = iVar13 + 1;
			if (iVar0[iVar13] == 0)
			{
				*uParam2 = iVar13;
				iVar13 = iVar0;
			}
			iVar13++;
		}
		if (*iParam1 >= *uParam2)
		{
			*iParam1 = 0;
		}
		if (*iParam1 < 0)
		{
			*iParam1 = (*uParam2 - 1);
		}
		if (iParam0 != 0)
		{
			iVar13 = 0;
			while (iVar13 <= (iVar0 - 1))
			{
				if (iParam0 == iVar0[iVar13])
				{
					*uParam2 = iVar13;
				}
				iVar13++;
			}
		}
		*uParam5 = iVar0[*iParam1];
	}
}

int func_746(int iParam0)//Position - 0x7F060
{
	if (Local_7925[iParam0 /*401*/].f_399 == 0)
	{
		if (iParam0 != -1)
		{
			switch (func_688(386, iParam0))
			{
				case 0:
					Local_7925[iParam0 /*401*/].f_399 = joaat("mp_m_freemode_01");
					return joaat("mp_m_freemode_01");
					break;
				
				case 1:
					Local_7925[iParam0 /*401*/].f_399 = joaat("mp_f_freemode_01");
					return joaat("mp_f_freemode_01");
					break;
				
				default:
					break;
			}
		}
	}
	else
	{
		return Local_7925[iParam0 /*401*/].f_399;
	}
	return 0;
}

var func_747(int iParam0)//Position - 0x7F0E5
{
	return Global_87518[iParam0 /*5*/].f_4;
}

void func_748()//Position - 0x7F0F7
{
	struct<13> Var0[1];
	int iVar14;
	
	if (!iLocal_7602)
	{
		if (ui::_0x2309595AD6145265() == -2060115030)
		{
			Var0[0 /*13*/] = { func_677() };
			if (network::network_is_signed_online())
			{
				iVar14 = gameplay::get_game_timer();
				while ((!func_750(&Var0) && network::network_is_signed_online()) && (gameplay::get_game_timer() - iVar14) < 10000)
				{
					func_749(1, "while waiting for stats");
					system::wait(0);
				}
				iLocal_7602 = 1;
			}
		}
	}
}

void func_749(int iParam0, char* sParam1)//Position - 0x7F16C
{
	sParam1 = sParam1;
	if (iParam0)
	{
		if (cam::is_screen_faded_out())
		{
			if (!ui::_0xB2A592B04648A9CB() && !iLocal_7571)
			{
				ui::_set_loading_prompt_text_entry("");
				ui::_show_loading_prompt(2);
				iLocal_7571 = 1;
			}
		}
	}
	else if (iLocal_7571)
	{
		if (cam::is_screen_faded_in() || cam::is_screen_fading_in())
		{
			ui::_remove_loading_prompt();
			iLocal_7571 = 0;
		}
	}
}

bool func_750(var uParam0)//Position - 0x7F1C8
{
	if (!iLocal_7601)
	{
		if (network::fillout_pm_player_list(uParam0, 1, 106))
		{
			network::using_network_weapontype(106);
			iLocal_7601 = 1;
		}
		else
		{
			return false;
		}
	}
	else if (network::using_network_weapontype(106))
	{
		if (network::_0x44B37CDCAE765AAE(106, uParam0[0 /*13*/]))
		{
			network::_0x796A87B3B68D1F3D(uParam0[0 /*13*/]);
			iLocal_7750 = true;
			return true;
		}
		else
		{
			return false;
		}
	}
	return false;
}

bool func_751(var uParam0, int iParam1)//Position - 0x7F22C
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = iParam1;
	iVar1 = iLocal_9710;
	if (iVar1 > 1)
	{
		iVar1 = 1;
	}
	if (iVar1 < -1)
	{
		iVar1 = -1;
	}
	if (iVar1 == 0)
	{
		iVar1 = 1;
	}
	iVar2 = true;
	while (iVar2)
	{
		if (Local_6565[iVar0 /*5*/] != 0 && (Local_6565[iVar0 /*5*/] != 1 || iParam1 != 0))
		{
			*uParam0 = iVar0;
			return true;
		}
		iVar0 = (iVar0 + iVar1);
		if (iVar0 >= iLocal_6560)
		{
			iVar0 = 0;
		}
		if (iVar0 < 0)
		{
			iVar0 = (iLocal_6560 - 1);
		}
		if (iVar0 == iParam1)
		{
			iVar2 = false;
		}
	}
	return false;
}

void func_752()//Position - 0x7F2BA
{
	if (streaming::is_model_valid(iLocal_7755))
	{
		streaming::set_model_as_no_longer_needed(iLocal_7755);
	}
	if (streaming::is_model_valid(iLocal_7754))
	{
		streaming::set_model_as_no_longer_needed(iLocal_7754);
	}
}

void func_753(int iParam0)//Position - 0x7F2E4
{
	iLocal_7752 = 1;
	iLocal_7745 = 0;
	if (iParam0)
	{
		iLocal_6806 = 0;
	}
	else
	{
		iLocal_7746 = 0;
	}
}

bool func_754()//Position - 0x7F304
{
	if (iLocal_6555 == 3)
	{
		if ((iLocal_6564 > 3 && Local_6565[iLocal_6561 /*5*/] != 1) && Local_6565[iLocal_6561 /*5*/] != 0)
		{
			if (((iLocal_6564 == 7 && func_105(iLocal_6561)) || (iLocal_6564 == 8 && func_105(iLocal_6561 + 10))) || ((iLocal_6564 != 7 && iLocal_6564 != 8) && (iLocal_6808 != Local_6565[iLocal_6561 /*5*/] || iLocal_6809 != Local_6565[iLocal_6561 /*5*/].f_1)))
			{
				if (Local_6565[iLocal_6561 /*5*/] > 81)
				{
					iLocal_6808 = Local_6565[iLocal_6561 /*5*/];
					iLocal_6809 = Local_6565[iLocal_6561 /*5*/].f_1;
					return true;
				}
			}
		}
	}
	return false;
}

void func_755()//Position - 0x7F3CC
{
	vector3 vVar0;
	vector3 vVar3;
	int iVar6;
	int iVar7;
	int iVar8;
	float fVar9;
	float fVar10;
	float fVar11;
	float fVar12;
	float fVar13;
	vector3 vVar14;
	vector3 vVar17;
	int iVar20;
	char cVar21[64];
	int iVar37;
	
	iVar7 = 0;
	iVar8 = 100;
	func_775();
	switch (iLocal_6550)
	{
		case 1:
			if (!cam::is_screen_fading_out() && !cam::is_screen_faded_out())
			{
				cam::do_screen_fade_out(500);
			}
			if (cam::is_screen_faded_out())
			{
				func_774(2);
			}
			break;
		
		case 3:
			if (!streaming::is_new_load_scene_active())
			{
				streaming::new_load_scene_start(-12.4578f, 0.5969f, 499.5298f, func_773(4.0059f, 0f, 150.3755f), 30f, 0);
				iLocal_7607 = 1;
			}
			else if (iLocal_7607)
			{
				if (streaming::is_new_load_scene_loaded())
				{
					iLocal_7607 = 0;
					if (streaming::is_new_load_scene_active())
					{
						streaming::new_load_scene_stop();
					}
					if (cam::does_cam_exist(iLocal_7591))
					{
						cam::destroy_cam(iLocal_7591, 0);
					}
					if (cam::does_cam_exist(iLocal_7592))
					{
						cam::destroy_cam(iLocal_7592, 0);
					}
					iLocal_7592 = cam::create_cam("DEFAULT_SCRIPTED_CAMERA", false);
					cam::set_cam_coord(iLocal_7592, -12.4578f, 0.5969f, 499.5298f);
					iLocal_7591 = cam::create_cam("DEFAULT_SPLINE_CAMERA", true);
					cam::_0x7DD234D6F3914C5B(iLocal_7591, 1.6f);
					cam::_0xC669EEA5D031B7DE(iLocal_7591, -2.5f);
					cam::_0x2C654B4943BDDF7C(iLocal_7591, 0f);
					cam::add_cam_spline_node(iLocal_7591, -12.4578f, 0.5969f, 499.5298f, 4.0059f, 0f, 150.3755f, 50000, 3, 2);
					cam::add_cam_spline_node(iLocal_7591, -12.4578f, 0.5969f, 499.5298f, 4.0059f, 0f, 150.3755f, 50000, 3, 2);
					cam::set_cam_fov(iLocal_7591, 25f);
					cam::_0xD1B0F412F109EA5D(iLocal_7591, 3);
					cam::render_script_cams(true, false, 3000, 1, 0, 0);
					func_774(4);
					iLocal_6551 = gameplay::get_game_timer() + 200;
				}
			}
			else
			{
				while (streaming::is_new_load_scene_active() && iVar7 < iVar8)
				{
					streaming::new_load_scene_stop();
					iVar7++;
					system::wait(20);
				}
				if (iVar7 > iVar8)
				{
				}
				streaming::new_load_scene_start(-12.4578f, 0.5969f, 499.5298f, func_773(4.0059f, 0f, 150.3755f), 30f, 0);
				iLocal_7607 = 1;
			}
			break;
		
		case 4:
			if (gameplay::get_game_timer() > iLocal_6551)
			{
				func_774(5);
				iLocal_6551 = gameplay::get_game_timer() + 250;
			}
			break;
		
		case 5:
			func_749(0, " coming into trailer screne");
			if (!cam::is_screen_fading_in() || cam::is_screen_faded_out())
			{
				cam::do_screen_fade_in(500);
			}
			if (gameplay::get_game_timer() > iLocal_6551)
			{
				if (func_46(entity::get_entity_model(player::player_ped_id())))
				{
					if (func_719(entity::get_entity_model(player::player_ped_id())))
					{
						func_774(18);
					}
					else
					{
						func_774(19);
					}
					iLocal_6552 = false;
				}
				else
				{
					iLocal_6552 = true;
					func_774(22);
				}
				iLocal_7593 = 4000;
			}
			break;
		
		case 22:
			iLocal_7594 = 0;
			vVar0 = { cam::get_cam_coord(cam::get_rendering_cam()) };
			vVar3 = { cam::get_cam_rot(cam::get_rendering_cam(), 2) };
			fLocal_7653 = cam::get_cam_fov(cam::get_rendering_cam());
			func_772(0);
			if (cam::does_cam_exist(iLocal_7591))
			{
				cam::destroy_cam(iLocal_7591, 0);
			}
			iLocal_7591 = cam::create_cam("DEFAULT_SPLINE_CAMERA", true);
			cam::_0x7DD234D6F3914C5B(iLocal_7591, 1.6f);
			cam::_0xC669EEA5D031B7DE(iLocal_7591, -2.5f);
			cam::_0x2C654B4943BDDF7C(iLocal_7591, 0f);
			cam::set_cam_fov(iLocal_7591, fLocal_7653);
			if (iLocal_6555 != 2)
			{
				iLocal_7593 = func_771(vVar0, -14.6119f, -3.3614f, 499.845f, fLocal_7653);
			}
			else
			{
				iLocal_7593 = 4000;
			}
			cam::add_cam_spline_node(iLocal_7591, vVar0, vVar3, iLocal_7593, 3, 2);
			cam::add_cam_spline_node(iLocal_7591, -14.6119f, -3.3614f, 499.845f, 4.0059f, 0f, 151.7677f, iLocal_7593, 3, 2);
			cam::_0xD1B0F412F109EA5D(iLocal_7591, 3);
			cam::shake_cam(iLocal_7591, "HAND_SHAKE", 0.15f);
			func_774(10);
			break;
		
		case 18:
			iLocal_7594 = 0;
			vVar0 = { cam::get_cam_coord(cam::get_rendering_cam()) };
			vVar3 = { cam::get_cam_rot(cam::get_rendering_cam(), 2) };
			fLocal_7653 = cam::get_cam_fov(cam::get_rendering_cam());
			fLocal_7654 = cam::get_cam_far_dof(cam::get_rendering_cam());
			func_772(0);
			if (cam::does_cam_exist(iLocal_7591))
			{
				cam::destroy_cam(iLocal_7591, 0);
			}
			iLocal_7591 = cam::create_cam("DEFAULT_SPLINE_CAMERA", true);
			cam::_0x7DD234D6F3914C5B(iLocal_7591, 1.6f);
			cam::_0xC669EEA5D031B7DE(iLocal_7591, -2.5f);
			cam::_0x2C654B4943BDDF7C(iLocal_7591, 0f);
			cam::set_cam_fov(iLocal_7591, fLocal_7653);
			if (iLocal_6555 != 2)
			{
				iLocal_7593 = func_771(vVar0, vLocal_7612, fLocal_7653);
			}
			else
			{
				iLocal_7593 = 4000;
			}
			cam::add_cam_spline_node(iLocal_7591, vVar0, vVar3, iLocal_7593, 3, 2);
			cam::add_cam_spline_node(iLocal_7591, vLocal_7612, vLocal_7615, iLocal_7593, 3, 2);
			cam::_0xD1B0F412F109EA5D(iLocal_7591, 3);
			cam::shake_cam(iLocal_7591, "HAND_SHAKE", 0.15f);
			func_774(6);
			break;
		
		case 19:
			iLocal_7594 = 0;
			vVar0 = { cam::get_cam_coord(cam::get_rendering_cam()) };
			vVar3 = { cam::get_cam_rot(cam::get_rendering_cam(), 2) };
			fLocal_7653 = cam::get_cam_fov(cam::get_rendering_cam());
			fLocal_7654 = cam::get_cam_far_dof(cam::get_rendering_cam());
			func_772(0);
			if (cam::does_cam_exist(iLocal_7591))
			{
				cam::destroy_cam(iLocal_7591, 0);
			}
			iLocal_7591 = cam::create_cam("DEFAULT_SPLINE_CAMERA", true);
			cam::_0x7DD234D6F3914C5B(iLocal_7591, 1.6f);
			cam::_0xC669EEA5D031B7DE(iLocal_7591, -2.5f);
			cam::_0x2C654B4943BDDF7C(iLocal_7591, 0f);
			cam::set_cam_fov(iLocal_7591, fLocal_7653);
			if (iLocal_6555 != 2)
			{
				iLocal_7593 = func_771(vVar0, vLocal_7618, fLocal_7653);
			}
			else
			{
				iLocal_7593 = 4000;
			}
			cam::add_cam_spline_node(iLocal_7591, vVar0, vVar3, iLocal_7593, 3, 2);
			cam::add_cam_spline_node(iLocal_7591, vLocal_7618, vLocal_7621, iLocal_7593, 3, 2);
			cam::_0xD1B0F412F109EA5D(iLocal_7591, 3);
			cam::shake_cam(iLocal_7591, "HAND_SHAKE", 0.15f);
			func_774(7);
			break;
		
		case 6:
			if (cam::does_cam_exist(iLocal_7591))
			{
				if (cam::get_cam_spline_phase(iLocal_7591) >= 1f)
				{
					cam::stop_cam_shaking(iLocal_7591, 0);
					cam::set_cam_fov(iLocal_7591, 25f);
					func_774(21);
				}
				else
				{
					fVar9 = (fLocal_7653 + ((25f - fLocal_7653) * cam::get_cam_spline_phase(iLocal_7591)));
					fVar10 = (fLocal_7654 + ((10f - fLocal_7654) * cam::get_cam_spline_phase(iLocal_7591)));
					cam::set_cam_fov(iLocal_7591, fVar9);
					cam::_0x7DD234D6F3914C5B(iLocal_7591, fVar10);
				}
			}
			break;
		
		case 7:
			if (cam::does_cam_exist(iLocal_7591))
			{
				if (cam::get_cam_spline_phase(iLocal_7591) >= 1f)
				{
					cam::stop_cam_shaking(iLocal_7591, 0);
					cam::set_cam_fov(iLocal_7591, 25f);
					func_774(20);
				}
				else
				{
					fVar11 = (fLocal_7653 + ((25f - fLocal_7653) * cam::get_cam_spline_phase(iLocal_7591)));
					fVar12 = (fLocal_7654 + ((10f - fLocal_7654) * cam::get_cam_spline_phase(iLocal_7591)));
					cam::set_cam_fov(iLocal_7591, fVar11);
					cam::_0x7DD234D6F3914C5B(iLocal_7591, fVar12);
				}
			}
			break;
		
		case 8:
		case 11:
			if (cam::does_cam_exist(iLocal_7591))
			{
				if (cam::get_cam_spline_phase(iLocal_7591) >= 1f)
				{
					cam::stop_cam_shaking(iLocal_7591, 0);
					cam::set_cam_fov(iLocal_7591, 25f);
					func_774(9);
					iLocal_6552 = false;
				}
				else
				{
					fVar13 = (fLocal_7653 + ((25f - fLocal_7653) * cam::get_cam_spline_phase(iLocal_7591)));
					cam::set_cam_fov(iLocal_7591, fVar13);
				}
			}
			break;
		
		case 20:
		case 9:
		case 21:
			if (!func_770())
			{
				func_772(1);
				if (func_737() == 9)
				{
					func_769(-14.6119f, -3.3614f, 499.845f, 4.0059f, 0f, 151.7677f, 25f);
					func_768(vLocal_7624, vLocal_7627, 16.209f);
				}
				else
				{
					if (func_737() == 20)
					{
						func_769(vLocal_7618, vLocal_7621, 25f);
					}
					else
					{
						func_769(vLocal_7612, vLocal_7615, 25f);
					}
					func_767(Local_6565[iLocal_6561 /*5*/]);
				}
			}
			else if (Local_6565[iLocal_6561 /*5*/] != iLocal_7664 && func_766(Local_6565[iLocal_6561 /*5*/]))
			{
				iLocal_7664 = Local_6565[iLocal_6561 /*5*/];
				func_769(cam::get_cam_coord(cam::get_rendering_cam()), cam::get_cam_rot(cam::get_rendering_cam(), 2), cam::get_cam_fov(cam::get_rendering_cam()));
				func_767(iLocal_7664);
				fLocal_7636 = 0f;
			}
			iLocal_7594 = 1;
			break;
		
		case 10:
			if (iLocal_6552)
			{
				if (cam::does_cam_exist(iLocal_7591))
				{
					if (cam::get_cam_spline_phase(iLocal_7591) > 0.3f)
					{
						func_774(11);
					}
				}
			}
			else
			{
				func_774(8);
			}
			break;
		
		case 12:
			func_772(0);
			iLocal_7594 = 0;
			if (streaming::has_anim_dict_loaded("director@character_select_intro@male") && streaming::has_anim_dict_loaded("director@character_select_intro@female"))
			{
				if (!ped::is_ped_injured(player::player_ped_id()))
				{
					vVar17 = { -20.002f, -10.778f, 500.615f };
					vVar14 = { 0f, 0f, -56.16f };
					iVar20 = ped::create_synchronized_scene(vVar17, vVar14, 2);
					StringCopy(&cVar21, func_765(iLocal_6564, iLocal_6561), 64);
					if (func_664(0))
					{
						ai::task_synchronized_scene(player::player_ped_id(), iVar20, "director@character_select_intro@male", &cVar21, 1.5f, -16f, 0, 0, 2f, 0);
					}
					else
					{
						ai::task_synchronized_scene(player::player_ped_id(), iVar20, "director@character_select_intro@female", &cVar21, 1.5f, -16f, 0, 0, 2f, 0);
					}
				}
				iLocal_7600 = gameplay::get_game_timer() + 2600;
				func_774(13);
			}
			break;
		
		case 13:
			func_772(0);
			if (gameplay::get_game_timer() > iLocal_7600)
			{
				if (!cam::is_screen_fading_out() && !cam::is_screen_faded_out())
				{
					cam::do_screen_fade_out(500);
				}
				func_749(1, "when entering play mode");
				if (cam::is_screen_faded_out() && func_732(0))
				{
					iLocal_7594 = 0;
					ui::display_hud(true);
					cam::render_script_cams(false, false, 3000, 1, 0, 0);
					if (cam::does_cam_exist(iLocal_7591))
					{
						cam::destroy_cam(iLocal_7591, 0);
					}
					entity::set_entity_invincible(player::player_ped_id(), true);
					if (vLocal_7701.y < 0f)
					{
						vLocal_7701.z = 0.05f;
						iVar37 = false;
					}
					else
					{
						iVar37 = true;
					}
					func_722(vLocal_7701, fLocal_7707, 0, iVar37, 12000);
					if ((((gameplay::is_bit_set(iLocal_9772, 5) || gameplay::is_bit_set(iLocal_9772, 3)) || gameplay::is_bit_set(iLocal_9772, 4)) || gameplay::is_bit_set(iLocal_9772, 10)) || gameplay::is_bit_set(iLocal_9772, 1))
					{
						vLocal_7701 = { func_728(entity::get_entity_coords(player::player_ped_id(), 1), 1, 1, 0, 0) };
						if (gameplay::get_distance_between_coords(vLocal_7701, entity::get_entity_coords(player::player_ped_id(), 1), 1) < 1f)
						{
							vLocal_7701 = { func_728(entity::get_entity_coords(player::player_ped_id(), 1), 1, 0, 0, 0) };
						}
						while (player::is_player_teleport_active())
						{
							player::stop_player_teleport();
							system::wait(0);
						}
						func_722(vLocal_7701, fLocal_7707, 0, 1, 12000);
					}
					else
					{
						vLocal_7701 = { ped::get_ped_bone_coords(player::player_ped_id(), 14201, 0f, 0f, 0f) };
					}
					vLocal_7704 = { func_728(vLocal_7701, 0, 1, 0, 0) };
					iLocal_9765 = 0;
					iLocal_9764 = 0;
					iLocal_9762 = 0;
					func_774(14);
				}
			}
			break;
		
		case 14:
			if (func_721(vLocal_7701, entity::get_entity_model(player::player_ped_id()), vLocal_7704, fLocal_7707, &uLocal_7923, &uLocal_7924, 1, 0, 0))
			{
				ped::_0xC2EE020F5FB4DB53(player::player_ped_id());
				ped::set_ped_can_ragdoll(player::player_ped_id(), 1);
				player::set_player_control(player::player_id(), true, 0);
				if (player::is_player_playing(player::player_id()))
				{
					player::set_player_wanted_level(player::player_id(), 0, 0);
				}
				func_661();
				iVar6 = interior::get_interior_at_coords(vLocal_7704);
				if (iVar6 != 0)
				{
					while (!interior::is_interior_ready(iVar6) && iVar7 < iVar8)
					{
						func_4();
						iVar7++;
						system::wait(20);
					}
				}
				func_764();
				func_756();
				func_19();
				func_774(15);
				cam::do_screen_fade_in(500);
			}
			break;
		
		case 17:
			if (gameplay::get_game_timer() > iLocal_7600)
			{
				cam::do_screen_fade_in(500);
				func_774(15);
			}
			break;
		
		case 15:
			func_749(0, "while in Play mode");
			break;
	}
}

void func_756()//Position - 0x7FF1C
{
	iLocal_9769 = func_763(174);
	if (iLocal_9769 == 1)
	{
		func_757(174, 2, 0, 1, 0);
	}
}

void func_757(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x7FF3E
{
	if (iParam0 != 198)
	{
		if (Global_69521)
		{
			Global_2428549.f_74.f_227[iParam0] = iParam1;
		}
		else
		{
			Global_101186.f_6027.f_227[iParam0] = iParam1;
		}
		Global_32710[iParam0] = iParam2;
		Global_32909[iParam0] = 1;
		func_760(iParam0, iParam3, iParam4, 0);
		func_758(iParam0, iParam1);
	}
}

void func_758(int iParam0, int iParam1)//Position - 0x7FF99
{
	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_759(0, 0);
			}
			else
			{
				func_759(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_759(int iParam0, int iParam1)//Position - 0x8008E
{
	if (iParam1)
	{
		gameplay::set_bit(&Global_99826, iParam0);
	}
	else
	{
		gameplay::clear_bit(&Global_99826, iParam0);
	}
	Global_99825 = 1;
}

int func_760(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x800B7
{
	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_762(&Var3, iParam0);
	if (func_761())
	{
		iVar1 = Global_101186.f_6027.f_227[iParam0];
	}
	else
	{
		iVar1 = Global_2428549.f_74.f_227[iParam0];
	}
	uVar2 = Global_33108[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_32710[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_34304[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_34105[iParam0] = 1;
					Global_34304[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_34304[iParam0] = 1;
					Global_34105[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_34304[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_34304[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_32456[(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_32456[(iParam0 / 32)]), (iParam0 % 32));
					}
					iVar0 = true;
					break;
			}
			if (iVar0)
			{
				Global_32909[iParam0] = 0;
				Global_33108[iParam0] = iVar1;
				if (!func_761())
				{
					if (!Global_33705[iParam0])
					{
						Global_33705[iParam0] = 1;
						Global_33904++;
					}
				}
			}
		}
	}
	return iVar0;
}

bool func_761()//Position - 0x809F9
{
	if ((func_568() == -1 || func_568() == 999) && !func_567() == 0)
	{
		return true;
	}
	return false;
}

bool func_762(var uParam0, int iParam1)//Position - 0x80A29
{
	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;
}

int func_763(int iParam0)//Position - 0x843A9
{
	if (iParam0 != 198)
	{
		if (Global_69521)
		{
			return Global_2428549.f_74.f_227[iParam0];
		}
		else
		{
			return Global_101186.f_6027.f_227[iParam0];
		}
	}
	return 0;
}

void func_764()//Position - 0x843E2
{
	if (!iLocal_9768)
	{
		iLocal_9766 = func_763(147);
		iLocal_9767 = func_763(148);
		iLocal_9768 = 1;
	}
	func_757(147, 0, 0, 1, 0);
	func_757(148, 0, 0, 1, 0);
}

char* func_765(int iParam0, int iParam1)//Position - 0x8441B
{
	if (iParam0 == 7)
	{
		iParam0 = Local_6878[iParam1 /*32*/];
	}
	if (iParam0 == 8)
	{
		iParam0 = Local_6878[iParam1 + 10 /*32*/];
	}
	switch (entity::get_entity_model(player::player_ped_id()))
	{
		case joaat("a_f_m_salton_01"):
		case joaat("a_f_y_tourist_02"):
		case joaat("a_f_y_soucent_01"):
		case joaat("a_f_m_fatbla_01"):
		case joaat("a_f_m_fatwhite_01"):
		case joaat("a_f_m_fatcult_01"):
			return "exit_trailer_female_fat";
			break;
		
		case joaat("a_m_m_hillbilly_01"):
		case joaat("a_m_m_fatlatin_01"):
		case joaat("a_m_m_genfat_01"):
		case joaat("a_m_m_genfat_02"):
			return "exit_trailer_male_fat";
			break;
		
		case joaat("hc_gunman"):
			if (ped::get_ped_drawable_variation(player::player_ped_id(), 9) == 1)
			{
				return "exit_trailer_male_fat";
			}
			break;
	}
	if (func_82())
	{
		return "exit_trailer_male_fat";
	}
	if (iParam1 >= 0)
	{
		switch (Local_6565[iParam1 /*5*/])
		{
			case 148:
				return "exit_trailer_male_gang";
				break;
			
			case 149:
				return "exit_trailer_male_gang";
				break;
			
			case 109:
				return "exit_trailer_female_sexy";
				break;
			
			case 304:
				return "exit_trailer_male_drunk";
				break;
			
			case 309:
				return "exit_trailer_male_drunk";
				break;
			
			case 313:
				return "exit_trailer_male_drunk";
				break;
			
			case 289:
				return "exit_trailer_female_fat";
				break;
			
			case 286:
				return "exit_trailer_male_gang";
				break;
			
			case 296:
				return "exit_trailer_male_gang";
				break;
			
			case 238:
				return "exit_trailer_male_fat";
				break;
			
			case 157:
				return "exit_trailer_male_gang";
				break;
			
			case 158:
				return "exit_trailer_male_gang";
				break;
			}
	}
	switch (iParam0)
	{
		case 38:
			if (func_664(0))
			{
				return "exit_trailer_male_gang";
			}
			break;
		
		case 49:
			if (func_664(0))
			{
				return "exit_trailer_male_drunk";
			}
			else
			{
				return "exit_trailer_female_drunk";
			}
			break;
		
		case 34:
			if (!func_664(0))
			{
				return "exit_trailer_female_sexy";
			}
			break;
	}
	if (func_664(0))
	{
		return "exit_trailer_male_generic";
	}
	return "exit_trailer_female_generic";
}

bool func_766(int iParam0)//Position - 0x84625
{
	if (iParam0 > 429 && iParam0 < 482)
	{
		return true;
	}
	return false;
}

void func_767(int iParam0)//Position - 0x84646
{
	switch (iParam0)
	{
		case 431:
		case 445:
		case 447:
		case 448:
		case 450:
			func_768(-15.4647f, -12.0765f, 500.4821f, -2.6991f, 0f, -139.434f, 14.1462f);
			break;
		
		case 446:
		case 440:
			func_768(-15.5688f, -12.0097f, 500.4877f, -2.6991f, 0f, -135.2235f, 15.6853f);
			break;
		
		case 449:
			func_768(-15.5516f, -11.9948f, 500.4877f, -4.9149f, 0f, -139.1845f, 12.5571f);
			break;
		
		case 433:
		case 435:
		case 436:
		case 437:
		case 438:
		case 439:
		case 441:
		case 442:
		case 443:
		case 444:
			func_768(-16.3959f, -9.4538f, 500.2198f, -6.2257f, 0f, -136.854f, 12.857f);
			break;
		
		case 430:
		case 432:
			func_768(-16.7295f, -9.1912f, 500.5512f, -6.8945f, 0f, -134.806f, 16.3732f);
			break;
		
		case 434:
		case 451:
			func_768(-16.6988f, -9.0181f, 500.5765f, -4.6458f, 0f, -136.5473f, 15.9849f);
			break;
	}
}

void func_768(vector3 vParam0, vector3 vParam3, float fParam6)//Position - 0x847BD
{
	vLocal_7642 = { vParam0 };
	vLocal_7648 = { vParam3 };
	fLocal_7652 = fParam6;
}

void func_769(vector3 vParam0, vector3 vParam3, float fParam6)//Position - 0x847DC
{
	vLocal_7639 = { vParam0 };
	vLocal_7645 = { vParam3 };
	fLocal_7651 = fParam6;
}

int func_770()//Position - 0x847FB
{
	return iLocal_9804;
}

int func_771(vector3 vParam0, vector3 vParam3, float fParam6)//Position - 0x84806
{
	float fVar0;
	
	fVar0 = 1f;
	if (fLocal_7636 > 0f)
	{
		fVar0 = 0f;
	}
	return system::floor(((gameplay::get_distance_between_coords(vParam0, vParam3, 1) * 320f) + (((25f - fParam6) * 100f) * fVar0)));
}

void func_772(int iParam0)//Position - 0x84845
{
	iLocal_9804 = iParam0;
	if (iParam0 != iLocal_9804)
	{
		if (iParam0 == 1)
		{
			fLocal_7636 = 0f;
		}
	}
}

Vector3 func_773(vector3 vParam0)//Position - 0x84864
{
	return (-system::sin(vParam0.y) * system::cos(vParam0.x)), (system::cos(vParam0.y) * system::cos(vParam0.x)), system::sin(vParam0.x);
}

void func_774(int iParam0)//Position - 0x84891
{
	iLocal_6550 = iParam0;
}

void func_775()//Position - 0x8489E
{
	vector3 vVar0;
	vector3 vVar3;
	float fVar6;
	
	if (func_781() != 5)
	{
		if (iLocal_6561 >= 0 && iLocal_6561 < Local_6565)
		{
			if (Local_6565[iLocal_6561 /*5*/] > 81)
			{
				iLocal_9805 = Local_6565[iLocal_6561 /*5*/];
			}
		}
		if (func_770())
		{
			if (iLocal_9728 || iLocal_7638)
			{
				if (!iLocal_7637)
				{
					if (func_737() == 20 || func_737() == 21)
					{
						func_767(iLocal_9805);
						if (fLocal_7636 != 0f)
						{
							fLocal_7636 = 0f;
							func_769(cam::get_cam_coord(cam::get_rendering_cam()), cam::get_cam_rot(cam::get_rendering_cam(), 2), cam::get_cam_fov(cam::get_rendering_cam()));
							cam::set_cam_active(iLocal_7592, false);
						}
					}
				}
				iLocal_7637 = 1;
				fLocal_7636 = (fLocal_7636 + (1.5f * system::timestep()));
				if (fLocal_7636 > 1f)
				{
					fLocal_7636 = 1f;
				}
			}
		}
		if (!func_770() || !iLocal_9728)
		{
			if (iLocal_7637)
			{
				if (func_780(iLocal_9805))
				{
					func_769(vLocal_7612, vLocal_7615, 25f);
				}
				if (func_779(iLocal_9805))
				{
					func_769(vLocal_7618, vLocal_7621, 25f);
				}
				if (func_737() == 20 || func_737() == 21)
				{
					func_768(cam::get_cam_coord(cam::get_rendering_cam()), cam::get_cam_rot(cam::get_rendering_cam(), 2), cam::get_cam_fov(cam::get_rendering_cam()));
					fLocal_7636 = 1f;
				}
				iLocal_7637 = 0;
			}
			if (func_737() == 20)
			{
				func_769(vLocal_7618, vLocal_7621, 25f);
			}
			else if (func_737() == 21)
			{
				func_769(vLocal_7612, vLocal_7615, 25f);
			}
			else if (func_737() == 9)
			{
				func_769(vLocal_7630, vLocal_7633, 25f);
			}
			fLocal_7636 = (fLocal_7636 - (1.5f * system::timestep()));
			if (fLocal_7636 < 0f)
			{
				fLocal_7636 = 0f;
			}
			if (fLocal_7636 == 0f)
			{
				if (cam::does_cam_exist(iLocal_7592))
				{
					cam::set_cam_active(iLocal_7592, false);
				}
			}
		}
		vVar0 = { func_778(vLocal_7639, vLocal_7642, fLocal_7636) };
		vVar3 = { func_778(vLocal_7645, vLocal_7648, fLocal_7636) };
		fVar6 = func_776(fLocal_7651, fLocal_7652, fLocal_7636);
		if (cam::does_cam_exist(iLocal_7592))
		{
			if (fLocal_7636 != 0f)
			{
				cam::set_cam_coord(iLocal_7592, vVar0);
				cam::set_cam_rot(iLocal_7592, vVar3, 2);
				cam::set_cam_fov(iLocal_7592, fVar6);
			}
		}
		if (fLocal_7636 != 0f)
		{
			if (!cam::is_cam_active(iLocal_7592))
			{
				cam::set_cam_active(iLocal_7592, true);
			}
		}
		else if (cam::does_cam_exist(iLocal_7592) && cam::is_cam_active(iLocal_7592))
		{
			cam::set_cam_active(iLocal_7592, false);
		}
	}
}

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

float func_777(float fParam0)//Position - 0x84B5C
{
	return (fParam0 * 57.29578f);
}

Vector3 func_778(vector3 vParam0, vector3 vParam3, float fParam6)//Position - 0x84B6C
{
	float fVar0;
	
	fVar0 = ((1f - system::cos(func_777((fParam6 * 3.141593f)))) * 0.5f);
	return vParam0 * FtoV((1f - fVar0)) + vParam3 * Vector(fVar0, fVar0, fVar0);
}

bool func_779(int iParam0)//Position - 0x84BA1
{
	if (func_766(iParam0) && !func_780(iParam0))
	{
		return true;
	}
	return false;
}

bool func_780(int iParam0)//Position - 0x84BC3
{
	switch (iParam0)
	{
		case 431:
		case 440:
		case 445:
		case 446:
		case 447:
		case 448:
		case 449:
		case 450:
			return true;
			break;
	}
	return false;
}

int func_781()//Position - 0x84C0A
{
	return iLocal_6555;
}

void func_782()//Position - 0x84C15
{
	int iVar0;
	int iVar1;
	char* sVar2;
	int iVar3;
	float fVar4;
	int iVar5;
	vector3 vVar6;
	var uVar9;
	int iVar10;
	
	if (iLocal_6555 == 0)
	{
		iLocal_6555 = iLocal_6556;
	}
	else
	{
		iLocal_6556 = iLocal_6555;
	}
	if (Global_100135)
	{
		func_370(15, 1);
		Global_100135 = 0;
	}
	if (Global_100134)
	{
		func_370(16, 1);
		Global_100134 = 0;
	}
	switch (iLocal_6555)
	{
		case 1:
			func_877();
			iLocal_7587 = false;
			func_31(6);
			if (iLocal_6553)
			{
				cam::_disable_first_person_cam_this_frame();
				cam::_disable_vehicle_first_person_cam_this_frame();
			}
			func_774(1);
			func_38(1);
			ui::clear_help(1);
			controls::disable_control_action(0, 46, 1);
			controls::disable_control_action(0, 36, 1);
			if (!ped::is_ped_injured(player::player_ped_id()))
			{
				entity::set_entity_invincible(player::player_ped_id(), true);
			}
			iLocal_6549 = 0;
			iLocal_6555 = 2;
			iLocal_7596 = 0;
			iLocal_7597 = 0;
			iLocal_7676[2] = 1;
			iLocal_6558 = 0;
			func_875();
			break;
		
		case 2:
			if (iLocal_6553)
			{
				cam::_disable_first_person_cam_this_frame();
				cam::_disable_vehicle_first_person_cam_this_frame();
				ped::set_ped_using_action_mode(player::player_ped_id(), false, -1, 0);
				iLocal_6808 = 0;
				iLocal_6809 = 0;
				iLocal_7754 = 0;
				iLocal_6806 = 0;
			}
			graphics::_0xF44A5456AC3F4F97(20);
			iLocal_6554 = 0;
			graphics::_0x0AE73D8DF3A762B2(0);
			if (func_867())
			{
				iLocal_6555 = 3;
				func_735(0);
			}
			ui::display_hud(false);
			ui::display_radar(false);
			streaming::set_ped_population_budget(0);
			streaming::set_vehicle_population_budget(0);
			break;
		
		case 3:
			iLocal_6553 = 1;
			ui::display_hud(false);
			ui::display_radar(false);
			ped::set_ped_density_multiplier_this_frame(0f);
			vehicle::set_vehicle_density_multiplier_this_frame(0f);
			ped::set_scenario_ped_density_multiplier_this_frame(0f, 0f);
			graphics::_0x0AE73D8DF3A762B2(0);
			if (iLocal_6558 == 2)
			{
				if (!ped::is_ped_injured(player::player_ped_id()))
				{
					if (func_46(entity::get_entity_model(player::player_ped_id())))
					{
						func_774(13);
					}
					else
					{
						func_774(12);
					}
					func_370(4, 0);
					switch (gameplay::get_random_int_in_range(0, 6))
					{
						case 0:
							sVar2 = "GENERIC_YES";
							break;
						
						case 1:
							sVar2 = "GENERIC_THANKS";
							break;
						
						case 2:
							sVar2 = "GENERIC_WHATEVER";
							break;
					}
					if (!gameplay::is_string_null_or_empty(sVar2))
					{
						if (audio::_0x49B99BF3FDA89A7A(player::player_ped_id(), sVar2, 0))
						{
							func_373(player::player_ped_id(), sVar2, 6);
						}
					}
				}
			}
			break;
		
		case 4:
			if (cam::is_screen_faded_out())
			{
				unk1::_0xEB2D525B57F42B40();
				func_662(iLocal_6806, Local_6565[iLocal_6561 /*5*/].f_1, 1, 0);
				Global_17118.f_69 = -1;
				cam::set_gameplay_cam_relative_heading(0f);
				cam::set_gameplay_cam_relative_pitch(-7f, 1065353216);
				ui::set_frontend_active(0);
				graphics::_0xC6372ECD45D73BCD(0);
				graphics::_set_2d_layer(4);
				audio::set_static_emitter_enabled("SE_DMOD_Trailer_Radio", false);
				audio::set_ambient_zone_state("AZ_DMOD_TRAILER_01", 0, 1);
				graphics::_request_hud_scaleform(20);
				if (streaming::is_ipl_active("Replay"))
				{
					streaming::remove_ipl("Replay");
				}
				iLocal_5755 = Local_5662.f_90;
				func_865(0, -1);
				iLocal_5754 = 0;
				func_363();
				iLocal_7676[4] = func_863();
				iLocal_7716 = iLocal_7676[4];
				Global_100135 = 0;
				func_862();
				iVar3 = func_95();
				uLocal_9806 = func_860();
				uLocal_9807 = func_859();
				uLocal_9808 = func_858(1);
				iLocal_9809 = func_46(iVar3);
				iLocal_9811 = func_695(iVar3);
				iLocal_9812 = func_693(iVar3);
				iLocal_9813 = func_691(iVar3);
				if (func_95() == joaat("ig_chrisformage"))
				{
					iLocal_9810 = 1;
				}
				func_370(5, 0);
			}
			break;
		
		case 5:
			ui::hide_hud_component_this_frame(3);
			ui::hide_hud_component_this_frame(2);
			if (iLocal_7696 && !ui::is_pause_menu_active())
			{
				if (cam::is_screen_faded_out())
				{
					cam::do_screen_fade_in(250);
					func_23();
					ped::set_ped_can_ragdoll(player::player_ped_id(), 1);
					iLocal_7696 = 0;
				}
			}
			if (script::_get_number_of_instances_of_streamed_script(joaat("appcamera")) > 0)
			{
				if (iLocal_6554)
				{
					iLocal_6554 = 0;
					graphics::_0xF44A5456AC3F4F97(20);
				}
			}
			else if (graphics::_has_hud_scaleform_loaded(20))
			{
				if (!iLocal_6554)
				{
					iLocal_6554 = 1;
					graphics::_push_scaleform_movie_function_from_hud_component(20, "SET_DIRECTOR_MODE_TEXT");
					func_857("CM_MODE");
					graphics::_pop_scaleform_movie_function_void();
				}
			}
			else
			{
				graphics::_request_hud_scaleform(20);
			}
			func_831();
			if (cam::is_screen_faded_in())
			{
				if ((uLocal_9806 && iLocal_9813) && !func_367(62))
				{
					func_818(62, 1);
				}
				if (!func_367(63))
				{
					func_818(63, 1);
				}
				if ((iLocal_6559 == 1 && iLocal_9809) && !func_367(64))
				{
					func_818(64, 1);
				}
				if ((uLocal_9807 && iLocal_9812) && !func_367(65))
				{
					func_818(65, 1);
				}
				if (iLocal_9810 && !func_367(66))
				{
					func_818(66, 1);
				}
				if (iLocal_9814)
				{
					func_818(67, 1);
					iLocal_9814 = 0;
				}
				if (iLocal_9811 && !func_367(68))
				{
					func_818(68, 1);
				}
				if ((uLocal_9808 && iLocal_9809) && !func_367(69))
				{
					func_818(69, 1);
				}
			}
			func_817();
			if (entity::does_entity_exist(iLocal_5941) && vehicle::is_vehicle_driveable(iLocal_5941, 0))
			{
				if (ped::is_ped_in_vehicle(player::player_ped_id(), iLocal_5941, 0))
				{
					if (ui::does_blip_exist(iLocal_5940))
					{
						ui::set_blip_display(iLocal_5940, 0);
					}
				}
				else if (ui::does_blip_exist(iLocal_5940))
				{
					ui::set_blip_display(iLocal_5940, 2);
				}
			}
			else if (ui::does_blip_exist(iLocal_5940))
			{
				ui::remove_blip(&iLocal_5940);
			}
			if ((gameplay::get_frame_count() % 30) == 0)
			{
				player::set_max_wanted_level(iLocal_7723);
				if (player::get_player_wanted_level(player::player_id()) < iLocal_7722 || player::get_player_wanted_level(player::player_id()) > iLocal_7723)
				{
					player::clear_player_wanted_level(player::player_id());
					player::set_player_wanted_level_no_drop(player::player_id(), iLocal_7722, 0);
					player::set_player_wanted_level_now(player::player_id(), 0);
				}
				func_816();
				if (entity::get_entity_model(player::player_ped_id()) != iLocal_7756)
				{
					if (func_62(0))
					{
						func_44();
					}
				}
			}
			func_4();
			controls::disable_control_action(0, 36, 1);
			if (((func_96(0) && !func_815(player::player_ped_id())) && iLocal_6550 == 15) && iLocal_7720 <= gameplay::get_game_timer())
			{
				if (!ped::is_ped_injured(player::player_ped_id()) && cam::is_screen_faded_in())
				{
					iLocal_7720 = gameplay::get_game_timer() + 1000;
					vLocal_7701 = { entity::get_entity_coords(player::player_ped_id(), 1) };
					fLocal_7707 = entity::get_entity_heading(player::player_ped_id());
				}
			}
			if (func_95() == joaat("s_m_m_movalien_01") || func_95() == joaat("u_m_y_pogo_01"))
			{
				controls::disable_control_action(0, 27, 1);
			}
			break;
		
		case 7:
			if (Local_5662.f_90 == 4)
			{
				player::set_player_control(player::player_id(), false, 0);
				player::set_player_invincible(player::player_id(), 1);
				ped::set_ped_can_ragdoll(player::player_ped_id(), 0);
				func_363();
				func_4();
				if (func_737() == 15)
				{
					func_172();
					iLocal_7596 = 0;
					iLocal_7597 = 0;
					func_94(1);
					func_365(1, -1);
					func_774(1);
				}
				if (func_737() == 2)
				{
					iLocal_7600 = gameplay::get_game_timer() + 1000;
					if (Local_5662.f_90 == 4 && iLocal_7676[Local_5662.f_90] == iLocal_7716)
					{
						func_774(17);
						func_370(5, 0);
						iLocal_7596 = 1;
						iLocal_9718 = 0;
						func_811(&(iLocal_7676[2]));
						ped::set_ped_can_ragdoll(player::player_ped_id(), 1);
						player::set_player_control(player::player_id(), true, 0);
						ped::clear_ped_wetness(player::player_ped_id());
						ped::clear_ped_blood_damage(player::player_ped_id());
						ped::reset_ped_visible_damage(player::player_ped_id());
						entity::set_entity_health(player::player_ped_id(), entity::get_entity_max_health(player::player_ped_id()));
						func_23();
					}
				}
			}
			else
			{
				func_370(5, 0);
				iLocal_7596 = 1;
				iLocal_9718 = 0;
			}
			break;
		
		case 6:
			cam::_disable_first_person_cam_this_frame();
			cam::_disable_vehicle_first_person_cam_this_frame();
			player::set_player_control(player::player_id(), false, 0);
			player::set_player_invincible(player::player_id(), 1);
			ped::set_ped_can_ragdoll(player::player_ped_id(), 0);
			if (func_737() == 15)
			{
				func_774(1);
			}
			if (func_737() == 2)
			{
				if (iLocal_9127 == 29)
				{
					Local_9128[iLocal_9127 /*17*/].f_2 = 1000f;
					gameplay::get_ground_z_for_3d_coord(Local_9128[iLocal_9127 /*17*/], &fVar4, 0);
					while (fVar4 == 0f && iVar5 < 10)
					{
						func_722(Local_9128[iLocal_9127 /*17*/], Local_9128[iLocal_9127 /*17*/].f_3, 0, 1, 12000);
						gameplay::get_ground_z_for_3d_coord(Local_9128[iLocal_9127 /*17*/], &fVar4, 0);
						Local_9128[iLocal_9127 /*17*/].f_2 = (Local_9128[iLocal_9127 /*17*/].f_2 - 100f);
						iVar5++;
					}
					if (fVar4 > 0f)
					{
						Local_9128[iLocal_9127 /*17*/].f_2 = fVar4;
					}
					else
					{
						Local_9128[iLocal_9127 /*17*/].f_2 = 0f;
					}
				}
				if (!player::is_player_teleport_active())
				{
					func_722(Local_9128[iLocal_9127 /*17*/], Local_9128[iLocal_9127 /*17*/].f_3, 0, 1, 20000);
				}
				if (entity::does_entity_exist(iLocal_9671))
				{
					vehicle::delete_vehicle(&iLocal_9671);
				}
				if (!func_87(Local_9128[iLocal_9127 /*17*/].f_6))
				{
					streaming::request_model(Local_9128[iLocal_9127 /*17*/].f_10);
					while (!streaming::has_model_loaded(Local_9128[iLocal_9127 /*17*/].f_10))
					{
						system::wait(0);
					}
					iLocal_9671 = vehicle::create_vehicle(Local_9128[iLocal_9127 /*17*/].f_10, Local_9128[iLocal_9127 /*17*/].f_6, Local_9128[iLocal_9127 /*17*/].f_9, 1, true);
					streaming::set_model_as_no_longer_needed(Local_9128[iLocal_9127 /*17*/].f_10);
				}
				iLocal_5945 = 0;
				vLocal_7701 = { Local_9128[iLocal_9127 /*17*/] };
				vLocal_7704 = { func_728(vLocal_7701, 0, 1, ped::is_ped_in_any_vehicle(player::player_ped_id(), 0), 0) };
				vVar6 = { vLocal_7704 };
				vVar6.z = (vVar6.y + 50f);
				gameplay::get_ground_z_for_3d_coord(vVar6, &uVar9, 0);
				vLocal_7704.z = uVar9;
				iLocal_9765 = 0;
				iLocal_9764 = 0;
				iLocal_9762 = 0;
				func_774(16);
			}
			else if (func_737() == 16)
			{
				if (Local_9128[iLocal_9127 /*17*/].f_11)
				{
					if (interior::get_interior_at_coords(Local_9128[iLocal_9127 /*17*/]) == 0 || !interior::is_interior_ready(interior::get_interior_at_coords(Local_9128[iLocal_9127 /*17*/])))
					{
						iVar1 = true;
					}
				}
				iVar10 = entity::get_entity_model(player::player_ped_id());
				if (ped::get_vehicle_ped_is_using(player::player_ped_id()) != 0)
				{
					iVar10 = entity::get_entity_model(ped::get_vehicle_ped_is_using(player::player_ped_id()));
					iVar1 = true;
				}
				if (func_721(Local_9128[iLocal_9127 /*17*/], iVar10, vLocal_7704, Local_9128[iLocal_9127 /*17*/].f_3, &uLocal_7923, &uLocal_7924, 1, 1, iVar1))
				{
					if (!iLocal_9670)
					{
						if (func_810(player::player_ped_id(), Local_9128[iLocal_9127 /*17*/], 1) > 1f)
						{
							iLocal_9670 = 1;
							func_176("CM_HLPTCO", -1);
						}
					}
					cam::set_gameplay_cam_relative_pitch(Local_9128[iLocal_9127 /*17*/].f_4, 1065353216);
					cam::set_gameplay_cam_relative_heading(Local_9128[iLocal_9127 /*17*/].f_5);
					iLocal_7600 = gameplay::get_game_timer() + 1000;
					func_774(17);
					func_370(5, 0);
					ped::set_ped_can_ragdoll(player::player_ped_id(), 1);
					player::set_player_control(player::player_id(), true, 0);
					func_23();
					if (entity::does_entity_exist(iLocal_9671))
					{
						entity::set_vehicle_as_no_longer_needed(&iLocal_9671);
					}
				}
			}
			break;
		
		case 8:
			ui::_set_warning_message_2("CM_EWARN", "CM_DELSCENE", 36, 0, 0, -1, 0, 0, 1);
			func_809();
			if (iLocal_9732)
			{
				if (iLocal_9730)
				{
					gameplay::set_game_paused(false);
					audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
					func_16(1);
					gameplay::clear_area_of_objects(entity::get_entity_coords(player::player_ped_id(), 1), 100f, 0);
					cam::do_screen_fade_in(800);
					func_370(5, 0);
					iLocal_9732 = 0;
					iLocal_9730 = 0;
					iLocal_5757 = 1;
				}
				else if (iLocal_9731)
				{
					gameplay::set_game_paused(false);
					cam::do_screen_fade_in(0);
					audio::play_sound_frontend(-1, "BACK", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
					func_370(5, 0);
					iLocal_9732 = 0;
					iLocal_9731 = 0;
				}
			}
			else if (ui::is_warning_message_active())
			{
				cam::do_screen_fade_out(0);
				gameplay::set_game_paused(true);
				iLocal_9732 = 1;
			}
			break;
		
		case 9:
			ui::_set_warning_message_2("CM_EWARN", "CM_OVRWTSCN", 36, 0, 0, -1, 0, 0, 1);
			func_809();
			if (iLocal_9732)
			{
				if (iLocal_9730)
				{
					gameplay::set_game_paused(false);
					audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
					func_807(iLocal_4055);
					func_370(5, 0);
					iLocal_9732 = 0;
					iLocal_9730 = 0;
					iLocal_5757 = 1;
				}
				else if (iLocal_9731)
				{
					gameplay::set_game_paused(false);
					audio::play_sound_frontend(-1, "BACK", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
					func_370(5, 0);
					iLocal_9732 = 0;
					iLocal_9731 = 0;
				}
			}
			else if (ui::is_warning_message_active())
			{
				gameplay::set_game_paused(true);
				iLocal_9732 = 1;
			}
			break;
		
		case 10:
			if (iLocal_4056 == iLocal_4055)
			{
				ui::_set_warning_message_2("CM_EWARN", "CM_RLDSCN", 36, 0, 0, -1, 0, 0, 1);
			}
			else
			{
				ui::_set_warning_message_2("CM_EWARN", "CM_LOADSCN", 36, 0, 0, -1, 0, 0, 1);
			}
			func_809();
			if (iLocal_9732)
			{
				if (iLocal_9730)
				{
					gameplay::set_game_paused(false);
					audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
					func_805(Local_5662.f_90);
					func_804(1);
					func_370(5, 0);
					iLocal_9732 = 0;
					iLocal_9730 = 0;
					iLocal_9731 = 0;
					iLocal_5757 = 1;
				}
				else if (iLocal_9731)
				{
					gameplay::set_game_paused(false);
					audio::play_sound_frontend(-1, "BACK", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
					func_370(5, 0);
					iLocal_9732 = 0;
					iLocal_9731 = 0;
					iLocal_9730 = 0;
				}
			}
			else if (ui::is_warning_message_active())
			{
				gameplay::set_game_paused(true);
				iLocal_9732 = 1;
			}
			break;
		
		case 12:
			if (!ped::is_ped_injured(player::player_ped_id()))
			{
				if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
				{
					if (gameplay::are_strings_equal(sLocal_5554, "DMPP_HLP_PLCD2"))
					{
						func_802(func_126(Local_5662.f_90));
						func_370(5, 0);
					}
				}
			}
			break;
		
		case 11:
			ui::_set_warning_message_2("CM_EWARN", "CM_EXITSCN", 36, 0, 0, -1, 0, 0, 1);
			func_809();
			if (iLocal_9732)
			{
				if (iLocal_9730)
				{
					gameplay::set_game_paused(false);
					audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
					func_795(0, 1);
					iLocal_5754 = 0;
					func_865(iLocal_5755, -1);
					func_793();
					func_370(5, 0);
					iLocal_9732 = 0;
					iLocal_9730 = 0;
					iLocal_9731 = 0;
					func_363();
				}
				else if (iLocal_9731)
				{
					gameplay::set_game_paused(false);
					audio::play_sound_frontend(-1, "BACK", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
					func_370(5, 0);
					iLocal_9732 = 0;
					iLocal_9731 = 0;
					iLocal_9730 = 0;
				}
			}
			else if (ui::is_warning_message_active())
			{
				gameplay::set_game_paused(true);
				iLocal_9732 = 1;
			}
			break;
		
		case 13:
			cam::_disable_first_person_cam_this_frame();
			cam::_disable_vehicle_first_person_cam_this_frame();
			if (!iLocal_9816 && ui::is_warning_message_active())
			{
				gameplay::set_game_paused(true);
			}
			iVar0 = 18;
			ui::_set_warning_message_2("CM_EWARN", "CM_SHODEL", iVar0, 0, 0, -1, 0, 0, 1);
			func_809();
			if (iLocal_9717)
			{
				gameplay::set_game_paused(false);
				iLocal_9816 = 0;
				audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
				func_370(3, 0);
				func_792(0);
				func_791(9);
				iLocal_7519 = 1;
				func_662(iLocal_6806, uLocal_6807, 0, 1);
				func_382();
				iLocal_9717 = 0;
			}
			else if (iLocal_9719)
			{
				gameplay::set_game_paused(false);
				iLocal_9816 = 0;
				iLocal_9719 = false;
				audio::play_sound_frontend(-1, "BACK", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
				func_370(3, 0);
			}
			break;
		
		case 14:
			cam::_disable_first_person_cam_this_frame();
			cam::_disable_vehicle_first_person_cam_this_frame();
			if (!iLocal_9816 && ui::is_warning_message_active())
			{
				gameplay::set_game_paused(true);
			}
			iVar0 = 18;
			ui::_set_warning_message_2("CM_EWARN", "CM_EDIT", iVar0, 0, 0, -1, 0, 0, 1);
			func_809();
			if (iLocal_9717)
			{
				gameplay::set_game_paused(false);
				iLocal_9816 = 0;
				audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
				if (!ped::is_ped_injured(player::player_ped_id()))
				{
					entity::set_entity_invincible(player::player_ped_id(), true);
				}
				func_370(5, 0);
				unk2::_0x49DA8145672B2725();
				iLocal_7696 = 1;
				iLocal_9717 = 0;
			}
			else if (iLocal_9719)
			{
				gameplay::set_game_paused(false);
				iLocal_9816 = 0;
				iLocal_9719 = false;
				audio::play_sound_frontend(-1, "BACK", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
				func_370(5, 0);
			}
			break;
		
		case 15:
			if (Global_100136 || func_2())
			{
				if (!ped::is_ped_injured(player::player_ped_id()))
				{
					entity::set_entity_invincible(player::player_ped_id(), true);
				}
				func_370(1, 0);
				Global_100136 = 0;
				break;
			}
			cam::_disable_first_person_cam_this_frame();
			cam::_disable_vehicle_first_person_cam_this_frame();
			if (!iLocal_9816 && ui::is_warning_message_active())
			{
				gameplay::set_game_paused(true);
			}
			iVar0 = 18;
			ui::_set_warning_message_2("CM_EWARN", "CM_TRAILER", iVar0, 0, 0, -1, 0, 0, 1);
			func_809();
			if (iLocal_9717 || iLocal_7675)
			{
				gameplay::set_game_paused(false);
				iLocal_9816 = 0;
				if (!ped::is_ped_injured(player::player_ped_id()))
				{
					entity::set_entity_invincible(player::player_ped_id(), true);
				}
				if (iLocal_9717)
				{
					audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
				}
				func_370(1, 0);
				iLocal_9717 = 0;
				iLocal_7675 = 0;
			}
			else if (iLocal_9719)
			{
				gameplay::set_game_paused(false);
				iLocal_9816 = 0;
				iLocal_9719 = false;
				audio::play_sound_frontend(-1, "BACK", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
				func_370(5, 0);
				if (cam::is_screen_faded_out() || cam::is_screen_fading_out())
				{
					cam::do_screen_fade_in(0);
				}
			}
			break;
		
		case 16:
			cam::_disable_first_person_cam_this_frame();
			cam::_disable_vehicle_first_person_cam_this_frame();
			if (!iLocal_9816 && ui::is_warning_message_active())
			{
				gameplay::set_game_paused(true);
			}
			iVar0 = 36;
			ui::_set_warning_message_2("CM_EWARN", "CM_EXI", iVar0, 0, 0, -1, 0, 0, 1);
			if (iLocal_9815)
			{
				func_809();
			}
			else
			{
				iLocal_9815 = 1;
			}
			if (iLocal_9717)
			{
				gameplay::set_game_paused(false);
				iLocal_9816 = 0;
				audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
				func_370(17, 0);
				iLocal_9717 = 0;
				iLocal_9815 = 0;
				entity::set_entity_invincible(player::player_ped_id(), true);
				if (iLocal_6557 == 5)
				{
					cam::do_screen_fade_out(0);
				}
			}
			else if (iLocal_9719)
			{
				gameplay::set_game_paused(false);
				iLocal_9816 = 0;
				iLocal_9815 = 0;
				if (iLocal_6564 != 3)
				{
					audio::play_sound_frontend(-1, "BACK", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
					if (!iLocal_7596 && iLocal_6557 != 5)
					{
						func_785(iLocal_6564, 1, -1);
					}
				}
				func_370(iLocal_6557, 0);
			}
			break;
		
		case 17:
			cam::_disable_first_person_cam_this_frame();
			cam::_disable_vehicle_first_person_cam_this_frame();
			if (func_737() != 2)
			{
				gameplay::_set_rain_fx_intensity(fLocal_7715);
				func_774(1);
				iLocal_9809 = 0;
				iLocal_9810 = 0;
				iLocal_9811 = 0;
				iLocal_9812 = 0;
				iLocal_9813 = 0;
			}
			else
			{
				func_370(18, 0);
			}
			break;
	}
	if (iLocal_7676[3] != 0)
	{
		controls::disable_control_action(0, 86, 1);
	}
	if (iLocal_7718)
	{
		func_783(iLocal_7719, &iLocal_7721, 1);
	}
}

void func_783(int iParam0, int iParam1, int iParam2)//Position - 0x85CDC
{
	func_784(iParam1);
	if (!func_63(iParam0))
	{
		return;
	}
	if (iParam2)
	{
		if (!func_211(14))
		{
			ui::_0x25F87B30C382FCA7();
		}
		ui::hide_hud_component_this_frame(2);
	}
	if (!entity::is_entity_dead(player::player_ped_id(), 0))
	{
		ped::set_ped_reset_flag(player::player_ped_id(), 58, true);
		ped::set_ped_reset_flag(player::player_ped_id(), 102, true);
		ped::set_ped_reset_flag(player::player_ped_id(), 195, true);
	}
	if ((!func_28(iParam0) || iParam0 == joaat("a_c_hen")) && iParam0 != joaat("ig_orleans"))
	{
		controls::disable_control_action(0, 22, 1);
	}
	if (!func_211(14))
	{
		controls::disable_control_action(0, 19, 1);
	}
	controls::disable_control_action(0, 244, 1);
	controls::disable_control_action(0, 27, 1);
	controls::disable_control_action(0, 28, 1);
	controls::disable_control_action(0, 29, 1);
	controls::disable_control_action(0, 171, 1);
	controls::disable_control_action(0, 49, 1);
	controls::disable_control_action(0, 36, 1);
	if (iParam0 != joaat("ig_orleans"))
	{
		controls::disable_control_action(0, 23, 1);
		controls::disable_control_action(0, 47, 1);
		controls::disable_control_action(0, 37, 1);
		controls::disable_control_action(0, 45, 1);
		controls::disable_control_action(0, 25, 1);
		controls::disable_control_action(0, 50, 1);
		controls::disable_control_action(0, 44, 1);
		controls::disable_control_action(0, 55, 1);
		controls::disable_control_action(0, 58, 1);
		controls::disable_control_action(0, 262, 1);
		controls::disable_control_action(0, 261, 1);
		controls::disable_control_action(0, 7, 1);
		controls::disable_control_action(0, 48, 1);
		controls::disable_control_action(0, 53, 1);
		controls::disable_control_action(0, 54, 1);
		controls::disable_control_action(0, 56, 1);
		controls::disable_control_action(0, 57, 1);
	}
	else
	{
		cam::_disable_vehicle_first_person_cam_this_frame();
		player::set_player_can_use_cover(player::player_id(), 0);
	}
	if (cam::get_follow_ped_cam_view_mode() == 4 || cam::get_follow_ped_cam_view_mode() == 0)
	{
		cam::set_follow_ped_cam_view_mode(1);
	}
	if (player::is_player_playing(player::player_id()))
	{
		player::reset_player_stamina(player::player_id());
	}
	Global_91349 = 1;
}

void func_784(var uParam0)//Position - 0x85E89
{
	if (player::get_player_wanted_level(player::player_id()) == 1)
	{
		if (*uParam0 == -1)
		{
			*uParam0 = gameplay::get_game_timer();
		}
		else if (gameplay::get_game_timer() > *uParam0 + 20000)
		{
			player::set_player_wanted_level(player::player_id(), 2, 0);
			player::set_player_wanted_level_now(player::player_id(), 0);
			*uParam0 = -1;
		}
	}
	else
	{
		*uParam0 = -1;
	}
}

void func_785(int iParam0, int iParam1, int iParam2)//Position - 0x85ED9
{
	int iVar0;
	int iVar1;
	var uVar2;
	int iVar3;
	int iVar4;
	
	iVar1 = iLocal_6564;
	if (iParam0 == 3)
	{
		if (!iParam1)
		{
			iLocal_6561 = 0;
		}
		iLocal_6564 = iParam0;
	}
	else
	{
		if (iParam0 != 2)
		{
			iLocal_6564 = iParam0;
		}
		if (!iParam1)
		{
			if (func_790(2))
			{
				Local_6565[0 /*5*/] = 1;
				iLocal_6561 = 1;
			}
			else
			{
				iLocal_6561 = 0;
			}
		}
		else if (iParam2 != -1)
		{
			iLocal_6561 = iParam2;
		}
	}
	if (iParam0 != 0)
	{
		func_172();
		func_170(-1);
		func_168(1, 1, 0, 0, 0);
		func_167(1, 2, 1, 1, 1);
		iLocal_7698 = iLocal_7697;
		if (func_790(2))
		{
			func_169(0, 1, 0, 0, 0);
			if (iLocal_7697)
			{
				func_150(0, &uVar2, "CM_GEN", 2, "CM_GENM", 1);
			}
			else
			{
				func_150(0, &uVar2, "CM_GEN", 2, "CM_GENF", 1);
			}
			iLocal_6562 = 1;
			iLocal_6560 = 1;
		}
		else
		{
			iLocal_6562 = 0;
			iLocal_6560 = 0;
		}
		switch (iLocal_6564)
		{
			case 3:
				func_147("CASTMNU");
				func_788(4, 1, 1, 1);
				func_788(5, 1, 1, 1);
				if (func_109(0) > 0)
				{
					func_788(7, 1, 1, 1);
				}
				else
				{
					func_788(7, 0, 0, 0);
				}
				if (func_109(1) > 0)
				{
					func_788(8, 1, 1, 1);
				}
				else
				{
					func_788(8, 0, 0, 0);
				}
				func_788(9, 1, 1, 1);
				func_788(11, 1, 1, 1);
				break;
			
			case 4:
				func_147("CM_ACTTIT");
				func_788(33, 1, 1, 1);
				func_788(34, 1, 1, 1);
				func_788(35, 1, 1, 1);
				func_788(36, 1, 1, 1);
				func_788(37, 1, 1, 1);
				func_788(38, 1, 1, 1);
				func_788(39, 1, 1, 1);
				func_788(40, 1, 1, 1);
				func_788(41, 1, 1, 1);
				func_788(42, 1, 1, 1);
				func_788(43, 1, 1, 1);
				func_788(44, 1, 1, 1);
				func_788(45, 1, 1, 1);
				func_788(46, 1, 1, 1);
				func_788(47, 1, 1, 1);
				func_788(48, 1, 1, 1);
				func_788(49, 1, 1, 1);
				break;
			
			case 5:
				func_169(0, 1, 0, 0, 0);
				func_147("SETTMNU");
				func_149(0);
				iLocal_6560 = 14;
				break;
			
			case 34:
				func_147("CM_TITBEA");
				func_788(153, 1, 1, 1);
				func_787(157, 1);
				func_787(151, 1);
				func_787(158, 1);
				func_786(159, 1);
				func_787(152, 1);
				func_788(154, 1, 1, 1);
				func_787(155, 1);
				func_787(156, 1);
				func_788(150, 1, 1, 1);
				break;
			
			case 35:
				func_147("CM_TITCOS");
				func_788(223, 0, 1, 1);
				func_788(218, 0, 1, 1);
				func_788(224, 0, 1, 1);
				func_788(225, 0, 1, 1);
				func_788(221, 0, 1, 1);
				func_788(222, 0, 1, 1);
				func_788(219, 0, 1, 1);
				func_788(226, 0, 1, 1);
				break;
			
			case 36:
				func_147("CM_TITDOW");
				func_787(131, 1);
				func_787(130, 1);
				func_787(132, 1);
				func_787(133, 1);
				func_787(127, 1);
				func_787(126, 1);
				func_787(128, 1);
				func_787(129, 1);
				func_786(131, 1);
				func_786(134, 1);
				func_786(133, 1);
				func_786(135, 1);
				func_786(139, 1);
				func_786(136, 1);
				func_786(138, 1);
				func_786(137, 1);
				break;
			
			case 37:
				func_147("CM_TITEME");
				func_786(263, 1);
				func_787(260, 1);
				func_787(254, 1);
				func_787(258, 1);
				func_787(257, 1);
				func_788(262, 1, 1, 1);
				func_787(252, 1);
				func_788(253, 1, 1, 1);
				func_787(255, 1);
				func_787(259, 1);
				func_786(261, 1);
				break;
			
			case 38:
				func_147("CM_TITGAN");
				func_786(211, 1);
				func_786(189, 1);
				func_786(188, 1);
				func_786(203, 1);
				func_786(185, 1);
				func_787(213, 1);
				func_787(214, 1);
				func_787(212, 1);
				func_787(192, 1);
				func_787(190, 1);
				func_787(208, 1);
				func_787(209, 1);
				func_787(210, 1);
				func_787(204, 1);
				func_787(205, 1);
				func_787(206, 1);
				func_787(187, 1);
				func_787(186, 1);
				func_787(182, 1);
				func_787(183, 1);
				func_787(184, 1);
				func_787(201, 1);
				func_787(200, 1);
				func_787(202, 1);
				func_787(194, 1);
				func_787(196, 1);
				func_787(195, 1);
				func_787(198, 1);
				func_787(197, 1);
				func_787(199, 1);
				func_787(207, 1);
				func_787(180, 1);
				func_787(179, 1);
				func_787(181, 1);
				func_787(193, 1);
				func_787(191, 1);
				break;
			
			case 40:
				func_147("CM_TITLAB");
				func_787(251, 1);
				func_787(241, 1);
				func_787(238, 1);
				func_787(245, 1);
				func_787(242, 1);
				func_787(240, 1);
				func_787(246, 1);
				func_787(247, 1);
				func_787(250, 1);
				func_786(92, 1);
				func_787(249, 1);
				func_788(239, 1, 1, 1);
				func_788(244, 1, 1, 1);
				func_787(243, 1);
				break;
			
			case 41:
				func_147("CM_TITMIL");
				func_787(231, 1);
				func_787(232, 1);
				func_787(234, 1);
				func_787(230, 1);
				func_787(229, 1);
				func_787(227, 1);
				func_787(233, 1);
				func_787(235, 1);
				func_787(236, 1);
				break;
			
			case 42:
				func_147("CM_TITONL");
				func_748();
				if (Local_7925[0 /*401*/].f_400)
				{
					func_788(327, 1, 1, 1);
				}
				else
				{
					func_788(327, 0, 0, 0);
				}
				if (Local_7925[1 /*401*/].f_400)
				{
					func_788(328, 1, 1, 1);
				}
				else
				{
					func_788(328, 0, 0, 0);
				}
				break;
			
			case 43:
				func_147("CM_TITPRO");
				func_787(82, 1);
				func_787(84, 1);
				func_787(98, 1);
				func_787(86, 1);
				func_787(88, 1);
				func_787(90, 1);
				func_787(83, 1);
				func_787(91, 1);
				func_787(87, 1);
				func_787(93, 1);
				func_787(96, 1);
				func_787(94, 1);
				func_787(95, 1);
				func_787(85, 1);
				func_787(97, 1);
				func_787(99, 1);
				func_786(100, 1);
				func_786(110, 1);
				func_786(101, 1);
				func_786(104, 1);
				func_786(106, 1);
				func_786(96, 1);
				func_786(103, 1);
				func_786(105, 1);
				func_786(94, 1);
				func_786(107, 1);
				func_786(98, 1);
				func_786(109, 1);
				break;
			
			case 45:
				func_147("CM_TITSPO");
				func_787(171, 1);
				func_787(172, 1);
				func_787(169, 1);
				func_786(178, 1);
				func_787(176, 1);
				func_787(177, 1);
				func_787(173, 1);
				func_787(174, 1);
				func_786(170, 1);
				func_786(162, 1);
				func_787(168, 1);
				func_787(163, 1);
				func_787(164, 1);
				func_787(165, 1);
				func_787(161, 1);
				func_788(175, 1, 1, 1);
				func_788(160, 1, 1, 1);
				break;
			
			case 47:
				func_147("CM_TITTRA");
				func_787(267, 1);
				func_787(268, 1);
				func_787(265, 1);
				func_787(264, 1);
				func_787(271, 1);
				func_787(269, 1);
				func_787(270, 1);
				func_787(266, 1);
				func_787(272, 1);
				break;
			
			case 48:
				func_147("CM_TITUPT");
				func_786(123, 1);
				func_786(120, 1);
				func_786(118, 1);
				func_786(121, 1);
				func_786(117, 1);
				func_787(111, 1);
				func_787(112, 1);
				func_787(115, 1);
				func_786(119, 1);
				func_787(114, 1);
				func_787(113, 1);
				func_787(116, 1);
				func_786(125, 1);
				func_786(122, 1);
				break;
			
			case 49:
				func_147("CM_TITVAG");
				func_787(147, 1);
				func_787(149, 1);
				func_787(148, 1);
				func_787(146, 1);
				func_788(140, 1, 1, 1);
				func_788(142, 1, 1, 1);
				func_787(143, 1);
				func_787(145, 1);
				func_788(141, 1, 1, 1);
				func_787(144, 1);
				func_786(144, 1);
				break;
			
			case 46:
				func_147("CM_TITSTO");
				func_788(273, 0, 1, 1);
				func_788(275, 0, 1, 1);
				func_788(274, 0, 1, 1);
				func_788(276, 1, 0, 1);
				func_788(277, 0, 1, 1);
				func_788(278, 0, 1, 1);
				func_788(298, 0, 1, 1);
				func_788(279, 0, 1, 1);
				func_788(280, 0, 1, 1);
				func_788(281, 0, 1, 1);
				func_788(282, 0, 1, 1);
				func_788(283, 0, 1, 1);
				func_788(284, 0, 1, 1);
				func_788(285, 0, 1, 1);
				func_788(286, 0, 1, 1);
				func_788(287, 0, 1, 1);
				func_788(289, 1, 0, 1);
				func_788(290, 1, 0, 1);
				func_788(291, 0, 1, 1);
				func_788(292, 1, 0, 1);
				func_788(293, 0, 1, 1);
				func_788(294, 0, 1, 1);
				func_788(295, 0, 1, 1);
				func_788(296, 0, 1, 1);
				func_788(297, 1, 0, 1);
				func_788(299, 1, 0, 1);
				func_788(300, 0, 1, 1);
				break;
			
			case 33:
				func_147("CM_TITANI");
				func_788(431, 1, 1, 1);
				func_788(445, 1, 1, 1);
				func_788(446, 1, 1, 1);
				func_788(447, 1, 1, 1);
				func_788(448, 1, 1, 1);
				func_788(449, 1, 1, 1);
				func_788(440, 1, 1, 1);
				func_788(450, 1, 1, 1);
				func_788(430, 1, 1, 1);
				func_788(432, 1, 1, 1);
				func_788(433, 1, 1, 1);
				func_788(434, 1, 1, 1);
				func_788(435, 1, 1, 1);
				func_788(436, 1, 1, 1);
				func_788(437, 1, 1, 1);
				func_788(438, 1, 1, 1);
				func_788(439, 1, 1, 1);
				func_788(441, 1, 1, 1);
				func_788(442, 1, 1, 1);
				func_788(443, 1, 1, 1);
				func_788(444, 1, 1, 1);
				func_788(451, 1, 1, 1);
				break;
			
			case 44:
				func_147("CM_TITSPE");
				func_788(301, 0, 1, 1);
				func_788(302, 0, 1, 1);
				func_788(303, 0, 1, 1);
				func_788(304, 0, 1, 1);
				func_788(305, 0, 1, 1);
				func_788(312, 0, 1, 1);
				func_788(306, 1, 0, 1);
				func_788(307, 0, 1, 1);
				func_788(308, 0, 1, 1);
				func_788(309, 0, 1, 1);
				func_788(311, 1, 0, 1);
				func_788(313, 0, 1, 1);
				break;
			
			case 39:
				func_147("CM_TITHEI");
				func_788(317, 0, 1, 1);
				func_788(322, 0, 1, 1);
				func_788(320, 0, 1, 1);
				func_788(324, 0, 1, 1);
				func_788(314, 0, 1, 1);
				func_788(318, 0, 1, 1);
				func_788(326, 0, 1, 1);
				func_788(315, 0, 1, 1);
				func_788(319, 0, 1, 1);
				func_788(316, 0, 1, 1);
				func_788(321, 1, 0, 1);
				func_788(323, 0, 1, 1);
				func_788(325, 1, 0, 1);
				break;
			
			case 7:
				func_147("CM_SHTIT");
				iVar0 = 0;
				while (iVar0 <= 9)
				{
					if (Local_6878[iVar0 /*32*/] != 0)
					{
						iLocal_7698 = Local_6878[iVar0 /*32*/].f_29;
						func_788(Local_6878[iVar0 /*32*/], !Local_6878[iVar0 /*32*/].f_29, Local_6878[iVar0 /*32*/].f_29, 1);
					}
					iVar0++;
				}
				break;
			
			case 8:
				func_147("CM_RETIT");
				iVar0 = 10;
				while (iVar0 <= 19)
				{
					if (Local_6878[iVar0 /*32*/] != 0)
					{
						iLocal_7698 = Local_6878[iVar0 /*32*/].f_29;
						func_788(Local_6878[iVar0 /*32*/], !Local_6878[iVar0 /*32*/].f_29, Local_6878[iVar0 /*32*/].f_29, 1);
					}
					iVar0++;
				}
				break;
		}
		if (Local_6565[iLocal_6561 /*5*/] == 0 && !iLocal_6564 == 5)
		{
			if (func_751(&iVar3, iLocal_6561))
			{
				func_122(iVar3, 1, 1);
				iLocal_6561 = iVar3;
			}
		}
		if (iParam0 < 81)
		{
			if (!iParam1)
			{
				iVar4 = 0;
				while (iVar4 < Local_6565)
				{
					if (Local_6565[iVar4 /*5*/] == iVar1)
					{
						iLocal_6561 = iVar4;
						iVar4 = Local_6565;
					}
					iVar4++;
				}
			}
		}
		func_122(iLocal_6561, 1, 1);
		func_382();
	}
}

void func_786(int iParam0, int iParam1)//Position - 0x86BBE
{
	func_788(iParam0, 1, 0, iParam1);
}

void func_787(int iParam0, int iParam1)//Position - 0x86BD0
{
	func_788(iParam0, 0, 1, iParam1);
}

void func_788(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x86BE2
{
	struct<8> Var0;
	
	StringCopy(&Var0, func_153(iParam0), 64);
	if (iParam0 > 81)
	{
		if (((iLocal_7698 && iParam2) || (!iLocal_7698 && iParam1)) || !func_790(iLocal_6564))
		{
			if (func_391(iParam0))
			{
				if (func_386(iParam0))
				{
					if (!iLocal_7698 && func_789(iParam0))
					{
						StringConCat(&Var0, "F", 64);
					}
					func_143(iLocal_6562, &Var0, 0, iParam3, 0, 0);
					Local_6565[iLocal_6562 /*5*/] = iParam0;
					Local_6565[iLocal_6562 /*5*/].f_1 = 0;
					iLocal_6562++;
					iLocal_6560++;
				}
				else
				{
					func_143(iLocal_6562, "CM_QUE", 0, 0, 0, 0);
					Local_6565[iLocal_6562 /*5*/] = 0;
					Local_6565[iLocal_6562 /*5*/].f_1 = 0;
					iLocal_6562++;
					iLocal_6560++;
				}
			}
			else
			{
				func_143(iLocal_6562, "CM_QUE", 0, 0, 0, 0);
				Local_6565[iLocal_6562 /*5*/] = 0;
				Local_6565[iLocal_6562 /*5*/].f_1 = 0;
				iLocal_6562++;
				iLocal_6560++;
			}
		}
	}
	else
	{
		func_143(iLocal_6562, &Var0, 0, iParam3, 0, 0);
		Local_6565[iLocal_6562 /*5*/] = iParam0;
		Local_6565[iLocal_6562 /*5*/].f_1 = 0;
		iLocal_6562++;
		iLocal_6560++;
	}
}

bool func_789(int iParam0)//Position - 0x86D2A
{
	switch (iParam0)
	{
		case 98:
		case 96:
		case 94:
		case 85:
		case 131:
		case 160:
		case 175:
		case 239:
		case 244:
		case 253:
		case 144:
		case 141:
		case 142:
			return true;
			break;
	}
	return false;
}

bool func_790(int iParam0)//Position - 0x86D8F
{
	if (iParam0 == 2)
	{
		iParam0 = iLocal_6564;
	}
	if (iParam0 > 32)
	{
		if (((((((((iParam0 == 33 || iParam0 == 7) || iParam0 == 8) || iParam0 == 41) || iParam0 == 35) || iParam0 == 46) || iParam0 == 39) || iParam0 == 44) || iParam0 == 47) || iParam0 == 42)
		{
			return false;
		}
	}
	else
	{
		return false;
	}
	return true;
}

void func_791(int iParam0)//Position - 0x86E1F
{
	int iVar0;
	int iVar1;
	
	if (iParam0 < 10)
	{
		iVar1 = 9;
	}
	else
	{
		iVar1 = 19;
	}
	iVar0 = iParam0;
	while (iVar0 <= (iVar1 - 1))
	{
		Local_6878[iVar0 /*32*/] = { Local_6878[iVar0 + 1 /*32*/] };
		iVar0++;
	}
	Local_6878[iVar1 /*32*/] = 0;
	Local_6878[iVar1 /*32*/].f_27 = 0;
}

void func_792(int iParam0)//Position - 0x86E77
{
	int iVar0;
	
	if (iParam0)
	{
		iVar0 = 10;
		while (iVar0 <= 18)
		{
			Local_6878[iVar0 /*32*/] = { Local_6878[iVar0 + 1 /*32*/] };
			iVar0++;
		}
	}
	else
	{
		iVar0 = 0;
		while (iVar0 <= 8)
		{
			Local_6878[iVar0 /*32*/] = { Local_6878[iVar0 + 1 /*32*/] };
			iVar0++;
		}
	}
}

void func_793()//Position - 0x86EDA
{
	int iVar0;
	
	iVar0 = 0;
	if (Local_5662.f_90 > 6)
	{
		iVar0 = (Local_5662.f_90 - 6);
	}
	func_794(iVar0);
}

void func_794(int iParam0)//Position - 0x86EFD
{
	Global_17257.f_5605 = iParam0;
}

void func_795(int iParam0, int iParam1)//Position - 0x86F0D
{
	int iVar0;
	int iVar1;
	vector3 vVar2;
	
	if (iParam0 != iLocal_7587)
	{
		func_801();
		iVar1 = 2500;
		if (iParam1)
		{
			if (iLocal_5754 == 3)
			{
				if (!entity::is_entity_dead(player::player_ped_id(), 0))
				{
					unk_0x6BC97F4F4BB3C04B(player::player_id(), 1);
					func_26(player::player_ped_id());
					func_30();
					player::set_wanted_level_multiplier(0f);
					player::set_max_wanted_level(0);
					func_698(1);
					player::set_player_control(player::player_id(), false, 0);
				}
				cam::do_screen_fade_out(800);
				while (cam::is_screen_fading_out())
				{
					system::wait(0);
					func_799(iLocal_9745);
				}
				func_19();
				if (!entity::is_entity_dead(player::player_ped_id(), 0))
				{
					unk_0x6BC97F4F4BB3C04B(player::player_id(), 1);
					func_26(player::player_ped_id());
					if (entity::does_entity_exist(iLocal_5941))
					{
						if (!ped::is_ped_in_vehicle(player::player_ped_id(), iLocal_5941, 1))
						{
							entity::set_vehicle_as_no_longer_needed(&iLocal_5941);
						}
					}
				}
				if (!entity::is_entity_dead(player::player_ped_id(), 0))
				{
					vVar2 = { entity::get_entity_coords(player::player_ped_id(), 1) };
					gameplay::clear_area_of_peds(vVar2, 750f, 0);
					gameplay::clear_area_of_cops(vVar2, 750f, 0);
					gameplay::clear_area_of_vehicles(vVar2, 1000f, 0, 0, 0, 0, false);
					gameplay::clear_area_of_projectiles(vVar2, 1000f, 0);
					fire::stop_fire_in_range(vVar2, 200f);
					iVar0 = gameplay::get_game_timer();
				}
				while ((gameplay::get_game_timer() - iVar0) < iVar1)
				{
					system::wait(0);
					func_799(iLocal_9745);
				}
			}
		}
		func_877();
		iLocal_7587 = iParam0;
		func_363();
		if (entity::does_entity_exist(iLocal_5941))
		{
			if (!ped::is_ped_in_vehicle(player::player_ped_id(), iLocal_5941, 1) && vehicle::_0xB2D06FAEDE65B577() != iLocal_5941)
			{
				entity::set_vehicle_as_no_longer_needed(&iLocal_5941);
			}
		}
		func_798();
		if (iParam0)
		{
			if (func_62(0))
			{
				weapon::set_current_ped_weapon(player::player_ped_id(), joaat("weapon_unarmed"), false);
			}
			graphics::_0x1612C45F9E3E0D44();
			ui::display_radar(true);
			ui::_set_radar_bigmap_enabled(1, 0);
			ui::_set_radar_zoom_level_this_frame(50f);
			ui::lock_minimap_angle(0);
			streaming::request_named_ptfx_asset("scr_mp_creator");
			while (!streaming::has_named_ptfx_asset_loaded("scr_mp_creator"))
			{
				func_799(iLocal_9745);
				system::wait(0);
			}
			if (iLocal_4056 > -1)
			{
				if (func_796(iLocal_4056, 0) > 0 || iLocal_4045 > 0)
				{
					func_805(iLocal_4056);
				}
			}
		}
		else
		{
			graphics::_0x5DEBD9C4DC995692();
		}
		if (iLocal_5754 == 3)
		{
			if ((iParam1 || cam::is_screen_faded_out()) && !iLocal_5511)
			{
				cam::do_screen_fade_in(2500);
				while (cam::is_screen_fading_in())
				{
					system::wait(0);
					func_799(iLocal_9745);
					func_6();
				}
			}
			if (!entity::is_entity_dead(player::player_ped_id(), 0))
			{
				player::set_player_control(player::player_id(), true, 0);
			}
		}
		else
		{
			cam::do_screen_fade_in(800);
		}
	}
	if (iLocal_7587 == 0)
	{
		if (!entity::is_entity_dead(player::player_ped_id(), 0))
		{
			unk_0x6BC97F4F4BB3C04B(player::player_id(), 0);
			func_24(player::player_ped_id());
		}
		func_19();
		func_23();
	}
}

int func_796(int iParam0, int iParam1)//Position - 0x871AB
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (iParam0 == -1)
	{
		if (iParam1)
		{
			return iLocal_4046;
		}
		else
		{
			return iLocal_4045;
		}
	}
	iVar0 = 0;
	iVar1 = 0;
	iVar2 = 0;
	iVar0 = 0;
	while (iVar0 < 50)
	{
		if (Local_4057[iParam0 /*351*/][iVar0 /*7*/].f_6 != 0)
		{
			iVar1++;
			if (iParam1)
			{
				if (func_797(Local_4057[iParam0 /*351*/][iVar0 /*7*/].f_6))
				{
					iVar2++;
				}
			}
		}
		iVar0++;
	}
	if (iParam1)
	{
		return iVar2;
	}
	return iVar1;
}

int func_797(int iParam0)//Position - 0x87230
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 231)
	{
		if (iParam0 == Local_304[iVar0 /*14*/].f_5)
		{
			return !Local_304[iVar0 /*14*/].f_6;
		}
		iVar0++;
	}
	return false;
}

void func_798()//Position - 0x87267
{
	if (ped::is_ped_getting_into_a_vehicle(player::player_ped_id()))
	{
		iLocal_5557 = ped::set_exclusive_phone_relationships(player::player_ped_id());
	}
	else if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
	{
		iLocal_5557 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 1);
	}
	else if (entity::does_entity_exist(vehicle::_0xB2D06FAEDE65B577()))
	{
		if (!entity::is_entity_dead(vehicle::_0xB2D06FAEDE65B577(), 0))
		{
			iLocal_5557 = vehicle::_0xB2D06FAEDE65B577();
		}
	}
	if (entity::does_entity_exist(iLocal_5557))
	{
		entity::set_entity_as_mission_entity(iLocal_5557, true, 0);
	}
}

void func_799(int iParam0)//Position - 0x872D5
{
	ui::hide_hud_and_radar_this_frame();
	ui::_0x25F87B30C382FCA7();
	func_800();
	func_181();
	unk1::_0xEB2D525B57F42B40();
	ped::set_ped_density_multiplier_this_frame(0f);
	vehicle::set_vehicle_density_multiplier_this_frame(0f);
	if (controls::_is_input_disabled(2))
	{
		controls::set_input_exclusive(2, 237);
		controls::set_input_exclusive(2, 238);
		controls::set_input_exclusive(2, 241);
		controls::set_input_exclusive(2, 242);
		if (!iParam0)
		{
			controls::set_input_exclusive(2, 239);
			controls::set_input_exclusive(2, 240);
		}
		controls::enable_control_action(2, 176, 1);
	}
	else
	{
		controls::set_input_exclusive(2, 176);
		controls::set_input_exclusive(2, 177);
	}
	controls::set_input_exclusive(2, 172);
	controls::set_input_exclusive(2, 173);
	controls::set_input_exclusive(2, 174);
	controls::set_input_exclusive(2, 175);
	controls::disable_control_action(0, 37, 1);
	controls::disable_control_action(0, 157, 1);
	controls::disable_control_action(0, 158, 1);
	controls::disable_control_action(0, 159, 1);
	controls::disable_control_action(0, 160, 1);
	controls::disable_control_action(0, 161, 1);
	controls::disable_control_action(0, 162, 1);
	controls::disable_control_action(0, 163, 1);
	controls::disable_control_action(0, 164, 1);
	controls::disable_control_action(0, 165, 1);
	controls::disable_control_action(0, 14, 1);
	controls::disable_control_action(0, 15, 1);
	controls::disable_control_action(0, 53, 1);
	controls::disable_control_action(0, 54, 1);
	controls::disable_control_action(0, 44, 1);
	controls::disable_control_action(0, 140, 1);
	controls::disable_control_action(0, 141, 1);
	controls::disable_control_action(0, 143, 1);
	controls::disable_control_action(0, 47, 1);
	controls::disable_control_action(0, 51, 1);
	controls::disable_control_action(0, 45, 1);
	controls::disable_control_action(0, 55, 1);
	controls::disable_control_action(0, 21, 1);
	controls::disable_control_action(0, 22, 1);
	controls::disable_control_action(0, 0, 1);
	controls::disable_control_action(0, 23, 1);
	controls::disable_control_action(0, 73, 1);
	controls::disable_control_action(0, 74, 1);
	controls::disable_control_action(0, 85, 1);
	controls::disable_control_action(0, 82, 1);
	controls::disable_control_action(0, 81, 1);
	controls::disable_control_action(0, 80, 1);
	controls::disable_control_action(0, 137, 1);
	controls::disable_control_action(0, 136, 1);
	controls::disable_control_action(0, 99, 1);
	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, 75, 1);
	controls::disable_control_action(0, 89, 1);
	controls::disable_control_action(0, 90, 1);
	controls::disable_control_action(0, 76, 1);
	controls::disable_control_action(0, 167, 1);
	controls::disable_control_action(0, 166, 1);
	controls::disable_control_action(0, 168, 1);
	controls::disable_control_action(0, 169, 1);
	controls::disable_control_action(0, 19, 1);
	controls::disable_control_action(0, 24, 1);
	controls::disable_control_action(0, 25, 1);
	controls::disable_control_action(0, 26, 1);
}

void func_800()//Position - 0x874F7
{
	Global_17118.f_6 = 1;
}

void func_801()//Position - 0x87505
{
	int iVar0;
	var uVar1;
	
	iVar0 = 0;
	while (iVar0 <= 13)
	{
		uVar1 = iLocal_7520[iVar0];
		iLocal_7520[iVar0] = iLocal_7572[iVar0];
		iLocal_7572[iVar0] = uVar1;
		iVar0++;
	}
}

void func_802(vector3 vParam0, var uParam3, var uParam4, var uParam5, var uParam6, var uParam7, var uParam8, var uParam9)//Position - 0x87540
{
	vector3 vVar0;
	float fVar3;
	vector3 vVar4;
	float fVar7;
	vector3 vVar8;
	vector3 vVar11;
	float fVar14;
	
	vVar0 = { entity::get_entity_coords(player::player_ped_id(), 1) };
	fVar3 = entity::get_entity_heading(player::player_ped_id());
	vVar4 = { entity::get_entity_coords(vParam0.f_8, 1) };
	fVar7 = 0f;
	vVar8 = { 0f, 0f, 0f };
	vVar11 = { 0f, 0f, 0f };
	if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
	{
		return;
	}
	ai::clear_ped_tasks(player::player_ped_id());
	player::set_player_control(player::player_id(), false, 0);
	cam::do_screen_fade_out(250);
	while (!cam::is_screen_faded_out())
	{
		system::wait(0);
		func_799(1);
	}
	gameplay::get_model_dimensions(vParam0.f_7, &vVar8, &vVar11);
	fVar14 = (vVar11.y - vVar8.y);
	vVar4.z = (vVar4.y + (fVar14 + 2f));
	if (!player::is_player_teleport_active())
	{
		func_722(vVar4, -1082130432, 1, 1, 12000);
	}
	entity::freeze_entity_position(player::player_ped_id(), true);
	system::wait(0);
	func_799(1);
	if (water::test_vertical_probe_against_all_water(vVar4, 511, &(vVar4.f_2)) != 0)
	{
		fVar7 = func_803(vVar4, vParam0);
		if (!player::is_player_teleport_active())
		{
			func_722(vVar4, fVar7, 1, 1, 12000);
		}
	}
	else
	{
		if (!player::is_player_teleport_active())
		{
			func_722(vVar0, fVar3, 1, 1, 12000);
		}
		func_176("Can't find valid warp position.", -1);
	}
	player::set_player_control(player::player_id(), true, 0);
	cam::set_gameplay_cam_relative_heading(0f);
	cam::set_gameplay_cam_relative_pitch(0f, 1065353216);
	cam::do_screen_fade_in(250);
}

float func_803(struct<2> Param0, var uParam2, struct<2> Param3, float fParam5)//Position - 0x87685
{
	return gameplay::get_heading_from_vector_2d((Param3 - Param0), (Param3.f_1 - Param0.f_1));
}

void func_804(int iParam0)//Position - 0x8769F
{
	iLocal_220 = iParam0;
	iLocal_5532 = 0;
	sLocal_5554 = "RemovePropMenuHelp";
}

void func_805(int iParam0)//Position - 0x876B4
{
	iLocal_4055 = (iParam0 + 1 % 4);
	iLocal_4056 = iParam0;
	if (!iLocal_5631)
	{
		func_806(1);
	}
	iLocal_5552 = false;
	iLocal_5511 = 1;
	if (iLocal_4045 == 0 && Local_5462[iParam0 /*12*/] == 0)
	{
		iLocal_5512 = 1;
	}
	func_806(0);
}

void func_806(int iParam0)//Position - 0x876FD
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 50)
	{
		if (ui::does_blip_exist(uLocal_5562[iVar0]))
		{
			ui::remove_blip(&(uLocal_5562[iVar0]));
		}
	else
	{
		}
		else
		{
			iVar0++;
		}
	}
	fLocal_5559 = fLocal_5560;
	ui::unlock_minimap_position();
	if (iParam0)
	{
		iLocal_5558 = -2;
		iVar0 = 0;
		while (iVar0 < 50)
		{
			if (ui::does_blip_exist(Local_3544[iVar0 /*10*/].f_9))
			{
				ui::set_blip_display(Local_3544[iVar0 /*10*/].f_9, 4);
			}
			iVar0++;
		}
		ui::unlock_minimap_angle();
	}
	iLocal_5561 = false;
}

void func_807(int iParam0)//Position - 0x87785
{
	int iVar0;
	int iVar1;
	struct<6> Var2;
	
	iLocal_5552 = false;
	iLocal_4056 = iParam0;
	iLocal_4055 = (iParam0 + 1 % 4);
	iVar0 = 0;
	iVar1 = 0;
	while (iVar1 < 50)
	{
		if (entity::does_entity_exist(Local_3544[iVar1 /*10*/].f_8))
		{
			Local_4057[iParam0 /*351*/][iVar0 /*7*/].f_6 = Local_3544[iVar1 /*10*/].f_7;
			Local_4057[iParam0 /*351*/][iVar0 /*7*/] = { entity::get_entity_coords(Local_3544[iVar1 /*10*/].f_8, 1) };
			Local_4057[iParam0 /*351*/][iVar0 /*7*/].f_3 = { entity::get_entity_rotation(Local_3544[iVar1 /*10*/].f_8, 2) };
			iVar0++;
		}
		iVar1++;
	}
	while (iVar0 < 50)
	{
		Local_4057[iParam0 /*351*/][iVar0 /*7*/].f_6 = 0;
		Local_4057[iParam0 /*351*/][iVar0 /*7*/] = { 0f, 0f, 0f };
		Local_4057[iParam0 /*351*/][iVar0 /*7*/].f_3 = { 0f, 0f, 0f };
		iVar0++;
	}
	Local_5462[iParam0 /*12*/] = func_796(iParam0, 0);
	Local_5462[iParam0 /*12*/].f_1 = func_796(iParam0, 1);
	Local_5462[iParam0 /*12*/].f_2 = { func_808(iParam0) };
	StringCopy(&Var2, "Scene ", 24);
	StringIntConCat(&Var2, iParam0 + 1, 24);
	Local_5462[iParam0 /*12*/].f_6 = { Var2 };
}

struct<4> func_808(int iParam0)//Position - 0x878AE
{
	int iVar0;
	struct<4> Var1[50];
	int iVar202[50];
	int iVar253;
	char* sVar254;
	int iVar255;
	int iVar256;
	int iVar257;
	int iVar258;
	
	iVar253 = 0;
	iVar0 = 0;
	while (iVar0 < Local_5462[iParam0 /*12*/])
	{
		if (Local_4057[iParam0 /*351*/][iVar0 /*7*/].f_6 != 0)
		{
			sVar254 = zone::get_name_of_zone(Local_4057[iParam0 /*351*/][iVar0 /*7*/]);
			if (iVar253 > 0)
			{
				iVar255 = 0;
				iVar256 = false;
				iVar255 = 0;
				while (iVar255 < iVar253)
				{
					if (gameplay::are_strings_equal(sVar254, &(Var1[iVar255 /*4*/])))
					{
						iVar202[iVar255]++;
						iVar256 = true;
					}
					else
					{
						iVar255++;
					}
				}
				if (!iVar256)
				{
					StringCopy(&(Var1[iVar253 /*4*/]), sVar254, 16);
					iVar202[iVar253] = 1;
					iVar253++;
				}
			}
			else
			{
				StringCopy(&(Var1[0 /*4*/]), sVar254, 16);
				iVar202[0] = 1;
				iVar253++;
			}
		}
		iVar0++;
	}
	iVar257 = 0;
	iVar258 = 0;
	iVar0 = 0;
	while (iVar0 < iVar253)
	{
		if (iVar202[iVar0] > iVar257)
		{
			iVar257 = iVar202[iVar0];
			iVar258 = iVar0;
		}
		iVar0++;
	}
	return Var1[iVar258 /*4*/];
}

void func_809()//Position - 0x879D1
{
	if (iLocal_9732)
	{
		iLocal_9730 = 0;
		iLocal_9731 = 0;
		if (controls::is_disabled_control_just_pressed(2, 201))
		{
			iLocal_9730 = 1;
		}
		if (controls::is_disabled_control_just_pressed(2, 202))
		{
			iLocal_9731 = 1;
		}
	}
	if (iLocal_5754 != 3 && !iLocal_9732)
	{
		iLocal_9717 = 0;
		iLocal_9719 = false;
		if (controls::is_control_just_pressed(2, 201))
		{
			iLocal_9717 = 1;
		}
		if (controls::is_control_just_pressed(2, 202))
		{
			iLocal_9719 = true;
		}
	}
}

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

void func_811(var uParam0)//Position - 0x87A72
{
	*uParam0 = func_812(*uParam0, iLocal_9714);
	if (*uParam0 >= 29)
	{
		*uParam0 = 1;
	}
	if (*uParam0 < 1)
	{
		*uParam0 = (29 - 1);
	}
}

int func_812(int iParam0, int iParam1)//Position - 0x87AA1
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	iVar0 = true;
	if (iParam1 == 0)
	{
		iVar0 = false;
	}
	if (iParam0 <= 0)
	{
		iParam0 = (29 - 1);
	}
	if (iParam0 >= 29)
	{
		iParam0 = 1;
	}
	iVar1 = func_106(iLocal_7676[4]);
	if (iVar1 < 0)
	{
		iVar1 = 0;
	}
	if (iParam1 == 0)
	{
		iParam1 = 1;
	}
	if (!func_664(Local_6878[iVar1 /*32*/].f_27) || Local_6878[iVar1 /*32*/].f_27 == joaat("ig_jimmydisanto"))
	{
		iVar3 = true;
		while (iVar3)
		{
			if (iParam0 <= 0)
			{
				iParam0 = (29 - 1);
			}
			if (iParam0 >= 29)
			{
				iParam0 = 1;
			}
			iVar2 = iParam0;
			switch (iVar2)
			{
				case 8:
				case 9:
				case 10:
				case 7:
				case 13:
					if (iVar0)
					{
						iParam0 = (iParam0 + iParam1);
					}
					else
					{
						iParam0 = 1;
						iVar3 = false;
					}
					break;
				
				default:
					iVar3 = false;
					break;
			}
		}
	}
	while (func_303(2, iParam0))
	{
		iParam0 = (iParam0 + iParam1);
		if (iParam0 <= 0)
		{
			iParam0 = (29 - 1);
		}
		if (iParam0 >= 29)
		{
			iParam0 = 1;
		}
	}
	switch (Local_6878[iVar1 /*32*/].f_27)
	{
		case joaat("s_m_y_fireman_01"):
			if (Local_6878[iVar1 /*32*/].f_1[7] > 0)
			{
				iParam0 = func_814(iParam0, iParam1, 1, 4, 12, 15, 16, 18, 20, 0);
			}
			break;
		
		case joaat("g_m_y_salvaboss_01"):
			if (Local_6878[iVar1 /*32*/].f_1[7] == 1)
			{
				iParam0 = func_813(iParam0, iParam1, 5, 13, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
			}
			break;
		
		case joaat("s_m_y_marine_03"):
			if (Local_6878[iVar1 /*32*/].f_1[2] == 2 || Local_6878[iVar1 /*32*/].f_1[2] == 3)
			{
				iParam0 = func_813(iParam0, iParam1, 5, 13, 10, 17, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
			}
			break;
		
		case joaat("a_m_o_tramp_01"):
			iParam0 = func_813(iParam0, iParam1, 2, 7, 8, 9, 18, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case joaat("s_m_m_movspace_01"):
			iParam0 = func_813(iParam0, iParam1, 5, 19, 10, 13, 17, 19, 23, 28, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case joaat("u_f_y_spyactress"):
		case joaat("u_f_m_corpse_01"):
			iParam0 = func_813(iParam0, iParam1, 7, 8, 9, 10, 13, 19, 5, 17, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case joaat("s_m_y_factory_01"):
			iParam0 = func_813(iParam0, iParam1, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case joaat("ig_stretch"):
			iParam0 = func_813(iParam0, iParam1, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case joaat("s_m_m_lsmetro_01"):
			iParam0 = func_813(iParam0, iParam1, 5, 8, 12, 17, 21, 27, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case joaat("s_m_m_postal_02"):
			iParam0 = func_813(iParam0, iParam1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case joaat("ig_maude"):
			iParam0 = func_813(iParam0, iParam1, 8, 9, 7, 13, 10, 21, 22, 27, 28, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case joaat("a_f_y_business_03"):
			iParam0 = func_813(iParam0, iParam1, 8, 9, 7, 13, 10, 21, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case joaat("g_m_m_mexboss_01"):
			iParam0 = func_813(iParam0, iParam1, 29, 21, 27, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
		
		case joaat("u_m_y_mani"):
			iParam0 = func_813(iParam0, iParam1, 12, 11, 2, 3, 16, 18, 19, 27, 28, 26, 0, 0, 0, 0, 0, 0);
			break;
		
		case joaat("a_f_m_beach_01"):
		case joaat("s_f_y_ranger_01"):
			iParam0 = func_813(iParam0, iParam1, 8, 9, 7, 13, 10, 27, 28, 26, 0, 0, 0, 0, 0, 0, 0, 0);
			break;
	}
	if (Local_6878[iVar1 /*32*/].f_27 == func_747(8))
	{
		iParam0 = func_813(iParam0, iParam1, 5, 6, 8, 12, 16, 17, 18, 19, 9, 27, 28, 24, 25, 0, 0, 0);
	}
	return iParam0;
}

int func_813(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13, int iParam14, int iParam15, int iParam16, int iParam17)//Position - 0x87E57
{
	int iVar0;
	int iVar1[16];
	int iVar18;
	int iVar19;
	
	iVar1[0] = iParam2;
	iVar1[1] = iParam3;
	iVar1[2] = iParam4;
	iVar1[3] = iParam5;
	iVar1[4] = iParam6;
	iVar1[5] = iParam7;
	iVar1[6] = iParam8;
	iVar1[7] = iParam9;
	iVar1[8] = iParam10;
	iVar1[9] = iParam11;
	iVar1[10] = iParam12;
	iVar1[11] = iParam13;
	iVar1[12] = iParam14;
	iVar1[13] = iParam15;
	iVar1[14] = iParam16;
	iVar1[15] = iParam17;
	if (iParam1 == 0)
	{
		iParam1 = 1;
	}
	iVar18 = true;
	while (iVar18)
	{
		if (func_303(2, iParam0))
		{
			iParam0 = (iParam0 + iParam1);
			if (iParam0 <= 0)
			{
				iParam0 = (29 - 1);
			}
			if (iParam0 >= 29)
			{
				iParam0 = 1;
			}
		}
		else
		{
			iVar18 = false;
			iVar0 = iParam0;
			iVar19 = 0;
			while (iVar19 < iVar1)
			{
				if (iVar1[iVar19] != 0)
				{
					if (iVar0 == iVar1[iVar19])
					{
						iParam0 = (iParam0 + iParam1);
						if (iParam0 <= 0)
						{
							iParam0 = (29 - 1);
						}
						if (iParam0 >= 29)
						{
							iParam0 = 1;
						}
						iVar0 = iParam0;
						iVar18 = true;
					}
				}
				else
				{
					iVar19 = iVar1;
				}
				iVar19++;
			}
		}
	}
	return iParam0;
}

int func_814(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9)//Position - 0x87F77
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3[8];
	int iVar12;
	int iVar13;
	
	iVar2 = 1;
	if (iParam9 != 0)
	{
		iVar2 = 8;
	}
	else if (iParam8 != 0)
	{
		iVar2 = 7;
	}
	else if (iParam7 != 0)
	{
		iVar2 = 6;
	}
	else if (iParam6 != 0)
	{
		iVar2 = 5;
	}
	else if (iParam5 != 0)
	{
		iVar2 = 4;
	}
	else if (iParam4 != 0)
	{
		iVar2 = 3;
	}
	else if (iParam3 != 0)
	{
		iVar2 = 2;
	}
	iVar3[0] = iParam2;
	iVar3[1] = iParam3;
	iVar3[2] = iParam4;
	iVar3[3] = iParam5;
	iVar3[4] = iParam6;
	iVar3[5] = iParam7;
	iVar3[6] = iParam8;
	iVar3[7] = iParam9;
	iVar12 = 999999;
	iVar13 = 99999;
	if (iParam1 == -1)
	{
		iVar12 = 0;
		iVar13 = 0;
	}
	iVar0 = 0;
	while (iVar0 < iVar2)
	{
		if (iParam1 == -1)
		{
			if (iParam0 < iVar3[iVar0])
			{
				if (iVar3[iVar0] > iVar12)
				{
					iVar12 = iVar3[iVar0];
				}
			}
			else if (iVar3[iVar0] > iVar13)
			{
				iVar13 = iVar3[iVar0];
			}
		}
		else if (iParam1 == 1)
		{
			if (iVar3[iVar0] < iParam0)
			{
				if (iVar3[iVar0] < iVar12)
				{
					iVar12 = iVar3[iVar0];
				}
			}
			else if (iVar3[iVar0] < iVar13)
			{
				iVar13 = iVar3[iVar0];
			}
		}
		else if (iVar3[iVar0] < iVar12)
		{
			iVar12 = iVar3[iVar0];
		}
		iVar0++;
	}
	if ((iVar13 == 99999 && iParam1 == 1) || (iVar13 == 0 && iParam1 == -1))
	{
		iVar1 = iVar12;
	}
	else if (iParam1 == 0)
	{
		iVar1 = iVar12;
	}
	else
	{
		iVar1 = iVar13;
	}
	return iVar1;
}

bool func_815(int iParam0)//Position - 0x8810B
{
	vector3 vVar0;
	float fVar3;
	
	if (ped::is_ped_in_any_vehicle(iParam0, 0) && !ped::is_ped_sitting_in_any_vehicle(iParam0))
	{
		vVar0 = { entity::get_entity_coords(iParam0, 1) };
		fVar3 = 0f;
		if (gameplay::get_ground_z_for_3d_coord(vVar0, &fVar3, 0))
		{
			if (vVar0.y > (fVar3 + 1.5f))
			{
				return true;
			}
			return false;
		}
		else
		{
			return true;
		}
	}
	return false;
}

void func_816()//Position - 0x88165
{
	vector3 vVar0;
	
	vVar0 = { entity::get_entity_coords(player::player_ped_id(), 1) };
	if (vVar0.y < -190f)
	{
		iLocal_7520[6] = 1;
		func_23();
	}
}

void func_817()//Position - 0x88192
{
	if (iLocal_7520[3] == 0)
	{
		ped::set_scenario_ped_density_multiplier_this_frame(0f, 0f);
	}
	if (iLocal_7520[2] == 4)
	{
		if (entity::does_entity_exist(player::player_ped_id()) && !entity::is_entity_dead(player::player_ped_id(), 0))
		{
			unk_0xFAC75988A7D078D3(player::player_id());
		}
	}
}

int func_818(int iParam0, int iParam1)//Position - 0x881D6
{
	if (iParam0 >= 70)
	{
		return 0;
	}
	return func_819(iParam0, iParam1);
}

bool func_819(int iParam0, int iParam1)//Position - 0x881F1
{
	if (func_211(14) && !func_830(iParam0))
	{
		return false;
	}
	if (player::has_achievement_been_passed(iParam0) && iParam1 == 1)
	{
		return false;
	}
	if (Global_25398 != 0 && !Global_69521)
	{
		return false;
	}
	if (func_829(&Global_2568285))
	{
		if (func_827(&Global_2568285, iParam0))
		{
			return false;
		}
		if (func_820(&Global_2568285, 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_820(var uParam0, int iParam1)//Position - 0x8828E
{
	int iVar0;
	var uVar1[70];
	
	if (player::has_achievement_been_passed(iParam1))
	{
		return false;
	}
	if (func_211(14) && !func_830(iParam1))
	{
		return false;
	}
	if (func_827(uParam0, iParam1))
	{
		return false;
	}
	if (func_826(uParam0) < 0f)
	{
		func_825(uParam0, 0);
	}
	func_823(&uVar1);
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < (*uParam0 - 1))
	{
		uVar1[iVar0 + 1] = (*uParam0)[iVar0];
		iVar0++;
	}
	func_821(&uVar1, iParam1);
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < *uParam0)
	{
		(*uParam0)[iVar0] = uVar1[iVar0];
		iVar0++;
	}
	return true;
}

bool func_821(var uParam0, int iParam1)//Position - 0x8833F
{
	int iVar0;
	
	if (player::has_achievement_been_passed(iParam1))
	{
		return false;
	}
	if (func_211(14) && !func_830(iParam1))
	{
		return false;
	}
	if (func_827(uParam0, iParam1))
	{
		return false;
	}
	if (func_826(uParam0) < 0f)
	{
		func_825(uParam0, 0);
	}
	iVar0 = 0;
	while (iVar0 < *uParam0)
	{
		if (func_822(uParam0, iVar0))
		{
			(*uParam0)[iVar0] = iParam1;
			return true;
		}
		iVar0++;
	}
	return false;
}

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

void func_823(var uParam0)//Position - 0x883CB
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < *uParam0)
	{
		func_824(uParam0, iVar0);
		iVar0++;
	}
	func_825(uParam0, (Global_2568284 - 0.5f));
}

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

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

var func_826(var uParam0)//Position - 0x8842C
{
	return uParam0->f_72;
}

int func_827(var uParam0, int iParam1)//Position - 0x88438
{
	return func_828(uParam0, iParam1) != -1;
}

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

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

bool func_830(int iParam0)//Position - 0x88485
{
	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_831()//Position - 0x884D5
{
	int iVar0;
	var uVar1;
	var uVar2;
	int iVar3;
	int iVar4;
	
	if (iLocal_5943 && iLocal_5942 != 0)
	{
		switch (iLocal_5944)
		{
			case 0:
				if (streaming::has_model_loaded(iLocal_5942) && cam::is_screen_faded_out())
				{
					gameplay::clear_area_of_projectiles(entity::get_entity_coords(player::player_ped_id(), 1), 2f, 0);
					vLocal_9798 = { entity::get_entity_coords(player::player_ped_id(), 1) };
					fLocal_9801 = entity::get_entity_heading(player::player_ped_id());
					iLocal_9802 = false;
					if (entity::does_entity_exist(iLocal_5941))
					{
						if (ped::is_ped_in_vehicle(player::player_ped_id(), iLocal_5941, 0))
						{
							iVar0 = entity::get_entity_model(iLocal_5941);
							if ((vehicle::is_this_model_a_heli(iVar0) || vehicle::is_this_model_a_plane(iVar0)) && entity::is_entity_in_air(iLocal_5941))
							{
								iLocal_9802 = true;
							}
						}
					}
					if (!(vehicle::is_this_model_a_heli(iLocal_5942) || vehicle::is_this_model_a_plane(iLocal_5942)))
					{
						gameplay::get_ground_z_for_3d_coord(vLocal_9798, &uVar1, 0);
						vLocal_9798.z = uVar1;
					}
					if (iLocal_9802 && (vehicle::is_this_model_a_heli(iLocal_5942) || vehicle::is_this_model_a_plane(iLocal_5942)))
					{
						vLocal_9798 = { entity::get_entity_coords(player::player_ped_id(), 1) };
						fLocal_9801 = entity::get_entity_heading(player::player_ped_id());
					}
					else
					{
						iLocal_9802 = false;
						if (!func_7(&vLocal_9798, &fLocal_9801, iLocal_5942, 1, 0, 2.5f))
						{
							func_856(&vLocal_9798, &fLocal_9801, iLocal_5942);
						}
					}
					iLocal_5944++;
				}
				break;
			
			case 1:
				if (entity::does_entity_exist(iLocal_5941))
				{
					if (ped::is_ped_in_vehicle(player::player_ped_id(), iLocal_5941, 0))
					{
						entity::set_entity_coords(player::player_ped_id(), entity::get_entity_coords(player::player_ped_id(), 1) + Vector(1f, 0f, 0f), 1, false, 0, 1);
						iLocal_5946 = 1;
					}
					func_853(&iLocal_5941);
					if (ui::does_blip_exist(iLocal_5940))
					{
						ui::remove_blip(&iLocal_5940);
					}
				}
				if (!streaming::is_new_load_scene_active())
				{
					streaming::_new_load_scene_start_safe(vLocal_9798, 10f, 0);
				}
				iLocal_5941 = vehicle::create_vehicle(iLocal_5942, vLocal_9798, fLocal_9801, 1, true);
				entity::freeze_entity_position(iLocal_5941, true);
				iLocal_9803 = gameplay::get_game_timer() + 1500;
				if (iLocal_5946)
				{
					ped::set_ped_into_vehicle(player::player_ped_id(), iLocal_5941, -1);
				}
				if (Local_5839.f_66 != 0)
				{
					func_845(iLocal_5941, &Local_5839, 0, 1);
				}
				else if (iLocal_5942 == joaat("marshall"))
				{
					iVar3 = gameplay::get_random_int_in_range(1, 26);
					Local_5839.f_66 = joaat("marshall");
					uVar2 = Global_68346;
					Global_68346 = iVar3;
					func_834(200, &Local_5839, 1, 145, -1);
					func_845(iLocal_5941, &Local_5839, 0, 1);
					Global_68346 = uVar2;
				}
				if (!ui::does_blip_exist(iLocal_5940))
				{
					iLocal_5940 = func_832(iLocal_5941, 0, 0);
					ui::set_blip_sprite(iLocal_5940, 225);
					ui::set_blip_name_from_text_file(iLocal_5940, "CM_GARGVEH");
				}
				iLocal_5944++;
				break;
			
			case 2:
				iVar4 = false;
				if (streaming::is_new_load_scene_loaded() || gameplay::get_game_timer() > iLocal_9803)
				{
					streaming::new_load_scene_stop();
					iVar4 = true;
				}
				else if (!streaming::is_new_load_scene_active())
				{
					iVar4 = true;
				}
				if (iVar4)
				{
					if (!entity::is_entity_dead(iLocal_5941, 0))
					{
						entity::freeze_entity_position(iLocal_5941, false);
						if (iLocal_9802)
						{
							rope::activate_physics(iLocal_5941);
							if (vehicle::is_this_model_a_heli(iLocal_5942))
							{
								vehicle::set_heli_blades_full_speed(iLocal_5941);
							}
							else if (vehicle::is_this_model_a_plane(iLocal_5942))
							{
								vehicle::set_vehicle_forward_speed(iLocal_5941, 60f);
								vehicle::_set_vehicle_landing_gear(iLocal_5941, 3);
							}
						}
						else
						{
							vehicle::set_vehicle_on_ground_properly(iLocal_5941);
						}
					}
					cam::do_screen_fade_in(800);
					iLocal_5943 = 0;
					iLocal_5946 = 0;
				}
				break;
			}
	}
}

int func_832(int iParam0, int iParam1, int iParam2)//Position - 0x88803
{
	return func_833(iParam0, !iParam1, iParam2);
}

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

void func_834(int iParam0, var uParam1, int iParam2, int iParam3, int iParam4)//Position - 0x888BA
{
	int iVar0;
	var uVar1;
	var uVar2;
	var uVar3;
	var uVar4;
	int iVar5;
	char* sVar6;
	int iVar10;
	var uVar11;
	var uVar12;
	int iVar13;
	char* sVar14;
	int iVar18;
	var uVar19;
	var uVar20;
	
	uParam1->f_66 = func_159(iParam0, iParam4);
	if (uParam1->f_66 == 0)
	{
		if (iParam2)
		{
		}
		return;
	}
	if (iParam3 == 2 && uParam1->f_66 == joaat("frogger"))
	{
		uParam1->f_66 = joaat("frogger2");
		uParam1->f_5 = 0;
		uParam1->f_6 = 0;
		uParam1->f_7 = 0;
		uParam1->f_8 = 0;
		uParam1->f_67 = 1;
		return;
	}
	uParam1->f_77 = 0;
	func_844(iParam0, &(uParam1->f_77));
	uParam1->f_9[16] = 0;
	if ((iParam0 == 181 || iParam0 == 178) || iParam0 == 179)
	{
		uParam1->f_9[16] = 4;
	}
	else if (func_843(iParam0))
	{
		if (Global_68347)
		{
			uParam1->f_9[16] = 4;
		}
	}
	uParam1->f_9[23] = 0;
	if (iParam0 == 218)
	{
		uParam1->f_9[23] = 7;
	}
	uParam1->f_9[48] = 0;
	uParam1->f_98 = 0;
	if (iParam0 == 251)
	{
		uParam1->f_98 = 4;
	}
	uParam1->f_65 = 0;
	if (iParam0 == 263)
	{
		if (Global_68347)
		{
			uParam1->f_65 = 1;
		}
	}
	if (iParam2)
	{
		iVar0 = Global_68346;
	}
	else if (iParam3 == 0)
	{
		iVar0 = Global_101186.f_29783.f_313[iParam0];
	}
	else if (iParam3 == 1)
	{
		iVar0 = Global_101186.f_29783.f_626[iParam0];
	}
	else if (iParam3 == 2)
	{
		iVar0 = Global_101186.f_29783.f_939[iParam0];
	}
	uParam1->f_5 = 0;
	uParam1->f_6 = 0;
	uParam1->f_7 = 0;
	uParam1->f_8 = 156;
	uParam1->f_67 = -1;
	if (iParam0 == 200)
	{
		switch (iVar0)
		{
			case 1:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 2:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 3:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 4:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 5:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 6:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 7:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 8:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 9:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 10:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 11:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 12:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 13:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 14:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 15:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 16:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 17:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 18:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 19:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 20:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 21:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 22:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 23:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 24:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			case 25:
				func_840(func_841(iParam0, iVar0), &(uParam1->f_5), &(uParam1->f_6));
				uParam1->f_7 = 4;
				uParam1->f_8 = 156;
				uParam1->f_67 = func_839(func_841(iParam0, iVar0));
				break;
			
			default:
				break;
		}
	}
	else if (iParam0 == 219)
	{
		switch (iVar0)
		{
			case 1:
				uParam1->f_5 = 98;
				uParam1->f_6 = 98;
				uParam1->f_7 = 0;
				uParam1->f_8 = 156;
				uParam1->f_67 = 1;
				break;
			
			case 2:
				uParam1->f_5 = 111;
				uParam1->f_6 = 111;
				uParam1->f_7 = 0;
				uParam1->f_8 = 156;
				uParam1->f_67 = 2;
				break;
			
			case 3:
				uParam1->f_5 = 135;
				uParam1->f_6 = 135;
				uParam1->f_7 = 0;
				uParam1->f_8 = 156;
				uParam1->f_67 = 3;
				break;
			
			case 4:
				uParam1->f_5 = 59;
				uParam1->f_6 = 59;
				uParam1->f_7 = 0;
				uParam1->f_8 = 156;
				uParam1->f_67 = 8;
				break;
			
			case 5:
				uParam1->f_5 = 98;
				uParam1->f_6 = 98;
				uParam1->f_7 = 0;
				uParam1->f_8 = 156;
				uParam1->f_67 = 4;
				break;
			
			case 6:
				uParam1->f_5 = 98;
				uParam1->f_6 = 98;
				uParam1->f_7 = 0;
				uParam1->f_8 = 156;
				uParam1->f_67 = 5;
				break;
			
			case 7:
				uParam1->f_5 = 42;
				uParam1->f_6 = 42;
				uParam1->f_7 = 0;
				uParam1->f_8 = 156;
				uParam1->f_67 = 7;
				break;
			
			case 8:
				uParam1->f_5 = 111;
				uParam1->f_6 = 111;
				uParam1->f_7 = 0;
				uParam1->f_8 = 156;
				uParam1->f_67 = 6;
				break;
			
			default:
				break;
		}
	}
	else
	{
		switch (iVar0)
		{
			case 1:
				if (func_838(iParam0))
				{
					if (iParam0 != 164)
					{
						if (func_837(iParam0, iVar0, &uVar1))
						{
							uParam1->f_9[48] = uVar1;
						}
						else if (func_836(iParam0, iVar0, &(uParam1->f_5), &(uParam1->f_6), &(uParam1->f_9[48])))
						{
						}
						else
						{
							uParam1->f_67 = 0;
						}
					}
					else
					{
						uParam1->f_67 = func_839(func_841(iParam0, iVar0));
					}
				}
				else if (func_843(iParam0))
				{
					if (!Global_68347)
					{
						uParam1->f_5 = 143;
						uParam1->f_6 = 34;
						uParam1->f_7 = 31;
						uParam1->f_96 = 99;
						uParam1->f_67 = -1;
					}
					else
					{
						uParam1->f_5 = 40;
						uParam1->f_6 = 40;
						uParam1->f_96 = 93;
						uParam1->f_67 = -1;
					}
				}
				else
				{
					uParam1->f_5 = 27;
					uParam1->f_6 = 36;
					uParam1->f_67 = -1;
				}
				break;
			
			case 2:
				if (func_838(iParam0))
				{
					if (iParam0 != 164)
					{
						if (func_837(iParam0, iVar0, &uVar2))
						{
							uParam1->f_9[48] = uVar2;
						}
						else if (func_836(iParam0, iVar0, &(uParam1->f_5), &(uParam1->f_6), &(uParam1->f_9[48])))
						{
						}
						else
						{
							uParam1->f_67 = 1;
						}
					}
					else
					{
						uParam1->f_5 = 0;
						uParam1->f_6 = 10;
						uParam1->f_7 = 4;
						uParam1->f_8 = 156;
						uParam1->f_67 = func_839(func_841(iParam0, iVar0));
					}
				}
				else if (func_843(iParam0))
				{
					if (!Global_68347)
					{
						uParam1->f_5 = 8;
						uParam1->f_6 = 8;
						uParam1->f_7 = 5;
						uParam1->f_96 = 106;
						uParam1->f_67 = -1;
					}
					else
					{
						uParam1->f_5 = 14;
						uParam1->f_6 = 14;
						uParam1->f_96 = 108;
						uParam1->f_67 = -1;
					}
				}
				else
				{
					uParam1->f_5 = 135;
					uParam1->f_6 = 135;
					uParam1->f_67 = -1;
				}
				break;
			
			case 3:
				if (func_838(iParam0))
				{
					if (func_837(iParam0, iVar0, &uVar3))
					{
						uParam1->f_9[48] = uVar3;
					}
					else if (func_836(iParam0, iVar0, &(uParam1->f_5), &(uParam1->f_6), &(uParam1->f_9[48])))
					{
					}
					else
					{
						uParam1->f_67 = 2;
					}
				}
				else if (func_843(iParam0))
				{
					if (!Global_68347)
					{
						uParam1->f_5 = 100;
						uParam1->f_6 = 100;
						uParam1->f_7 = 100;
						uParam1->f_96 = 22;
						uParam1->f_67 = -1;
					}
					else
					{
						uParam1->f_5 = 152;
						uParam1->f_6 = 152;
						uParam1->f_96 = 22;
						uParam1->f_67 = -1;
					}
				}
				else
				{
					uParam1->f_5 = 88;
					uParam1->f_6 = 88;
					uParam1->f_67 = -1;
				}
				break;
			
			case 4:
				if (func_838(iParam0))
				{
					if (func_837(iParam0, iVar0, &uVar4))
					{
						uParam1->f_9[48] = uVar4;
					}
					else if (func_836(iParam0, iVar0, &(uParam1->f_5), &(uParam1->f_6), &(uParam1->f_9[48])))
					{
					}
					else
					{
						uParam1->f_67 = 3;
					}
				}
				else if (func_843(iParam0))
				{
					if (!Global_68347)
					{
						uParam1->f_5 = 99;
						uParam1->f_6 = 99;
						uParam1->f_7 = 106;
						uParam1->f_96 = 101;
						uParam1->f_67 = -1;
					}
					else
					{
						uParam1->f_5 = 99;
						uParam1->f_6 = 99;
						uParam1->f_96 = 48;
						uParam1->f_67 = -1;
					}
				}
				else
				{
					uParam1->f_5 = 38;
					uParam1->f_6 = 27;
					while (func_835(iVar5, &sVar6, &iVar10, &uVar11, &uVar12))
					{
						if (gameplay::are_strings_equal(&sVar6, "ORANGE") && iVar10 == 1)
						{
							uParam1->f_5 = uVar11;
							uParam1->f_6 = uVar12;
							iVar5 = -99;
						}
						iVar5++;
					}
					uParam1->f_67 = -1;
				}
				break;
			
			case 5:
				if (func_843(iParam0))
				{
					if (!Global_68347)
					{
						uParam1->f_5 = 49;
						uParam1->f_6 = 49;
						uParam1->f_7 = 52;
						uParam1->f_96 = 98;
						uParam1->f_67 = -1;
					}
					else
					{
						uParam1->f_5 = 128;
						uParam1->f_6 = 128;
						uParam1->f_96 = 99;
						uParam1->f_67 = -1;
					}
				}
				else if ((iParam0 == 178 || iParam0 == 179) || iParam0 == 192)
				{
					uParam1->f_5 = 152;
					uParam1->f_6 = 152;
					uParam1->f_7 = 18;
					uParam1->f_8 = 152;
				}
				else
				{
					uParam1->f_5 = 128;
					uParam1->f_6 = 0;
					while (func_835(iVar13, &sVar14, &iVar18, &uVar19, &uVar20))
					{
						if (gameplay::are_strings_equal(&sVar14, "LIME_GREEN") && iVar18 == 1)
						{
							uParam1->f_5 = uVar19;
							uParam1->f_6 = uVar20;
							iVar13 = -99;
						}
						iVar13++;
					}
					uParam1->f_67 = -1;
				}
				break;
			
			case 6:
				if (func_843(iParam0))
				{
					if (!Global_68347)
					{
						uParam1->f_5 = 141;
						uParam1->f_6 = 141;
						uParam1->f_7 = 73;
						uParam1->f_96 = 5;
						uParam1->f_67 = -1;
					}
					else
					{
						uParam1->f_5 = 84;
						uParam1->f_6 = 84;
						uParam1->f_96 = 24;
						uParam1->f_67 = -1;
					}
				}
				else
				{
					uParam1->f_5 = 64;
					uParam1->f_6 = 68;
					uParam1->f_67 = -1;
				}
				break;
			
			case 7:
				if (uParam1->f_66 == joaat("kuruma2"))
				{
					uParam1->f_5 = 12;
					uParam1->f_6 = 12;
					uParam1->f_7 = 13;
					uParam1->f_8 = 156;
					uParam1->f_67 = -1;
				}
				else if (func_843(iParam0))
				{
					if (!Global_68347)
					{
						uParam1->f_5 = 0;
						uParam1->f_6 = 0;
						uParam1->f_7 = 10;
						uParam1->f_96 = 1;
						uParam1->f_67 = -1;
					}
					else
					{
						uParam1->f_5 = 12;
						uParam1->f_6 = 12;
						uParam1->f_96 = 0;
						uParam1->f_67 = -1;
					}
				}
				else
				{
					uParam1->f_5 = 0;
					uParam1->f_6 = 10;
					uParam1->f_67 = -1;
				}
				break;
			
			case 8:
				if (func_843(iParam0))
				{
					if (!Global_68347)
					{
						uParam1->f_5 = 112;
						uParam1->f_6 = 112;
						uParam1->f_7 = 0;
						uParam1->f_96 = 7;
						uParam1->f_67 = -1;
					}
					else
					{
						uParam1->f_5 = 131;
						uParam1->f_6 = 131;
						uParam1->f_96 = 78;
						uParam1->f_67 = -1;
					}
				}
				else
				{
					uParam1->f_5 = 111;
					uParam1->f_6 = 0;
					uParam1->f_67 = -1;
				}
				break;
			
			default:
				break;
			}
	}
	if (iVar0 == 0)
	{
		switch (iParam0)
		{
			case 32:
				uParam1->f_5 = 111;
				uParam1->f_6 = 65;
				uParam1->f_7 = 111;
				uParam1->f_8 = 156;
				uParam1->f_67 = -1;
				break;
			
			case 13:
				uParam1->f_5 = 46;
				uParam1->f_6 = 24;
				uParam1->f_7 = 46;
				uParam1->f_8 = 24;
				uParam1->f_67 = -1;
				break;
			
			case 33:
				uParam1->f_5 = 7;
				uParam1->f_6 = 0;
				uParam1->f_7 = 111;
				uParam1->f_8 = 156;
				uParam1->f_67 = -1;
				break;
			
			case 34:
				uParam1->f_5 = 7;
				uParam1->f_6 = 0;
				uParam1->f_7 = 111;
				uParam1->f_8 = 156;
				uParam1->f_67 = -1;
				break;
			
			case 35:
				uParam1->f_5 = 7;
				uParam1->f_6 = 0;
				uParam1->f_7 = 111;
				uParam1->f_8 = 156;
				uParam1->f_67 = -1;
				break;
			
			case 36:
				uParam1->f_5 = 7;
				uParam1->f_6 = 0;
				uParam1->f_7 = 111;
				uParam1->f_8 = 156;
				uParam1->f_67 = -1;
				break;
			
			case 37:
				uParam1->f_5 = 7;
				uParam1->f_6 = 0;
				uParam1->f_7 = 111;
				uParam1->f_8 = 156;
				uParam1->f_67 = -1;
				break;
			
			case 38:
				uParam1->f_5 = 7;
				uParam1->f_6 = 0;
				uParam1->f_7 = 111;
				uParam1->f_8 = 156;
				uParam1->f_67 = -1;
				break;
			
			case 206:
				uParam1->f_5 = 2;
				uParam1->f_6 = 134;
				uParam1->f_7 = 134;
				uParam1->f_8 = 29;
				uParam1->f_67 = -1;
				break;
			
			case 207:
				uParam1->f_5 = 134;
				uParam1->f_6 = 134;
				uParam1->f_7 = 134;
				uParam1->f_8 = 126;
				uParam1->f_67 = -1;
				break;
			
			case 208:
				uParam1->f_5 = 134;
				uParam1->f_6 = 134;
				uParam1->f_7 = 134;
				uParam1->f_8 = 29;
				uParam1->f_67 = -1;
				break;
			
			case 209:
				uParam1->f_5 = 134;
				uParam1->f_6 = 134;
				uParam1->f_7 = 134;
				uParam1->f_8 = 139;
				uParam1->f_67 = -1;
				break;
			
			case 210:
				uParam1->f_5 = 28;
				uParam1->f_6 = 0;
				uParam1->f_7 = 14;
				uParam1->f_8 = 156;
				uParam1->f_67 = -1;
				break;
			
			case 213:
				uParam1->f_5 = 38;
				uParam1->f_6 = 38;
				uParam1->f_7 = 42;
				uParam1->f_8 = 156;
				uParam1->f_67 = -1;
				break;
			
			case 212:
				uParam1->f_5 = 134;
				uParam1->f_6 = 134;
				uParam1->f_7 = 134;
				uParam1->f_8 = 27;
				uParam1->f_67 = -1;
				break;
			
			case 17:
				uParam1->f_5 = 30;
				uParam1->f_6 = 0;
				uParam1->f_7 = 0;
				uParam1->f_8 = 156;
				uParam1->f_67 = -1;
				break;
			
			case 215:
				uParam1->f_5 = 159;
				uParam1->f_6 = 0;
				uParam1->f_7 = 160;
				uParam1->f_8 = 156;
				uParam1->f_67 = -1;
				break;
			
			case 217:
				uParam1->f_5 = 159;
				uParam1->f_6 = 0;
				uParam1->f_7 = 160;
				uParam1->f_8 = 156;
				uParam1->f_67 = -1;
				break;
			
			case 205:
				uParam1->f_5 = 12;
				uParam1->f_6 = 12;
				uParam1->f_7 = 0;
				uParam1->f_8 = 12;
				uParam1->f_67 = -1;
				break;
			
			case 227:
				uParam1->f_5 = 0;
				uParam1->f_6 = 0;
				uParam1->f_7 = 0;
				uParam1->f_8 = 0;
				uParam1->f_67 = -1;
				break;
			
			case 226:
				uParam1->f_5 = 36;
				uParam1->f_6 = 36;
				uParam1->f_7 = 0;
				uParam1->f_8 = 156;
				uParam1->f_67 = -1;
				break;
			
			case 230:
				uParam1->f_5 = 41;
				uParam1->f_6 = 41;
				uParam1->f_7 = 156;
				uParam1->f_8 = 0;
				uParam1->f_67 = -1;
				break;
			
			default:
				break;
			}
	}
	if (iParam0 == 161)
	{
		uParam1->f_5 = 111;
		uParam1->f_6 = 111;
		uParam1->f_7 = 111;
		uParam1->f_8 = 156;
		uParam1->f_67 = -1;
	}
	if (iParam0 == 231)
	{
		uParam1->f_5 = 142;
		uParam1->f_6 = 0;
		uParam1->f_7 = 145;
		uParam1->f_8 = 90;
	}
	if (uParam1->f_67 >= 0)
	{
	}
	else if (iParam0 == 195)
	{
		uParam1->f_67 = 1;
	}
}

int func_835(int iParam0, char* sParam1, var uParam2, var uParam3, var uParam4)//Position - 0x89A2A
{
	*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;
}

bool func_836(int iParam0, int iParam1, var uParam2, var uParam3, var uParam4)//Position - 0x8AFCC
{
	if (iParam0 == 275)
	{
		switch (iParam1)
		{
			case 1:
				*uParam2 = 0;
				*uParam3 = 10;
				*uParam4 = 1;
				return true;
				break;
			
			case 2:
				*uParam2 = 111;
				*uParam3 = 0;
				*uParam4 = 2;
				return true;
				break;
		}
		return false;
	}
	else if (iParam0 == 270)
	{
		switch (iParam1)
		{
			case 1:
				*uParam2 = 111;
				*uParam3 = 0;
				*uParam4 = 1;
				return true;
				break;
			
			case 2:
				*uParam2 = 111;
				*uParam3 = 0;
				*uParam4 = 2;
				return true;
				break;
		}
		return false;
	}
	else if (iParam0 == 274)
	{
		switch (iParam1)
		{
			case 1:
				*uParam2 = 111;
				*uParam3 = 0;
				*uParam4 = 1;
				return true;
				break;
			
			case 2:
				*uParam2 = 64;
				*uParam3 = 68;
				*uParam4 = 2;
				return true;
				break;
		}
		return false;
	}
	else if (iParam0 == 278)
	{
		switch (iParam1)
		{
			case 1:
				*uParam2 = 0;
				*uParam3 = 10;
				*uParam4 = 1;
				return true;
				break;
			
			case 2:
				*uParam2 = 0;
				*uParam3 = 10;
				*uParam4 = 2;
				return true;
				break;
		}
		return false;
	}
	else if (iParam0 == 267)
	{
		switch (iParam1)
		{
			case 1:
				*uParam2 = 27;
				*uParam3 = 36;
				*uParam4 = 1;
				return true;
				break;
			
			case 2:
				*uParam2 = 111;
				*uParam3 = 0;
				*uParam4 = 2;
				return true;
				break;
		}
		return false;
	}
	else if (iParam0 == 280)
	{
		switch (iParam1)
		{
			case 1:
				*uParam2 = 111;
				*uParam3 = 111;
				*uParam4 = 1;
				return true;
				break;
			
			case 2:
				*uParam2 = 111;
				*uParam3 = 111;
				*uParam4 = 2;
				return true;
				break;
		}
		return false;
	}
	else if (iParam0 == 268)
	{
		switch (iParam1)
		{
			case 1:
				*uParam2 = 27;
				*uParam3 = 36;
				*uParam4 = 1;
				return true;
				break;
			
			case 2:
				*uParam2 = 111;
				*uParam3 = 0;
				*uParam4 = 2;
				return true;
				break;
		}
		return false;
	}
	else if (iParam0 == 276)
	{
		switch (iParam1)
		{
			case 1:
				func_840(func_841(iParam0, iParam1), uParam2, uParam3);
				*uParam4 = 1;
				return true;
				break;
			
			case 2:
				func_840(func_841(iParam0, iParam1), uParam2, uParam3);
				*uParam4 = 2;
				return true;
				break;
		}
		return false;
	}
	else if (iParam0 == 281)
	{
		switch (iParam1)
		{
			case 1:
				*uParam2 = 111;
				*uParam3 = 111;
				*uParam4 = 1;
				return true;
				break;
			
			case 2:
				*uParam2 = 111;
				*uParam3 = 111;
				*uParam4 = 2;
				return true;
				break;
		}
		return false;
	}
	else if (iParam0 == 277)
	{
		switch (iParam1)
		{
			case 1:
				*uParam2 = 0;
				*uParam3 = 10;
				*uParam4 = 1;
				return true;
				break;
			
			case 2:
				*uParam2 = 111;
				*uParam3 = 0;
				*uParam4 = 2;
				return true;
				break;
		}
		return false;
	}
	else if (iParam0 == 271)
	{
		switch (iParam1)
		{
			case 1:
				*uParam2 = 27;
				*uParam3 = 36;
				*uParam4 = 1;
				return true;
				break;
			
			case 2:
				*uParam2 = 0;
				*uParam3 = 10;
				*uParam4 = 2;
				return true;
				break;
		}
		return false;
	}
	else if (iParam0 == 272)
	{
		switch (iParam1)
		{
			case 1:
				*uParam2 = 38;
				*uParam3 = 0;
				*uParam4 = 1;
				return true;
				break;
			
			case 2:
				*uParam2 = 88;
				*uParam3 = 88;
				*uParam4 = 2;
				return true;
				break;
		}
		return false;
	}
	else if (iParam0 == 269)
	{
		switch (iParam1)
		{
			case 1:
				*uParam2 = 111;
				*uParam3 = 111;
				*uParam4 = 1;
				return true;
				break;
			
			case 2:
				*uParam2 = 111;
				*uParam3 = 111;
				*uParam4 = 2;
				return true;
				break;
		}
		return false;
	}
	else if (iParam0 == 279)
	{
		switch (iParam1)
		{
			case 1:
				*uParam2 = 0;
				*uParam3 = 10;
				*uParam4 = 1;
				return true;
				break;
			
			case 2:
				*uParam2 = 64;
				*uParam3 = 68;
				*uParam4 = 2;
				return true;
				break;
		}
		return false;
	}
	return false;
}

bool func_837(int iParam0, int iParam1, var uParam2)//Position - 0x8B3FA
{
	if (iParam0 == 231)
	{
		switch (iParam1)
		{
			case 1:
				*uParam2 = 4;
				return true;
				break;
			
			case 2:
				*uParam2 = 1;
				return true;
				break;
			
			case 3:
				*uParam2 = 2;
				return true;
				break;
			
			case 4:
				*uParam2 = 3;
				return true;
				break;
		}
		*uParam2 = -1;
		return false;
	}
	else if (iParam0 == 232)
	{
		switch (iParam1)
		{
			case 1:
				*uParam2 = 2;
				return true;
				break;
			
			case 2:
				*uParam2 = 1;
				return true;
				break;
		}
		*uParam2 = -1;
		return false;
	}
	else if (iParam0 == 276)
	{
		switch (iParam1)
		{
			case 1:
				*uParam2 = 1;
				return true;
				break;
			
			case 2:
				*uParam2 = 2;
				return true;
				break;
		}
		*uParam2 = -1;
		return false;
	}
	*uParam2 = -1;
	return false;
}

bool func_838(int iParam0)//Position - 0x8B4D8
{
	if (((((((((((((((((((((iParam0 == 94 || iParam0 == 68) || iParam0 == 101) || iParam0 == 164) || iParam0 == 200) || iParam0 == 219) || iParam0 == 231) || iParam0 == 232) || iParam0 == 275) || iParam0 == 270) || iParam0 == 274) || iParam0 == 278) || iParam0 == 267) || iParam0 == 280) || iParam0 == 268) || iParam0 == 276) || iParam0 == 281) || iParam0 == 277) || iParam0 == 271) || iParam0 == 272) || iParam0 == 269) || iParam0 == 279)
	{
		return true;
	}
	return false;
}

int func_839(int iParam0)//Position - 0x8B5E2
{
	switch (iParam0)
	{
		case 39:
			return 0;
		
		case 40:
			return 1;
		
		case 43:
			return 0;
		
		case 44:
			return 1;
		
		case 45:
			return 2;
		
		case 46:
			return 3;
		
		case 47:
			return 4;
		
		case 48:
			return 5;
		
		case 49:
			return 6;
		
		case 50:
			return 7;
		
		case 51:
			return 8;
		
		case 52:
			return 9;
		
		case 53:
			return 10;
		
		case 54:
			return 11;
		
		case 55:
			return 12;
		
		case 56:
			return 13;
		
		case 57:
			return 14;
		
		case 58:
			return 15;
		
		case 59:
			return 16;
		
		case 60:
			return 17;
		
		case 61:
			return 18;
		
		case 62:
			return 19;
		
		case 63:
			return 20;
		
		case 64:
			return 21;
		
		case 65:
			return 22;
		
		case 66:
			return 23;
		
		case 67:
			return 24;
		
		case 82:
			return 0;
		
		case 83:
			return 1;
		
		case 90:
			return 0;
		
		case 91:
			return 1;
		
		default:
	}
	return -1;
}

bool func_840(int iParam0, var uParam1, var uParam2)//Position - 0x8B739
{
	*uParam1 = -1;
	*uParam2 = -1;
	switch (iParam0)
	{
		case 39:
			*uParam1 = 0;
			*uParam2 = 11;
			return true;
		
		case 43:
			*uParam1 = 28;
			*uParam2 = 64;
			return true;
		
		case 44:
			*uParam1 = 64;
			*uParam2 = 111;
			return true;
		
		case 45:
			*uParam1 = 53;
			*uParam2 = 89;
			return true;
		
		case 46:
			*uParam1 = 28;
			*uParam2 = 89;
			return true;
		
		case 47:
			*uParam1 = 28;
			*uParam2 = 111;
			return true;
		
		case 48:
			*uParam1 = 64;
			*uParam2 = 28;
			return true;
		
		case 49:
			*uParam1 = 1;
			*uParam2 = 89;
			return true;
		
		case 50:
			*uParam1 = 111;
			*uParam2 = 28;
			return true;
		
		case 51:
			*uParam1 = 70;
			*uParam2 = 111;
			return true;
		
		case 52:
			*uParam1 = 64;
			*uParam2 = 111;
			return true;
		
		case 53:
			*uParam1 = 53;
			*uParam2 = 111;
			return true;
		
		case 54:
			*uParam1 = 28;
			*uParam2 = 111;
			return true;
		
		case 55:
			*uParam1 = 1;
			*uParam2 = 53;
			return true;
		
		case 56:
			*uParam1 = 88;
			*uParam2 = 64;
			return true;
		
		case 57:
			*uParam1 = 28;
			*uParam2 = 64;
			return true;
		
		case 58:
			*uParam1 = 70;
			*uParam2 = 88;
			return true;
		
		case 59:
			*uParam1 = 1;
			*uParam2 = 88;
			return true;
		
		case 60:
			*uParam1 = 53;
			*uParam2 = 28;
			return true;
		
		case 61:
			*uParam1 = 28;
			*uParam2 = 111;
			return true;
		
		case 62:
			*uParam1 = 64;
			*uParam2 = 28;
			return true;
		
		case 63:
			*uParam1 = 70;
			*uParam2 = 111;
			return true;
		
		case 64:
			*uParam1 = 28;
			*uParam2 = 111;
			return true;
		
		case 65:
			*uParam1 = 53;
			*uParam2 = 38;
			return true;
		
		case 66:
			*uParam1 = 53;
			*uParam2 = 28;
			return true;
		
		case 67:
			*uParam1 = 111;
			*uParam2 = 28;
			return true;
		
		case 90:
			*uParam1 = 27;
			*uParam2 = 27;
			return true;
		
		case 91:
			*uParam1 = 111;
			*uParam2 = 0;
			return true;
			break;
	}
	return false;
}

int func_841(int iParam0, int iParam1)//Position - 0x8B97F
{
	if (iParam0 == -1)
	{
		return -1;
	}
	switch (iParam0)
	{
		case 17:
			return 0;
		
		case 9:
			return 1;
		
		case 10:
			return 2;
		
		case 11:
			return 3;
		
		case 12:
			return 4;
		
		case 13:
			return 5;
		
		case 14:
			return 6;
		
		case 15:
			return 7;
		
		case 16:
			return 8;
		
		case 19:
			return 9;
		
		case 22:
			return 10;
		
		case 23:
			return 11;
		
		case 24:
			return 12;
		
		case 25:
			return 13;
		
		case 27:
			return 14;
		
		case 28:
			return 15;
		
		case 29:
			return 16;
		
		case 30:
			return 17;
		
		case 31:
			return 18;
		
		case 20:
			return 19;
		
		case 32:
			return 20;
		
		case 21:
			return 21;
		
		case 78:
			return 22;
		
		case 79:
			return 23;
		
		case 80:
			return 24;
		
		case 18:
			return 25;
		
		case 81:
			return 26;
		
		case 82:
			return 27;
		
		case 83:
			return 28;
		
		case 84:
			return 29;
		
		case 85:
			return 30;
		
		case 86:
			return 31;
		
		case 87:
			return 32;
		
		case 88:
			return 33;
		
		case 102:
			return 34;
		
		case 113:
			return 35;
		
		case 160:
			return 36;
		
		case 163:
			return 37;
		
		case 162:
			return 38;
		
		case 164:
			if (func_842(iParam0, 11, iParam1))
			{
				return 40;
			}
			return 39;
		
		case 199:
			return 41;
		
		case 201:
			return 42;
		
		case 200:
			switch (iParam1)
			{
				case 1:
					return 43;
				
				case 2:
					return 44;
				
				case 3:
					return 45;
				
				case 4:
					return 46;
				
				case 5:
					return 47;
				
				case 6:
					return 48;
				
				case 7:
					return 49;
				
				case 8:
					return 50;
				
				case 9:
					return 51;
				
				case 10:
					return 52;
				
				case 11:
					return 53;
				
				case 12:
					return 54;
				
				case 13:
					return 55;
				
				case 14:
					return 56;
				
				case 15:
					return 57;
				
				case 16:
					return 58;
				
				case 17:
					return 59;
				
				case 18:
					return 60;
				
				case 19:
					return 61;
				
				case 20:
					return 62;
				
				case 21:
					return 63;
				
				case 22:
					return 64;
				
				case 23:
					return 65;
				
				case 24:
					return 66;
				
				case 25:
					return 67;
				
				default:
			}
			return 43;
		
		case 171:
			return 68;
		
		case 187:
			return 69;
		
		case 177:
			return 70;
		
		case 183:
			return 71;
		
		case 185:
			return 72;
		
		case 184:
			return 73;
		
		case 188:
			return 74;
		
		case 173:
			return 75;
		
		case 178:
			return 76;
		
		case 186:
			return 77;
		
		case 215:
			return 78;
		
		case 217:
			return 79;
		
		case 224:
			return 80;
		
		case 237:
			return 81;
		
		case 243:
			return 82;
		
		case 244:
			return 83;
		
		case 245:
			return 84;
		
		case 253:
			return 85;
		
		case 254:
			return 86;
		
		case 256:
			return 87;
		
		case 257:
			return 88;
		
		case 258:
			return 89;
		
		case 276:
			if (func_842(iParam0, 16, iParam1))
			{
				return 91;
			}
			return 90;
		
		default:
	}
	return -1;
}

bool func_842(int iParam0, int iParam1, int iParam2)//Position - 0x8BDA5
{
	if (iParam0 == 164)
	{
		if (iParam2 == 2)
		{
			return true;
		}
		return false;
	}
	if (iParam0 == 276)
	{
		if (iParam2 == 2)
		{
			return true;
		}
		return false;
	}
	if (iParam0 == 95)
	{
		if (network::_0x67A5589628E0CFF6())
		{
			return true;
		}
		return false;
	}
	else if ((iParam0 == 96 || iParam0 == 97) || iParam0 == 98)
	{
		if (func_48() && func_402())
		{
			return true;
		}
		return false;
	}
	if ((((iParam0 == 206 && network::network_is_game_in_progress()) || (iParam0 == 207 && network::network_is_game_in_progress())) || (iParam0 == 208 && network::network_is_game_in_progress())) || (iParam0 == 209 && network::network_is_game_in_progress()))
	{
		if (func_48())
		{
			return true;
		}
		return false;
	}
	if ((((iParam0 == 170 || iParam0 == 120) || iParam0 == 119) || iParam0 == 117) || iParam0 == 166)
	{
		return true;
	}
	if ((iParam0 == 221 || iParam0 == 135) || iParam0 == 210)
	{
		if (iParam1 == 26)
		{
			return true;
		}
		return false;
	}
	if (func_843(iParam0))
	{
		if (Global_68347)
		{
			return true;
		}
		return false;
	}
	return false;
}

bool func_843(int iParam0)//Position - 0x8BF01
{
	if ((((((iParam0 == 233 || iParam0 == 234) || iParam0 == 235) || iParam0 == 236) || iParam0 == 240) || iParam0 == 241) || iParam0 == 263)
	{
		return true;
	}
	return false;
}

void func_844(int iParam0, int iParam1)//Position - 0x8BF59
{
	switch (iParam0)
	{
		case 64:
			gameplay::set_bit(iParam1, 4);
			break;
		
		case 67:
			gameplay::set_bit(iParam1, 4);
			break;
		
		case 72:
			gameplay::set_bit(iParam1, 1);
			break;
		
		case 117:
			gameplay::clear_bit(iParam1, 1);
			break;
		
		case 49:
			gameplay::clear_bit(iParam1, 0);
			gameplay::set_bit(iParam1, 1);
			break;
		
		case 118:
			gameplay::set_bit(iParam1, 0);
			gameplay::clear_bit(iParam1, 1);
			break;
		
		case 1:
			gameplay::set_bit(iParam1, 1);
			break;
		
		case 119:
			gameplay::clear_bit(iParam1, 1);
			break;
		
		case 77:
			gameplay::set_bit(iParam1, 0);
			gameplay::clear_bit(iParam1, 1);
			gameplay::clear_bit(iParam1, 2);
			break;
		
		case 120:
			gameplay::clear_bit(iParam1, 0);
			gameplay::set_bit(iParam1, 1);
			gameplay::clear_bit(iParam1, 2);
			break;
		
		case 130:
			gameplay::set_bit(iParam1, 0);
			break;
		
		case 132:
			gameplay::set_bit(iParam1, 0);
			break;
		
		case 135:
			gameplay::clear_bit(iParam1, 0);
			gameplay::set_bit(iParam1, 1);
			break;
		
		case 137:
			gameplay::set_bit(iParam1, 0);
			break;
		
		case 141:
			gameplay::set_bit(iParam1, 1);
			gameplay::clear_bit(iParam1, 6);
			break;
		
		case 147:
			gameplay::set_bit(iParam1, 0);
			gameplay::set_bit(iParam1, 1);
			gameplay::set_bit(iParam1, 2);
			gameplay::set_bit(iParam1, 3);
			gameplay::set_bit(iParam1, 4);
			gameplay::set_bit(iParam1, 5);
			gameplay::set_bit(iParam1, 6);
			gameplay::set_bit(iParam1, 7);
			gameplay::set_bit(iParam1, 8);
			break;
		
		case 203:
			gameplay::set_bit(iParam1, 0);
			gameplay::clear_bit(iParam1, 1);
			gameplay::clear_bit(iParam1, 2);
			break;
		
		case 100:
			gameplay::set_bit(iParam1, 0);
			gameplay::set_bit(iParam1, 1);
			gameplay::set_bit(iParam1, 2);
			break;
		
		case 170:
			gameplay::clear_bit(iParam1, 0);
			gameplay::clear_bit(iParam1, 1);
			gameplay::clear_bit(iParam1, 2);
			break;
		
		case 160:
			gameplay::set_bit(iParam1, 15);
			break;
		
		case 161:
			gameplay::set_bit(iParam1, 15);
			break;
		
		case 192:
			gameplay::set_bit(iParam1, 0);
			gameplay::set_bit(iParam1, 1);
			gameplay::clear_bit(iParam1, 2);
			break;
		
		case 221:
			gameplay::clear_bit(iParam1, 0);
			gameplay::set_bit(iParam1, 1);
			gameplay::clear_bit(iParam1, 2);
			break;
		
		case 222:
			gameplay::set_bit(iParam1, 1);
			break;
		
		case 172:
			gameplay::set_bit(iParam1, 1);
			break;
		
		case 165:
			gameplay::clear_bit(iParam1, 0);
			gameplay::set_bit(iParam1, 1);
			break;
		
		case 166:
			gameplay::set_bit(iParam1, 0);
			gameplay::clear_bit(iParam1, 1);
			break;
		
		case 139:
			gameplay::set_bit(iParam1, 0);
			break;
		
		case 104:
			gameplay::set_bit(iParam1, 1);
			break;
		
		case 109:
			gameplay::set_bit(iParam1, 0);
			gameplay::set_bit(iParam1, 1);
			gameplay::set_bit(iParam1, 2);
			break;
		
		case 227:
		case 252:
			gameplay::set_bit(iParam1, 1);
			gameplay::clear_bit(iParam1, 2);
			gameplay::clear_bit(iParam1, 4);
			break;
		
		case 97:
			gameplay::set_bit(iParam1, 0);
			gameplay::set_bit(iParam1, 1);
			break;
		
		case 52:
			gameplay::set_bit(iParam1, 1);
			break;
		
		case 108:
			gameplay::set_bit(iParam1, 1);
			break;
		
		case 237:
			gameplay::set_bit(iParam1, 9);
			break;
		
		case 238:
			gameplay::clear_bit(iParam1, 0);
			gameplay::set_bit(iParam1, 1);
			gameplay::set_bit(iParam1, 2);
			break;
		
		case 233:
		case 234:
		case 235:
		case 236:
		case 240:
		case 241:
		case 263:
			if (Global_68347)
			{
				gameplay::set_bit(iParam1, 9);
			}
			break;
		
		case 271:
			gameplay::set_bit(iParam1, 0);
			gameplay::set_bit(iParam1, 1);
			gameplay::set_bit(iParam1, 2);
			gameplay::set_bit(iParam1, 3);
			gameplay::set_bit(iParam1, 4);
			break;
		
		case 272:
			gameplay::set_bit(iParam1, 3);
			gameplay::set_bit(iParam1, 4);
			break;
		
		case 273:
			gameplay::set_bit(iParam1, 0);
			break;
		
		case 281:
			gameplay::set_bit(iParam1, 0);
			break;
		
		case 267:
			gameplay::set_bit(iParam1, 0);
			break;
		
		case 268:
			gameplay::set_bit(iParam1, 0);
			break;
		
		default:
			return;
			break;
	}
}

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

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

bool func_847(int iParam0)//Position - 0x8C9EE
{
	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_848(int iParam0, int iParam1)//Position - 0x8CACC
{
	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_849(int iParam0, int iParam1)//Position - 0x8CBB1
{
	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_11899)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("tornado5"):
			if (!Global_262145.f_11900)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("virgo2"):
			if (!Global_262145.f_11898)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("minivan2"):
			if (!Global_262145.f_11901)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("slamvan3"):
			if (!Global_262145.f_11903)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("faction3"):
			if (!Global_262145.f_11902)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("sultanrs"):
		case joaat("banshee2"):
			if (iParam1 & 1 != 0)
			{
				return false;
			}
			return true;
			break;
	}
	return false;
}

void func_850(int iParam0, int iParam1)//Position - 0x8CCC5
{
	int iVar0;
	int iVar1;
	
	if (vehicle::get_num_mod_kits(iParam0) > 0)
	{
		vehicle::set_vehicle_mod_kit(iParam0, 0);
		iVar0 = vehicle::get_vehicle_mod(iParam0, 24);
		iVar1 = vehicle::get_vehicle_mod_variation(iParam0, 24);
		vehicle::set_vehicle_wheel_type(iParam0, iParam1);
		if (iVar0 == -1)
		{
			vehicle::remove_vehicle_mod(iParam0, 24);
		}
		else
		{
			vehicle::set_vehicle_mod(iParam0, 24, iVar0, iVar1 == 1);
		}
	}
}

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

int func_852(int iParam0)//Position - 0x8CD67
{
	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_853(int iParam0)//Position - 0x8CE17
{
	if (entity::does_entity_exist(*iParam0))
	{
		if (!entity::is_entity_a_mission_entity(*iParam0))
		{
			entity::set_entity_as_mission_entity(*iParam0, true, 0);
		}
		if (func_855(*iParam0))
		{
			if (entity::is_entity_a_mission_entity(*iParam0) && entity::does_entity_belong_to_this_script(*iParam0, 1))
			{
				if (func_854(player::player_ped_id()))
				{
					if (ped::is_ped_in_vehicle(player::player_ped_id(), *iParam0, 0))
					{
						entity::set_vehicle_as_no_longer_needed(iParam0);
						return;
					}
				}
				vehicle::delete_vehicle(iParam0);
			}
		}
		else
		{
			if (func_854(player::player_ped_id()))
			{
				if (ped::is_ped_in_vehicle(player::player_ped_id(), *iParam0, 0))
				{
					entity::set_vehicle_as_no_longer_needed(iParam0);
					return;
				}
			}
			vehicle::delete_vehicle(iParam0);
		}
	}
}

bool func_854(int iParam0)//Position - 0x8CEB3
{
	if (entity::does_entity_exist(iParam0))
	{
		if (!entity::is_entity_dead(iParam0, 0))
		{
			return true;
		}
	}
	return false;
}

bool func_855(int iParam0)//Position - 0x8CED4
{
	if (func_854(iParam0))
	{
		if (vehicle::is_vehicle_driveable(iParam0, 0))
		{
			if (!fire::is_entity_on_fire(iParam0))
			{
				return true;
			}
		}
	}
	return false;
}

void func_856(var uParam0, float fParam1, int iParam2)//Position - 0x8CEFE
{
	vector3 vVar0[30];
	float fVar91[30];
	int iVar122;
	int iVar123;
	float fVar124;
	vector3 vVar125[8];
	float fVar150[8];
	int iVar159;
	int iVar160;
	float fVar161;
	vector3 vVar162[2];
	float fVar169[2];
	int iVar172;
	int iVar173;
	float fVar174;
	var uVar175;
	
	if (((vehicle::is_this_model_a_boat(iParam2) || vehicle::_is_this_model_an_emergency_boat(iParam2)) || iParam2 == joaat("submersible")) || iParam2 == joaat("submersible2"))
	{
		vVar0[0 /*3*/] = { 1337.198f, 4279.365f, 29.1928f };
		fVar91[0] = 178.5f;
		vVar0[1 /*3*/] = { 710.3667f, 4109.767f, 27.0076f };
		fVar91[1] = 170.6f;
		vVar0[2 /*3*/] = { 614.7804f, 3624.178f, 28.45f };
		fVar91[2] = 346.2192f;
		vVar0[3 /*3*/] = { 1734.735f, 3984.564f, 29.1863f };
		fVar91[3] = 20.6065f;
		vVar0[4 /*3*/] = { 3371.728f, 5181.555f, -2.0261f };
		fVar91[4] = 270.056f;
		vVar0[5 /*3*/] = { 3465.311f, 5872.065f, -0.8379f };
		fVar91[5] = 27.9325f;
		vVar0[6 /*3*/] = { 2992.039f, 6388.09f, -1.8533f };
		fVar91[6] = 63.5079f;
		vVar0[7 /*3*/] = { 1539.047f, 6657.617f, -0.5041f };
		fVar91[7] = 133.5472f;
		vVar0[8 /*3*/] = { 13.7854f, 7070.6f, -1.6533f };
		fVar91[8] = 147.9066f;
		vVar0[9 /*3*/] = { -281.9527f, 6612.576f, -1.5175f };
		fVar91[9] = 115.5444f;
		vVar0[10 /*3*/] = { -493.8891f, 6479.998f, -3.7036f };
		fVar91[10] = 31.443f;
		vVar0[11 /*3*/] = { -1617.138f, 5255.475f, -2.9299f };
		fVar91[11] = 25.8541f;
		vVar0[12 /*3*/] = { -2820.029f, 2374.528f, -0.9006f };
		fVar91[12] = 151.3831f;
		vVar0[13 /*3*/] = { -3185.066f, 1729.921f, -0.8405f };
		fVar91[13] = 187.6676f;
		vVar0[14 /*3*/] = { -3425.029f, 947.767f, -1.8002f };
		fVar91[14] = 84.6526f;
		vVar0[15 /*3*/] = { -2354.985f, -371.4839f, -1.1723f };
		fVar91[15] = 232.9323f;
		vVar0[16 /*3*/] = { -1559.824f, -1259.78f, -0.4354f };
		fVar91[16] = 209.0601f;
		vVar0[17 /*3*/] = { -790.8649f, -1499.975f, -3.0017f };
		fVar91[17] = 117.2064f;
		vVar0[18 /*3*/] = { -461.9034f, -2226.638f, -2.3394f };
		fVar91[18] = 270.3839f;
		vVar0[19 /*3*/] = { 604.4341f, -2112.478f, -3.2858f };
		fVar91[19] = 182.6449f;
		vVar0[20 /*3*/] = { -1023.553f, -949.4196f, -1.8741f };
		fVar91[20] = 296.6459f;
		vVar0[21 /*3*/] = { 2308.973f, -2150.311f, -1.7398f };
		fVar91[21] = 183.3645f;
		vVar0[22 /*3*/] = { 2506.747f, -1304.178f, -0.4532f };
		fVar91[22] = 357.4107f;
		vVar0[23 /*3*/] = { 2852.662f, -667.7905f, -2.8556f };
		fVar91[23] = 359.0744f;
		vVar0[24 /*3*/] = { 2965.97f, 668.2945f, -3.5758f };
		fVar91[24] = 359.1271f;
		vVar0[25 /*3*/] = { 3772.841f, 3825.995f, -1.2615f };
		fVar91[25] = 343.989f;
		vVar0[26 /*3*/] = { -193.4529f, 785.6457f, 193.7793f };
		fVar91[26] = 56.3848f;
		vVar0[27 /*3*/] = { 1684.274f, 35.1368f, 153.0065f };
		fVar91[27] = 272.0354f;
		vVar0[28 /*3*/] = { -1526.544f, 1498.47f, 107.9476f };
		fVar91[28] = 344.7227f;
		vVar0[29 /*3*/] = { -584.7012f, 4408.253f, 13.4584f };
		fVar91[29] = 100.2413f;
		iVar123 = 0;
		fVar124 = 1E+09f;
		iVar122 = 0;
		while (iVar122 <= (vVar0.x - 1))
		{
			if (system::vdist2(*uParam0, vVar0[iVar122 /*3*/]) < fVar124)
			{
				fVar124 = system::vdist2(*uParam0, vVar0[iVar122 /*3*/]);
				iVar123 = iVar122;
			}
			iVar122++;
		}
		*uParam0 = { vVar0[iVar123 /*3*/] };
		*fParam1 = fVar91[iVar123];
	}
	else if (vehicle::is_this_model_a_heli(iParam2))
	{
		vVar125[0 /*3*/] = { -74.1696f, -819.5928f, 325.1753f };
		fVar150[0] = 109.6636f;
		vVar125[1 /*3*/] = { -145.4422f, -593.6234f, 210.7752f };
		fVar150[1] = 10.7413f;
		vVar125[2 /*3*/] = { -725.2798f, -1442.969f, 4.0005f };
		fVar150[2] = 240.584f;
		vVar125[3 /*3*/] = { 300.8448f, -1453.509f, 45.5095f };
		fVar150[3] = 250.2448f;
		vVar125[4 /*3*/] = { 581.7233f, 11.0254f, 102.2337f };
		fVar150[4] = 81.0753f;
		vVar125[5 /*3*/] = { 1770.641f, 3240.145f, 41.1264f };
		fVar150[5] = 86.8879f;
		vVar125[6 /*3*/] = { 2129.973f, 4807.38f, 40.1959f };
		fVar150[6] = 125.9246f;
		vVar125[7 /*3*/] = { -280.3902f, 6042.752f, 30.528f };
		fVar150[7] = 256.7738f;
		iVar160 = 0;
		fVar161 = 1E+09f;
		iVar159 = 0;
		while (iVar159 <= (vVar125.x - 1))
		{
			if (system::vdist2(*uParam0, vVar125[iVar159 /*3*/]) < fVar161)
			{
				fVar161 = system::vdist2(*uParam0, vVar125[iVar159 /*3*/]);
				iVar160 = iVar159;
			}
			iVar159++;
		}
		*uParam0 = { vVar125[iVar160 /*3*/] };
		*fParam1 = fVar150[iVar160];
	}
	else if (vehicle::is_this_model_a_plane(iParam2))
	{
		vVar162[0 /*3*/] = { 2125.417f, 4801.799f, 40.0111f };
		fVar169[0] = 115.5818f;
		vVar162[1 /*3*/] = { 1708.109f, 3255.734f, 40.034f };
		fVar169[1] = 105.6965f;
		iVar173 = 0;
		fVar174 = 1E+09f;
		iVar172 = 0;
		while (iVar172 <= (vVar162.x - 1))
		{
			if (system::vdist2(*uParam0, vVar162[iVar172 /*3*/]) < fVar174)
			{
				fVar174 = system::vdist2(*uParam0, vVar162[iVar172 /*3*/]);
				iVar173 = iVar172;
			}
			iVar172++;
		}
		*uParam0 = { vVar162[iVar173 /*3*/] };
		*fParam1 = fVar169[iVar173];
	}
	else
	{
		*uParam0 = { entity::get_entity_coords(player::player_ped_id(), 1) + Vector(0f, 5f, 5f) };
		gameplay::get_ground_z_for_3d_coord(*uParam0, &uVar175, 0);
		uParam0->f_2 = uVar175;
	}
}

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

bool func_858(int iParam0)//Position - 0x8D5F5
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= 21)
	{
		if (iParam0 && iVar0 == 21)
		{
		}
		else if (iVar0 == 22 || iVar0 == -1)
		{
		}
		else if (!func_387(iVar0))
		{
			return false;
		}
		iVar0++;
	}
	return true;
}

bool func_859()//Position - 0x8D646
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= 27)
	{
		if ((iVar0 == 28 || iVar0 == -1) || iVar0 == 15)
		{
		}
		else if (!func_389(iVar0))
		{
			return false;
		}
		iVar0++;
	}
	return true;
}

bool func_860()//Position - 0x8D690
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= 12)
	{
		if (!func_861(iVar0))
		{
		}
		else if (!func_392(iVar0))
		{
			return false;
		}
		iVar0++;
	}
	return true;
}

bool func_861(int iParam0)//Position - 0x8D6C7
{
	if ((iParam0 == -1 || iParam0 == 13) || iParam0 == 9)
	{
		return false;
	}
	return true;
}

void func_862()//Position - 0x8D6F1
{
	int iVar0;
	int iVar1;
	
	iVar1 = (27 - 1);
	iVar0 = 0;
	while (iVar0 <= iVar1)
	{
		if (iVar0 != 24)
		{
			object::_set_door_acceleration_limit(Global_34865[iVar0 /*31*/], 0, 1, 0);
		}
		iVar0++;
	}
}

int func_863()//Position - 0x8D727
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= (func_864() - 1))
	{
		if (!func_105(func_106(iVar0)))
		{
			return iVar0;
		}
		iVar0++;
	}
	return 0;
}

int func_864()//Position - 0x8D75A
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar2 = 0;
	iVar0 = 10;
	while (iVar0 <= (Local_6878 - 1))
	{
		if (Local_6878[iVar0 /*32*/].f_27 != 0)
		{
			iVar2++;
			iVar1 = 0;
			while (iVar1 <= 9)
			{
				if (Local_6878[iVar1 /*32*/].f_27 != 0)
				{
					if (func_104(iVar0, iVar1))
					{
						iVar2 = (iVar2 - 1);
						iVar1 = 10;
					}
				}
				iVar1++;
			}
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		if (Local_6878[iVar0 /*32*/].f_27 != 0)
		{
			iVar2++;
		}
		iVar0++;
	}
	return iVar2;
}

void func_865(int iParam0, int iParam1)//Position - 0x8D7EC
{
	Local_5662.f_91 = Local_5662.f_90;
	Local_5662.f_90 = iParam0;
	if (iParam0 < func_866())
	{
		func_794(iParam0);
	}
	if (iParam1 >= 0)
	{
		func_794(iParam1);
	}
}

var func_866()//Position - 0x8D820
{
	return Global_17257.f_5605;
}

bool func_867()//Position - 0x8D82E
{
	float fVar0;
	float fVar1;
	int iVar2;
	vector3 vVar3;
	float fVar6;
	int iVar7;
	
	switch (iLocal_6549)
	{
		case 0:
			if (func_737() == 2)
			{
				streaming::request_anim_dict("director@character_select_intro@male");
				streaming::request_anim_dict("director@character_select_intro@female");
				streaming::request_anim_set("ANIM_GROUP_MOVE_BALLISTIC");
				if ((streaming::has_anim_dict_loaded("director@character_select_intro@male") && streaming::has_anim_dict_loaded("director@character_select_intro@female")) && streaming::has_anim_set_loaded("ANIM_GROUP_MOVE_BALLISTIC"))
				{
					func_774(3);
					func_873(1);
					func_870();
					graphics::clear_timecycle_modifier();
					audio::_disable_police_reports();
					audio::_0x552369F549563AD5(0);
					player::remove_player_helmet(player::player_id(), 1);
					ped::clear_ped_wetness(player::player_ped_id());
					if (!ped::is_ped_injured(player::player_ped_id()))
					{
						if (func_87(vLocal_7665))
						{
							vLocal_7665 = { entity::get_entity_coords(player::player_ped_id(), 1) };
							fLocal_7671 = entity::get_entity_heading(player::player_ped_id());
							vLocal_7668 = { ped::get_ped_bone_coords(player::player_ped_id(), 2108, 0f, 0f, 0f) + ped::get_ped_bone_coords(player::player_ped_id(), 20781, 0f, 0f, 0f) / Vector(2f, 2f, 2f) };
							iLocal_7672 = interior::get_interior_from_entity(player::player_ped_id());
							gameplay::get_ground_z_for_3d_coord(vLocal_7665, &fVar0, 0);
							if (fVar0 == 0f)
							{
								if (pathfind::get_safe_coord_for_ped(vLocal_7665, 0, &vLocal_7665, 20))
								{
								}
								else
								{
									vLocal_7665 = { -872.9634f, -91.6508f, 36.8744f };
								}
							}
							iLocal_9673 = vehicle::_0xB2D06FAEDE65B577();
							if (entity::does_entity_exist(iLocal_9673))
							{
								if (!entity::is_entity_dead(iLocal_9673, 0))
								{
									vLocal_9677 = { entity::get_entity_coords(iLocal_9673, 1) };
									if ((system::vdist2(vLocal_7665, vLocal_9677) < 40000f && !func_868(iLocal_9673)) && vehicle::is_vehicle_seat_free(iLocal_9673, -1))
									{
										entity::set_entity_as_mission_entity(iLocal_9673, false, 1);
										entity::set_entity_coords(iLocal_9673, 0f, 0f, -40f, 1, false, 0, 1);
										entity::freeze_entity_position(iLocal_9673, true);
									}
								}
							}
							iLocal_9672 = vehicle::get_closest_vehicle(entity::get_entity_coords(player::player_ped_id(), 1), 6f, 0, 4);
							if (entity::does_entity_exist(iLocal_9672))
							{
								if ((ped::is_ped_on_specific_vehicle(player::player_ped_id(), iLocal_9672) && !entity::is_entity_dead(iLocal_9672, 0)) && iLocal_9672 != iLocal_9673)
								{
									entity::set_entity_as_mission_entity(iLocal_9672, false, 1);
									vLocal_9674 = { entity::get_entity_coords(iLocal_9672, 1) };
									entity::set_entity_coords(iLocal_9672, 0f, 0f, -80f, 1, false, 0, 1);
									entity::freeze_entity_position(iLocal_9672, true);
								}
							}
						}
						if (func_87(vLocal_7701))
						{
							vLocal_7701 = { entity::get_entity_coords(player::player_ped_id(), 1) };
							fLocal_7707 = entity::get_entity_heading(player::player_ped_id());
							gameplay::get_ground_z_for_3d_coord(vLocal_7701, &fVar1, 0);
							if (fVar1 == 0f)
							{
								if (pathfind::get_safe_coord_for_ped(vLocal_7701, 0, &vLocal_7701, 20))
								{
								}
								else
								{
									vLocal_7701 = { -872.9634f, -91.6508f, 36.8744f };
								}
							}
						}
						gameplay::clear_area(vLocal_7665, 1000f, 1, 0, 0, false);
					}
					player::set_wanted_level_multiplier(0f);
					player::set_max_wanted_level(0);
					func_30();
					player::set_player_control(player::player_id(), false, 0);
					ped::set_ped_can_ragdoll(player::player_ped_id(), 0);
					gameplay::_get_weather_type_transition(&(uLocal_7709[0]), &(uLocal_7709[1]), &fLocal_7714);
					iLocal_7712 = time::get_clock_hours();
					iLocal_7713 = time::get_clock_minutes();
					fLocal_7715 = gameplay::get_rain_level();
					audio::set_static_emitter_enabled("SE_DMOD_Trailer_Radio", true);
					audio::set_ambient_zone_state("AZ_DMOD_TRAILER_01", 1, 1);
					if (!ped::is_ped_injured(player::player_ped_id()))
					{
						entity::set_entity_coords(player::player_ped_id(), vLocal_7608, 1, false, 0, 1);
					}
					streaming::request_ipl("replay");
					iVar2 = interior::get_interior_at_coords_with_type(-15.5f, -7.9f, 500f, "milo_replay");
					ped::set_ped_config_flag(player::player_ped_id(), 409, true);
					while (!interior::is_interior_ready(iVar2))
					{
						if (!ped::is_ped_injured(player::player_ped_id()))
						{
							ped::set_ped_reset_flag(player::player_ped_id(), 197, true);
							ped::set_ped_config_flag(player::player_ped_id(), 409, true);
						}
						system::wait(0);
					}
					gameplay::clear_area_of_peds(vLocal_7603, 50f, 0);
					graphics::_stop_all_screen_effects();
					if (!ped::is_ped_injured(player::player_ped_id()))
					{
						func_718(entity::get_entity_model(player::player_ped_id()), &vVar3, &fVar6);
						entity::set_entity_coords(player::player_ped_id(), vVar3, 1, false, 0, 1);
						entity::set_entity_heading(player::player_ped_id(), fVar6);
						ai::clear_ped_tasks_immediately(player::player_ped_id());
						ped::set_ped_reset_flag(player::player_ped_id(), 321, true);
						ped::force_ped_motion_state(player::player_ped_id(), -1871534317, false, 0, 0);
						if (!func_46(entity::get_entity_model(player::player_ped_id())) || entity::get_entity_model(player::player_ped_id()) == joaat("ig_orleans"))
						{
							weapon::set_current_ped_weapon(player::player_ped_id(), joaat("weapon_unarmed"), true);
						}
					}
					iLocal_6549 = 1;
				}
			}
			break;
		
		case 1:
			if (func_737() == 11)
			{
				if (!ped::is_ped_injured(player::player_ped_id()))
				{
					ped::set_ped_stealth_movement(player::player_ped_id(), 0, 0);
					ai::open_sequence_task(&iVar7);
					ai::task_go_straight_to_coord(0, vLocal_7608, 1f, 20000, fLocal_7611, 1056964608);
					ai::close_sequence_task(iVar7);
					ai::task_perform_sequence(player::player_ped_id(), iVar7);
					ai::clear_sequence_task(&iVar7);
				}
				ped::force_ped_motion_state(player::player_ped_id(), -668482597, true, 0, 0);
				iLocal_6549 = 2;
			}
			else if (func_737() == 7 || func_737() == 6)
			{
				iLocal_6549 = 2;
			}
			break;
		
		case 2:
			if ((func_737() == 20 || func_737() == 9) || func_737() == 21)
			{
				return true;
			}
			break;
		
		default:
			break;
	}
	return false;
}

bool func_868(int iParam0)//Position - 0x8DD06
{
	int iVar0;
	
	if (iParam0 != 0)
	{
		iVar0 = func_869(25);
		if (iVar0 != 0 && iVar0 == iParam0)
		{
			return true;
		}
	}
	return false;
}

int func_869(int iParam0)//Position - 0x8DD32
{
	if (iParam0 == -1)
	{
		return 0;
	}
	return Global_68350.f_139[iParam0];
}

void func_870()//Position - 0x8DD4E
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = 0;
	iVar1 = 0;
	iVar0 = 0;
	while (iVar0 < 16)
	{
		iVar1 = Global_36673[iVar0 /*5*/];
		if (!iVar1 == -1)
		{
			func_872(1, iVar1, 1);
		}
		iVar0++;
	}
	iVar2 = 0;
	iVar2 = 0;
	while (iVar2 < 5)
	{
		if (Global_36647[iVar2 /*5*/] == 0)
		{
			func_871(iVar2);
		}
		iVar2++;
	}
}

void func_871(int iParam0)//Position - 0x8DDAE
{
	if (iParam0 < 0 || iParam0 >= 5)
	{
		return;
	}
	if (!Global_36647[iParam0 /*5*/].f_1 == 0)
	{
		if (Global_36647[iParam0 /*5*/].f_1 == player::player_ped_id())
		{
			Global_36868 = 0;
		}
	}
	Global_36647[iParam0 /*5*/] = 13;
	Global_36647[iParam0 /*5*/].f_1 = 0;
	Global_36647[iParam0 /*5*/].f_2 = 0;
	Global_36647[iParam0 /*5*/].f_3 = 0;
	Global_36647[iParam0 /*5*/].f_4 = 0;
	Global_36646 = (Global_36646 - 1);
	if (Global_36646 < 0)
	{
		Global_36646 = 0;
	}
}

void func_872(int iParam0, int iParam1, int iParam2)//Position - 0x8DE31
{
	func_249(iParam0, iParam1, iParam2, 0, 0);
}

void func_873(int iParam0)//Position - 0x8DE45
{
	cam::_0x487A82C650EB7799(0f);
	cam::_0x0225778816FDC28C(0f);
	cam::set_gameplay_cam_shake_amplitude(0f);
	cam::stop_gameplay_cam_shaking(true);
	cam::set_cinematic_cam_shake_amplitude(0f);
	cam::stop_cinematic_cam_shaking(1);
	audio::_0x12561FCBB62D5B9C(0);
	if (audio::is_audio_scene_active("SAFEHOUSE_STONED_MICHAEL"))
	{
		audio::stop_audio_scene("SAFEHOUSE_STONED_MICHAEL");
	}
	if (!gameplay::is_string_null_or_empty(&Global_36848))
	{
		if (audio::is_audio_scene_active(&Global_36848))
		{
			audio::stop_audio_scene(&Global_36848);
		}
	}
	if (cam::does_cam_exist(Global_36837))
	{
		if (cam::is_cam_shaking(Global_36837))
		{
			cam::set_cam_shake_amplitude(Global_36837, 0f);
			cam::stop_cam_shaking(Global_36837, 1);
		}
	}
	if (cam::_0xC912AF078AF19212())
	{
		cam::_0x1C9D7949FA533490(0);
	}
	if (iParam0)
	{
		if (graphics::get_timecycle_modifier_index() != -1 || graphics::_0x459FD2C8D0AB78BC() != -1)
		{
			graphics::clear_timecycle_modifier();
		}
		else if (streaming::is_player_switch_in_progress())
		{
			graphics::clear_timecycle_modifier();
		}
	}
	Global_36843 = 0f;
	StringCopy(&Global_36844, "", 16);
	StringCopy(&Global_36848, "", 64);
	StringCopy(&Global_36864, "", 16);
	func_874();
}

void func_874()//Position - 0x8DF26
{
	Global_36836 = 0;
	Global_36837 = 0;
	Global_36838 = 0;
	Global_36839 = 30000;
	Global_36840 = 0f;
	Global_36842 = 0f;
	Global_36841 = 0f;
	Global_36843 = 0f;
	StringCopy(&Global_36844, "", 16);
}

void func_875()//Position - 0x8DF59
{
	var uVar0;
	var uVar1;
	var uVar2;
	var uVar3;
	
	func_172();
	Local_7724 = (0f + (Global_17256 * 0.5f));
	Local_7724.f_1 = (0.092f + 0.034722f);
	Local_7724.f_2 = Global_17256;
	Local_7724.f_3 = (0.00138888f * 64f);
	fLocal_6537 = fLocal_6537;
	fLocal_6536 = fLocal_6536;
	ui::get_hud_colour(116, &uVar0, &uVar1, &uVar2, &uVar3);
	Local_7724.f_4 = uVar0;
	Local_7724.f_5 = uVar1;
	Local_7724.f_6 = uVar2;
	Local_7724.f_7 = uVar3;
	Local_7734 = 1;
	if (func_876())
	{
		Local_7734.f_1 = 0.5f;
		Local_7734.f_2 = 0.75f;
	}
	else
	{
		Local_7734.f_1 = 0.5f;
		Local_7734.f_2 = 1f;
	}
	Local_7734.f_3 = 255;
	Local_7734.f_4 = 255;
	Local_7734.f_5 = 255;
	Local_7734.f_6 = 255;
	Local_7734.f_7 = 0;
	Local_7734.f_9 = 0f;
	Local_7734.f_8 = 0f;
	Local_7732 = ((Local_7724 + 0.01f) - (Local_7724.f_2 / 2f));
	Local_7732.f_1 = 0.096f;
}

bool func_876()//Position - 0x8E04F
{
	if ((unk::_get_ui_language_id() == 8 || unk::_get_ui_language_id() == 9) || unk::_get_ui_language_id() == 10)
	{
		return true;
	}
	return false;
}

void func_877()//Position - 0x8E080
{
	func_698(0);
	func_880(1);
	func_879();
	func_878();
	iLocal_4049 = -1;
	iLocal_4055 = 0;
	iLocal_5556 = -1;
	sLocal_5554 = "";
	if (entity::does_entity_exist(iLocal_5557))
	{
		entity::set_vehicle_as_no_longer_needed(&iLocal_5557);
	}
	if (iLocal_5645 == 1)
	{
		audio::stop_sound(iLocal_5644);
		audio::release_sound_id(iLocal_5644);
	}
	iLocal_5645 = 0;
	streaming::_remove_named_ptfx_asset("scr_mp_creator");
	func_806(1);
}

void func_878()//Position - 0x8E0E5
{
	struct<10> Var0;
	
	vLocal_4051 = { -99.9f, -99.9f, -99.9f };
	if (iLocal_4048 >= 0)
	{
		Var0 = { func_126(iLocal_4048) };
		if (ui::does_blip_exist(Var0.f_9))
		{
			ui::set_blip_colour(Var0.f_9, 58);
			ui::set_blip_scale(Var0.f_9, 0.75f);
			if (entity::does_entity_exist(Var0.f_8))
			{
				entity::reset_entity_alpha(Var0.f_8);
			}
			iLocal_4048 = -1;
		}
	}
}

void func_879()//Position - 0x8E14D
{
	int iVar0;
	var uVar1;
	
	iVar0 = 0;
	while (iVar0 < 50)
	{
		if (entity::does_entity_exist(Local_3544[iVar0 /*10*/].f_8))
		{
			uVar1 = func_14(Local_3544[iVar0 /*10*/]);
			if (!Local_304[uVar1 /*14*/].f_6)
			{
				entity::freeze_entity_position(Local_3544[iVar0 /*10*/].f_8, false);
				rope::activate_physics(Local_3544[iVar0 /*10*/].f_8);
			}
			entity::set_entity_invincible(Local_3544[iVar0 /*10*/].f_8, false);
			entity::set_entity_proofs(Local_3544[iVar0 /*10*/].f_8, false, false, false, false, false, false, 0, false);
			entity::set_entity_collision(Local_3544[iVar0 /*10*/].f_8, true, 0);
			if (entity::does_entity_have_physics(Local_3544[iVar0 /*10*/].f_8) && unk_0x0C112765300C7E1E(Local_3544[iVar0 /*10*/].f_8))
			{
				rope::_0xCC6E963682533882(Local_3544[iVar0 /*10*/].f_8);
				rope::set_disable_frag_damage(Local_3544[iVar0 /*10*/].f_8, 0);
			}
		}
		iVar0++;
	}
}

void func_880(int iParam0)//Position - 0x8E21F
{
	if (entity::does_entity_exist(Local_5514.f_8))
	{
		object::delete_object(&(Local_5514.f_8));
	}
	func_12(Local_5514.f_7);
	Local_5514.f_7 = 0;
	if (iParam0)
	{
		Local_5514 = { 0f, 0f, 0f };
		Local_5514.f_3 = { 0f, 0f, 0f };
		Local_5514.f_6 = 0f;
	}
	iLocal_5524 = 0;
	iLocal_5542 = 0;
	vLocal_5533 = { 0f, 0f, -1000f };
	vLocal_5539 = { 0f, 0f, 0f };
	fLocal_5550 = 0f;
	sLocal_5554 = "RemovePropMenuHelp";
	iLocal_5532 = 0;
}

void func_881()//Position - 0x8E291
{
	if (iLocal_6555 == 5)
	{
		if (iLocal_6810 != 1)
		{
			iLocal_6810 = 1;
		}
		if (iLocal_7596)
		{
			iLocal_7598 = 1;
			func_939();
			func_902();
			if (iLocal_9770 != iLocal_9771)
			{
				iLocal_9770 = iLocal_9771;
				func_363();
			}
			if (iLocal_5754 == 3)
			{
				func_890(Local_5662.f_90);
			}
		}
		if (iLocal_7598)
		{
			controls::disable_control_action(0, 80, 1);
			if (!controls::is_disabled_control_pressed(0, 80))
			{
				iLocal_7598 = 0;
			}
		}
		func_882();
	}
}

void func_882()//Position - 0x8E301
{
	if (iLocal_9722)
	{
		if (((((!func_42(0) && !Global_100233) && !gameplay::is_bit_set(iLocal_9771, 7)) && !iLocal_5943) && !func_889(player::player_ped_id())) && !iLocal_7587)
		{
			if (!iLocal_7695)
			{
				if (iLocal_7694 == 0)
				{
					iLocal_7694 = gameplay::get_game_timer() + 350;
				}
				else if (gameplay::get_game_timer() > iLocal_7694)
				{
					if (iLocal_7596)
					{
						iLocal_7596 = 0;
						audio::play_sound_frontend(-1, "TOGGLE_ON", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
						func_172();
						func_94(1);
						func_365(1, -1);
						iLocal_7597 = 0;
						func_877();
						controls::enable_control_action(0, 82, 1);
						controls::enable_control_action(0, 81, 1);
					}
					else
					{
						iLocal_7596 = 1;
						iLocal_5757 = 1;
						Global_17 = 0;
						audio::play_sound_frontend(-1, "TOGGLE_ON", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
						controls::disable_control_action(0, 82, 1);
						controls::disable_control_action(0, 82, 1);
						controls::disable_control_action(0, 140, 1);
						controls::disable_control_action(0, 141, 1);
						iLocal_7597 = func_887("DIR_MNU", -1, 0);
						if (iLocal_5754 == 2)
						{
							func_886();
							func_885(1);
						}
					}
					iLocal_7695 = 1;
					iLocal_7694 = 0;
				}
			}
		}
	}
	else
	{
		iLocal_7694 = 0;
		iLocal_7695 = 0;
	}
	if (iLocal_7596)
	{
		if (func_883())
		{
			iLocal_5755 = 0;
			iLocal_5754 = 0;
			iLocal_7597 = 0;
			iLocal_7596 = 0;
			iLocal_9722 = 0;
			func_172();
			func_94(1);
			func_365(1, -1);
			func_877();
			controls::enable_control_action(0, 82, 1);
			controls::enable_control_action(0, 81, 1);
			iLocal_5756 = gameplay::get_game_timer();
		}
	}
	else if ((gameplay::get_game_timer() - iLocal_5756) < 500)
	{
		controls::disable_control_action(0, 114, 1);
		controls::disable_control_action(0, 0, 1);
		controls::disable_control_action(0, 51, 1);
		controls::disable_control_action(0, 80, 1);
		controls::disable_control_action(0, 21, 1);
		controls::disable_control_action(0, 73, 1);
		if (controls::_is_input_disabled(2))
		{
			if (!ui::is_pause_menu_active())
			{
				controls::disable_control_action(2, 200, 1);
			}
		}
	}
}

bool func_883()//Position - 0x8E4C7
{
	if (!iLocal_5943)
	{
		if (iLocal_9719)
		{
			if (iLocal_5754 == 0)
			{
				audio::play_sound_frontend(-1, "TOGGLE_ON", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
				Global_17 = 0;
				return true;
			}
			else if (iLocal_5754 == 1)
			{
				audio::play_sound_frontend(-1, "BACK", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
				func_865(iLocal_5755, -1);
				func_793();
				iLocal_5754 = 0;
				func_363();
				return false;
			}
			else if (iLocal_5754 == 2)
			{
				audio::play_sound_frontend(-1, "BACK", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
				func_865(iLocal_5755, -1);
				func_793();
				iLocal_5754 = 0;
				func_363();
				return false;
			}
			else if (iLocal_5754 == 3 && (iLocal_220 == 0 && !iLocal_9732))
			{
				audio::play_sound_frontend(-1, "BACK", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
				if (iLocal_5552)
				{
					func_370(11, 0);
				}
				else
				{
					func_795(0, 1);
					iLocal_5754 = 0;
					func_865(iLocal_5755, -1);
					func_793();
					func_363();
				}
				return false;
			}
		}
		if (func_884())
		{
			func_865(0, 0);
			return true;
		}
	}
	return false;
}

bool func_884()//Position - 0x8E5C8
{
	if (iLocal_7587)
	{
		return false;
	}
	if (!iLocal_5943)
	{
		if ((((((ped::is_ped_injured(player::player_ped_id()) || func_42(0)) || gameplay::is_bit_set(iLocal_9771, 7)) || ped::is_ped_ragdoll(player::player_ped_id())) || (ped::is_ped_falling(player::player_ped_id()) && cam::is_screen_faded_in())) || Global_100233) || func_889(player::player_ped_id()))
		{
			return true;
		}
	}
	return false;
}

void func_885(int iParam0)//Position - 0x8E647
{
	int iVar0;
	
	if (iParam0)
	{
		iVar0 = 0;
		while (iVar0 <= 13)
		{
			iLocal_7550[iVar0] = (iLocal_7520[iVar0] - iLocal_7535[iVar0]);
			iLocal_7535[iVar0] = iLocal_7520[iVar0];
			iVar0++;
		}
	}
	else
	{
		iVar0 = 0;
		while (iVar0 <= 13)
		{
			iLocal_7550[iVar0] = (iLocal_7520[iVar0] - iLocal_7535[iVar0]);
			iLocal_7520[iVar0] = iLocal_7535[iVar0];
			iVar0++;
		}
	}
	iLocal_7565 = false;
}

void func_886()//Position - 0x8E6C9
{
	int iVar0;
	
	iVar0 = 7;
	while (iVar0 <= 12)
	{
		iLocal_7520[iVar0] = 1;
		if (func_21(func_22(iVar0)))
		{
			iLocal_7520[iVar0] = 0;
		}
		iVar0++;
	}
}

int func_887(char* sParam0, int iParam1, int iParam2)//Position - 0x8E701
{
	var uVar0;
	int iVar1;
	int iVar2;
	
	if (!func_171(&uVar0, 1, iParam1))
	{
		return false;
	}
	iVar1 = true;
	StringCopy(&(Global_17257.f_5505[uVar0 /*4*/]), sParam0, 16);
	if (!gameplay::is_string_null_or_empty(&(Global_17257.f_5505[uVar0 /*4*/])))
	{
		ui::request_additional_text(&(Global_17257.f_5505[uVar0 /*4*/]), 9);
		Global_17257.f_5498[uVar0] = 1;
		if (!ui::has_this_additional_text_loaded(&(Global_17257.f_5505[uVar0 /*4*/]), 9))
		{
			iVar1 = false;
		}
	}
	graphics::request_streamed_texture_dict("CommonMenu", false);
	Global_17257.f_5484[uVar0] = 1;
	if (!graphics::has_streamed_texture_dict_loaded("CommonMenu"))
	{
		iVar1 = false;
	}
	if (iParam2)
	{
		graphics::request_streamed_texture_dict("MPShopSale", false);
		Global_17257.f_5491[uVar0] = 1;
		if (!graphics::has_streamed_texture_dict_loaded("MPShopSale"))
		{
			iVar1 = false;
		}
	}
	iVar2 = false;
	StringCopy(&(Global_17257.f_5530[uVar0 /*10*/].f_1), "instructional_buttons", 24);
	iVar2 = func_888(&(Global_17257.f_5530[uVar0 /*10*/]));
	if (!iVar1 || !iVar2)
	{
	}
	return (iVar1 && iVar2);
}

int func_888(var uParam0)//Position - 0x8E7F8
{
	switch (uParam0->f_9)
	{
		case 0:
			if (!graphics::has_scaleform_movie_loaded(*uParam0))
			{
				*uParam0 = unk_0x67D02A194A2FC2BD(&(uParam0->f_1));
				uParam0->f_9 = 1;
				if (uParam0->f_7)
				{
					if (graphics::has_scaleform_movie_loaded(*uParam0))
					{
						uParam0->f_8 = gameplay::get_game_timer();
						uParam0->f_9 = 2;
					}
				}
			}
			else
			{
				uParam0->f_8 = gameplay::get_game_timer();
				uParam0->f_9 = 2;
			}
			break;
		
		case 1:
			if (graphics::has_scaleform_movie_loaded(*uParam0))
			{
				uParam0->f_8 = gameplay::get_game_timer();
				uParam0->f_9 = 2;
			}
			break;
		
		case 2:
			if (!graphics::has_scaleform_movie_loaded(*uParam0))
			{
				uParam0->f_9 = 0;
			}
			break;
	}
	return uParam0->f_9 == 2;
}

bool func_889(int iParam0)//Position - 0x8E89A
{
	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;
}

void func_890(int iParam0)//Position - 0x8E8E9
{
	struct<10> Var0;
	var uVar10;
	int iVar11;
	vector3 vVar12;
	
	ui::_set_radar_zoom_level_this_frame(fLocal_5559);
	func_892(iParam0, (iLocal_220 != 0 || iLocal_5631));
	if (iLocal_220 != 2)
	{
		if (iLocal_5645 == 1)
		{
			audio::stop_sound(iLocal_5644);
			audio::release_sound_id(iLocal_5644);
			iLocal_5645 = 0;
		}
	}
	ui::_0x25F87B30C382FCA7();
	ped::set_ped_density_multiplier_this_frame(0f);
	if (iLocal_220 == 2)
	{
		controls::disable_control_action(0, 76, 1);
	}
	unk1::_0xEB2D525B57F42B40();
	if (vLocal_4051.y != -99.9f)
	{
		if (iLocal_4054 >= 0)
		{
			Var0 = { func_126(iLocal_4054) };
			if (entity::does_entity_exist(Var0.f_8))
			{
				uVar10 = func_14(Var0);
				iVar11 = (80 * func_891(!Local_304[uVar10 /*14*/].f_6));
				if (!ped::is_ped_injured(player::player_ped_id()))
				{
					if (system::vdist2(entity::get_entity_coords(player::player_ped_id(), 1), vLocal_4051) > 0.35f)
					{
						graphics::draw_marker(2, vLocal_4051, 0f, 0f, 0f, 0f, 180f, 0f, 0.5f, 0.5f, 0.5f, 79, (175 + iVar11), (239 - iVar11), 150, 0, 0, 2, 0, 0, 0, false);
					}
				}
				if (system::timerb() > 500)
				{
					vVar12 = { entity::get_entity_coords(Var0.f_8, 1) };
					vLocal_4051 = { vVar12.x, vVar12.y, (vVar12.y + Local_304[uVar10 /*14*/].f_11) };
					system::settimerb(0);
				}
			}
		}
	}
	if (iParam0 == 1)
	{
	}
}

bool func_891(int iParam0)//Position - 0x8EA28
{
	if (iParam0)
	{
		return true;
	}
	return false;
}

void func_892(int iParam0, int iParam1)//Position - 0x8EA3A
{
	int iVar0;
	int iVar1;
	int iVar2;
	char* sVar3;
	
	if (func_901() && func_898(0, 0))
	{
		if (iParam1)
		{
			iVar0 = iLocal_4045;
			iVar1 = iLocal_4046;
			iVar2 = iLocal_4056;
			sVar3 = "DMPP_CURRSCENE";
		}
		else
		{
			iVar0 = func_796(iParam0, 0);
			iVar1 = func_796(iParam0, 1);
			iVar2 = iParam0;
			sVar3 = "DMPP_SELSCENE";
		}
		if (iLocal_5511 == 0)
		{
			func_896(iVar2 + 1, sVar3, -1, 1, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
		}
		if (iVar0 == 50)
		{
			func_893(iVar0, 50, "DMPP_PROPSPLCD", -1, 6, 2, 0, 0, 0, 0, 0, 1, 1, 0);
		}
		else
		{
			func_893(iVar0, 50, "DMPP_PROPSPLCD", -1, 9, 2, 0, 0, 0, 0, 0, 1, 1, 0);
		}
		if (iVar1 == 25 || iVar0 == 50)
		{
			func_893(iVar1, 25, "DMPP_DYNPPLCD", -1, 6, 2, 0, 0, 0, 0, 0, 1, 1, 0);
		}
		else
		{
			func_893(iVar1, 25, "DMPP_DYNPPLCD", -1, 18, 2, 0, 0, 0, 0, 0, 1, 1, 0);
		}
	}
}

void func_893(int iParam0, int iParam1, char* sParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13)//Position - 0x8EB34
{
	int iVar0;
	int iVar1;
	
	iVar0 = -1;
	iVar1 = 0;
	while (iVar1 <= 9)
	{
		if (iVar0 == -1)
		{
			if (func_895(4, iVar1) == 0)
			{
				iVar0 = iVar1;
			}
		}
		iVar1++;
	}
	if (iVar0 > -1)
	{
		Global_1339962.f_1 = 1;
		func_894(4, iVar0);
		Global_1339962.f_2907[iVar0] = iParam0;
		Global_1339962.f_2907.f_172[iVar0] = iParam1;
		StringCopy(&(Global_1339962.f_2907.f_11[iVar0 /*16*/]), sParam2, 64);
		Global_1339962.f_2907.f_183[iVar0] = iParam3;
		Global_1339962.f_2907.f_216[iVar0] = iParam5;
		Global_1339962.f_2907.f_194[iVar0] = iParam4;
		Global_1339962.f_2907.f_227[iVar0] = iParam6;
		Global_1339962.f_2907.f_270[iVar0] = iParam7;
		Global_1339962.f_2907.f_281[iVar0] = iParam8;
		Global_1339962.f_2907.f_292[iVar0] = iParam9;
		Global_1339962.f_2907.f_303[iVar0] = iParam10;
		Global_1339962.f_2907.f_314[iVar0] = iParam11;
		Global_1339962.f_2907.f_325[iVar0] = iParam13;
		if (((iParam0 > 9 && iParam1 > 9) && gameplay::is_pc_version()) && iParam12)
		{
			Global_1339962.f_941 = 1;
		}
	}
}

void func_894(int iParam0, int iParam1)//Position - 0x8EC6E
{
	gameplay::set_bit(&(Global_1339962.f_4759[iParam0]), iParam1);
}

int func_895(int iParam0, int iParam1)//Position - 0x8EC87
{
	return gameplay::is_bit_set(Global_1339962.f_4759[iParam0], iParam1);
}

void func_896(int iParam0, char* sParam1, int iParam2, int iParam3, int iParam4, int iParam5, char* sParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13, int iParam14, int iParam15, int iParam16, int iParam17, int iParam18)//Position - 0x8ECA0
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	
	iVar0 = -1;
	iVar1 = 0;
	while (iVar1 <= 9)
	{
		if (iVar0 == -1)
		{
			if (func_895(6, iVar1) == 0)
			{
				iVar0 = iVar1;
			}
		}
		iVar1++;
	}
	if (iVar0 > -1)
	{
		Global_1339962.f_1 = 1;
		func_894(6, iVar0);
		Global_1339962.f_3557[iVar0] = iParam0;
		StringCopy(&(Global_1339962.f_3557.f_11[iVar0 /*16*/]), sParam1, 64);
		Global_1339962.f_3557.f_183[iVar0] = iParam3;
		Global_1339962.f_3557.f_172[iVar0] = iParam2;
		Global_1339962.f_3557.f_260[iVar0] = iParam4;
		Global_1339962.f_3557.f_271[iVar0] = iParam5;
		StringCopy(&(Global_1339962.f_3557.f_282[iVar0 /*16*/]), sParam6, 64);
		Global_1339962.f_3557.f_443[iVar0] = iParam7;
		Global_1339962.f_3557.f_454[iVar0] = iParam8;
		Global_1339962.f_3557.f_497[iVar0] = iParam9;
		Global_1339962.f_3557.f_508[iVar0] = iParam10;
		Global_1339962.f_3557.f_205[iVar0] = iParam11;
		Global_1339962.f_3557.f_216[iVar0] = iParam12;
		Global_1339962.f_3557.f_227[iVar0] = iParam13;
		Global_1339962.f_3557.f_238[iVar0] = iParam14;
		Global_1339962.f_3557.f_249[iVar0] = iParam15;
		Global_1339962.f_3557.f_519[iVar0] = iParam16;
		Global_1339962.f_3557.f_530[iVar0] = iParam17;
		Global_1339962.f_3557.f_541[iVar0] = iParam18;
		if (iParam15 == 4 && func_876())
		{
			Global_1339962.f_941 = 1;
		}
		if (gameplay::is_pc_version())
		{
			iVar2 = 0;
			graphics::_get_screen_active_resolution(&iVar3, &iVar4);
			if (iVar3 == 1280 && iVar4 >= 960)
			{
				iVar2 = 1;
			}
			if (iParam0 > 99999999)
			{
				Global_1339962.f_945 = 1;
			}
			else if (iParam0 > 9999999 || iVar2)
			{
				Global_1339962.f_944 = 1;
			}
			else if (iParam0 > 999)
			{
				Global_1339962.f_941 = 1;
			}
			if (func_897())
			{
				Global_1339962.f_945 = 1;
			}
		}
	}
}

bool func_897()//Position - 0x8EEA2
{
	int iVar0;
	var uVar1;
	
	if (gameplay::is_pc_version())
	{
		graphics::_get_screen_active_resolution(&iVar0, &uVar1);
		if (iVar0 <= 1024)
		{
			return true;
		}
	}
	return false;
}

bool func_898(int iParam0, int iParam1)//Position - 0x8EEC6
{
	if (Global_2428549.f_1378.f_688 != 0)
	{
		return true;
	}
	if ((((((((!cam::is_screen_faded_in() || (func_900(8, -1) && func_899() != 64)) || (ui::get_pause_menu_state() != 0 && !iParam1)) || (streaming::is_player_switch_in_progress() && !iParam0)) || network::_0x2EAC52B4019E2782()) || Global_69781) || Global_17257.f_7893) || ui::is_warning_message_active()) || Global_91362.f_1352)
	{
		return false;
	}
	return true;
}

var func_899()//Position - 0x8EF63
{
	return Global_1315846;
}

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

int func_901()//Position - 0x8EFAA
{
	return gameplay::get_game_timer() <= Global_17257.f_5745 + 100;
}

void func_902()//Position - 0x8EFBF
{
	int iVar0;
	int iVar1;
	
	iVar0 = false;
	iVar1 = false;
	if ((iLocal_5754 == 0 && Local_5662.f_90 == 1) || (iLocal_5754 == 3 && iLocal_220 == 3))
	{
		iVar0 = true;
	}
	if (iLocal_5754 == 2 && Local_5662.f_90 == 0)
	{
		iVar0 = true;
		iVar1 = true;
	}
	if (controls::_is_input_disabled(2))
	{
		controls::set_input_exclusive(2, 237);
		controls::set_input_exclusive(2, 238);
		controls::set_input_exclusive(2, 241);
		controls::set_input_exclusive(2, 242);
		if (!iLocal_9745)
		{
			controls::set_input_exclusive(2, 239);
			controls::set_input_exclusive(2, 240);
		}
		controls::enable_control_action(2, 176, 1);
	}
	else
	{
		controls::set_input_exclusive(2, 176);
		controls::set_input_exclusive(2, 177);
	}
	controls::set_input_exclusive(2, 172);
	controls::set_input_exclusive(2, 173);
	controls::set_input_exclusive(2, 174);
	controls::set_input_exclusive(2, 175);
	controls::disable_control_action(0, 37, 1);
	controls::disable_control_action(0, 157, 1);
	controls::disable_control_action(0, 158, 1);
	controls::disable_control_action(0, 159, 1);
	controls::disable_control_action(0, 160, 1);
	controls::disable_control_action(0, 161, 1);
	controls::disable_control_action(0, 162, 1);
	controls::disable_control_action(0, 163, 1);
	controls::disable_control_action(0, 164, 1);
	controls::disable_control_action(0, 165, 1);
	controls::disable_control_action(0, 14, 1);
	controls::disable_control_action(0, 15, 1);
	controls::disable_control_action(0, 53, 1);
	controls::disable_control_action(0, 54, 1);
	controls::disable_control_action(0, 44, 1);
	controls::disable_control_action(0, 140, 1);
	controls::disable_control_action(0, 141, 1);
	controls::disable_control_action(0, 143, 1);
	controls::disable_control_action(0, 47, 1);
	controls::disable_control_action(0, 51, 1);
	controls::disable_control_action(0, 45, 1);
	controls::disable_control_action(0, 55, 1);
	controls::disable_control_action(0, 21, 1);
	controls::disable_control_action(0, 22, 1);
	controls::disable_control_action(0, 0, 1);
	if (iVar0)
	{
		controls::disable_control_action(0, 23, 1);
	}
	controls::disable_control_action(0, 73, 1);
	controls::disable_control_action(0, 74, 1);
	controls::disable_control_action(0, 85, 1);
	controls::disable_control_action(0, 82, 1);
	controls::disable_control_action(0, 81, 1);
	controls::disable_control_action(0, 80, 1);
	controls::disable_control_action(0, 137, 1);
	controls::disable_control_action(0, 136, 1);
	controls::disable_control_action(0, 99, 1);
	controls::disable_control_action(0, 69, 1);
	controls::disable_control_action(0, 70, 1);
	controls::disable_control_action(0, 68, 1);
	if (iVar0)
	{
		controls::disable_control_action(0, 75, 1);
	}
	if (iVar1)
	{
		controls::disable_control_action(0, 89, 1);
		controls::disable_control_action(0, 90, 1);
		controls::disable_control_action(0, 76, 1);
	}
	controls::disable_control_action(0, 167, 1);
	controls::disable_control_action(0, 166, 1);
	controls::disable_control_action(0, 168, 1);
	controls::disable_control_action(0, 169, 1);
	controls::disable_control_action(0, 19, 1);
	if (iLocal_5754 == 3)
	{
		controls::disable_control_action(0, 24, 1);
		controls::disable_control_action(0, 25, 1);
		controls::disable_control_action(0, 26, 1);
		controls::disable_control_action(0, 28, 1);
		controls::disable_control_action(0, 171, 1);
		controls::disable_control_action(0, 144, 1);
		controls::disable_control_action(0, 145, 1);
		controls::disable_control_action(0, 146, 1);
		controls::disable_control_action(0, 147, 1);
		controls::disable_control_action(0, 148, 1);
		controls::disable_control_action(0, 149, 1);
		controls::disable_control_action(0, 150, 1);
		controls::disable_control_action(0, 151, 1);
		controls::disable_control_action(0, 152, 1);
		controls::disable_control_action(0, 153, 1);
		controls::disable_control_action(0, 154, 1);
		controls::disable_control_action(0, 155, 1);
	}
	if (cam::is_screen_faded_in())
	{
		func_914();
		func_903();
	}
}

void func_903()//Position - 0x8F2A7
{
	int iVar0;
	int iVar1;
	
	if (iLocal_9717)
	{
		switch (iLocal_5754)
		{
			case 0:
				switch (Local_5662.f_90)
				{
					case 0:
						iLocal_5755 = Local_5662.f_90;
						func_865(0, -1);
						iLocal_5754 = 2;
						func_886();
						func_885(1);
						audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
						func_363();
						break;
					
					case 6:
						if (func_96(7))
						{
							iLocal_5755 = Local_5662.f_90;
							func_865(0, -1);
							iLocal_5754 = 3;
							audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
							func_795(1, 1);
						}
						break;
					
					case 1:
						if (func_96(5))
						{
							iLocal_9726 = true;
							audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
						}
						break;
					
					case 2:
						if (func_96(3))
						{
							iLocal_9724 = true;
							audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
						}
						break;
					
					case 3:
						if (func_96(2) && iLocal_7921 > 1)
						{
							iLocal_9725 = true;
							audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
						}
						break;
					
					case 4:
						if (func_105(func_106(iLocal_7676[Local_5662.f_90])) && !func_104(func_106(iLocal_7676[Local_5662.f_90]), iLocal_7716))
						{
							audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
							iLocal_9718 = 1;
						}
						break;
					
					case 5:
						if (func_111() > 0 && func_96(6))
						{
							iLocal_5755 = Local_5662.f_90;
							func_865(0, -1);
							iLocal_5754 = 1;
							audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
							func_363();
						}
						iLocal_9717 = 0;
						break;
					
					case 7:
						audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
						func_370(14, 0);
						iLocal_9717 = 0;
						break;
					
					case 8:
						audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
						func_370(15, 0);
						iLocal_9717 = 0;
						break;
					
					case 9:
						audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
						func_370(16, 1);
						iLocal_9717 = 0;
						break;
				}
				break;
			
			case 1:
				if ((gameplay::get_game_timer() - iLocal_5938) >= 2000 && cam::is_screen_faded_in())
				{
					if (func_96(6))
					{
						if (iLocal_5947[Local_5662.f_90] != 0)
						{
							if (iLocal_6252[Local_5662.f_90] > -1)
							{
								func_112(&Local_5839, iLocal_6230[iLocal_6252[Local_5662.f_90]]);
							}
							else
							{
								Local_5839.f_66 = 0;
							}
							iLocal_5943 = 1;
							iLocal_5944 = 0;
							if (iLocal_5942 != iLocal_5947[Local_5662.f_90])
							{
								if (iLocal_5942 != 0)
								{
									streaming::set_model_as_no_longer_needed(iLocal_5942);
								}
								iLocal_5942 = iLocal_5947[Local_5662.f_90];
								streaming::request_model(iLocal_5942);
							}
							cam::do_screen_fade_out(800);
							iLocal_5938 = gameplay::get_game_timer();
							audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
						}
					}
				}
				iLocal_9717 = 0;
				break;
			
			case 2:
				break;
			
			case 3:
				if (!iLocal_9732)
				{
					switch (iLocal_220)
					{
						case 0:
							if (Local_5662.f_90 == iLocal_4056)
							{
								iLocal_4055 = (iLocal_4056 + 1 % 4);
								func_865(0, -1);
								func_804(1);
								audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
								func_363();
							}
							else if (iLocal_5552)
							{
								func_370(10, 0);
								audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
							}
							else
							{
								func_805(Local_5662.f_90);
								func_865(0, -1);
								func_804(1);
								audio::play_sound_frontend(-1, "Load_Scene", "DLC_Dmod_Prop_Editor_Sounds", 0);
								func_363();
							}
							break;
						
						case 1:
							switch (Local_5662.f_90)
							{
								case 0:
									iLocal_5755 = Local_5662.f_90;
									func_865(0, -1);
									func_804(2);
									audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
									func_363();
									break;
								
								case 1:
									if (func_141() > 0)
									{
										iLocal_5755 = Local_5662.f_90;
										func_865(0, -1);
										func_804(3);
										audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
										func_363();
									}
									else
									{
										audio::play_sound_frontend(-1, "Place_Prop_Fail", "DLC_Dmod_Prop_Editor_Sounds", 0);
									}
									break;
								
								case 2:
									audio::play_sound_frontend(-1, "Save_Scene", "DLC_Dmod_Prop_Editor_Sounds", 0);
									func_807(iLocal_4056);
									func_363();
									break;
								
								case 3:
									if (iLocal_4056 != iLocal_4055 && Local_5462[iLocal_4055 /*12*/] > 0)
									{
										func_370(9, 0);
										audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
									}
									else
									{
										audio::play_sound_frontend(-1, "Save_Scene", "DLC_Dmod_Prop_Editor_Sounds", 0);
										func_807(iLocal_4055);
										func_363();
									}
									break;
								
								case 4:
									if (func_141() > 0)
									{
										audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
										func_370(8, 0);
									}
									else
									{
										audio::play_sound_frontend(-1, "Place_Prop_Fail", "DLC_Dmod_Prop_Editor_Sounds", 0);
									}
									break;
							}
							break;
						
						case 2:
							if (func_909())
							{
								if (iLocal_3543 && func_141() > 0)
								{
									func_804(3);
								}
								iLocal_3543 = 0;
							}
							func_363();
							break;
						
						case 3:
							iVar0 = Local_5662.f_90;
							if (func_907(&iVar0))
							{
								func_865(iVar0, 0);
								func_363();
							}
							break;
						}
				}
				iLocal_9717 = 0;
				break;
			}
	}
	if (iLocal_9720)
	{
		switch (iLocal_5754)
		{
			case 0:
				break;
			
			case 1:
				break;
			
			case 2:
				if (iLocal_7565)
				{
					func_885(0);
					iLocal_7569 = 1;
					func_363();
				}
				iLocal_9720 = 0;
				break;
			}
	}
	if (iLocal_9735)
	{
		switch (iLocal_5754)
		{
			case 3:
				if (iLocal_220 == 0 && Local_5662.f_90 == iLocal_4056)
				{
					func_370(10, 0);
				}
				else if (iLocal_220 == 1)
				{
				}
				else if (iLocal_220 == 3)
				{
					iVar1 = func_866();
					func_905(Local_5662.f_90);
					audio::play_sound_frontend(-1, "Delete_Placed_Prop", "DLC_Dmod_Prop_Editor_Sounds", 0);
					if (Local_5662.f_90 == func_904())
					{
						func_865((Local_5662.f_90 - 1), -1);
					}
					iVar1 = (iVar1 - 1);
					if (iVar1 < 0)
					{
						iVar1 = 0;
					}
					func_794(iVar1);
					func_363();
				}
				break;
		}
		iLocal_9735 = 0;
	}
	if (iLocal_9736)
	{
		if (iLocal_5754 == 3)
		{
			if (!ped::is_ped_injured(player::player_ped_id()))
			{
				if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
				{
					if (iLocal_220 == 3)
					{
						if (func_141() > 0)
						{
							if (gameplay::are_strings_equal(sLocal_5554, "DMPP_HLP_PLCD2"))
							{
								audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
								func_370(12, 0);
								iLocal_9736 = 0;
							}
						}
					}
				}
			}
			iLocal_9736 = 0;
		}
	}
	if (iLocal_9719)
	{
		if (iLocal_5754 == 3)
		{
			if (iLocal_220 == 3 || iLocal_220 == 2)
			{
				if (iLocal_3543 && func_141() > 0)
				{
					func_804(3);
					func_865(0, 0);
				}
				else
				{
					func_804(1);
					func_865(iLocal_5755, 0);
				}
				iLocal_3543 = 0;
				audio::play_sound_frontend(-1, "BACK", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
				iLocal_9719 = false;
				func_363();
			}
			else if (iLocal_220 == 1)
			{
				func_865(iLocal_4056, 0);
				func_804(0);
				audio::play_sound_frontend(-1, "BACK", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
				iLocal_9719 = false;
				func_363();
			}
		}
	}
}

int func_904()//Position - 0x8F965
{
	switch (iLocal_220)
	{
		case 0:
			return 4;
			break;
		
		case 1:
			return 5;
			break;
		
		case 2:
			return 2;
			break;
		
		case 3:
			return iLocal_4045;
			break;
	}
	return iLocal_4045;
}

void func_905(int iParam0)//Position - 0x8F9AD
{
	int iVar0;
	var uVar1;
	vector3 vVar2;
	int iVar5;
	
	iVar0 = func_127(iParam0);
	if (iVar0 > -1)
	{
		if (entity::does_entity_exist(Local_3544[iVar0 /*10*/].f_8))
		{
			uVar1 = func_14(Local_3544[iVar0 /*10*/]);
			if (!Local_304[uVar1 /*14*/].f_6)
			{
				iLocal_4046 = (iLocal_4046 - 1);
			}
			if (func_13(Local_304[uVar1 /*14*/].f_5))
			{
				iLocal_4050 = (iLocal_4050 - 1);
			}
			vVar2 = { entity::get_entity_coords(Local_3544[iVar0 /*10*/].f_8, 1) };
			iVar5 = Local_3544[iVar0 /*10*/].f_7;
			func_878();
			object::delete_object(&(Local_3544[iVar0 /*10*/].f_8));
			func_12(Local_3544[iVar0 /*10*/].f_7);
			Local_3544[iVar0 /*10*/].f_6 = 0f;
			Local_3544[iVar0 /*10*/] = { 0f, 0f, 0f };
			Local_3544[iVar0 /*10*/].f_7 = 0;
			iLocal_4045 = (iLocal_4045 - 1);
			iLocal_5556 = -99;
			iLocal_4054 = -1;
			audio::play_sound_frontend(-1, "Delete_Placed_Prop", "DLC_Dmod_Prop_Editor_Sounds", 0);
			iLocal_5552 = true;
			func_906(vVar2, iVar5);
			if (iLocal_4045 == 0)
			{
				func_804(1);
			}
		}
	}
}

void func_906(vector3 vParam0, int iParam3)//Position - 0x8FAAA
{
	int iVar0;
	var uVar1;
	var uVar2;
	float fVar3;
	vector3 vVar4;
	vector3 vVar7;
	
	fVar3 = 10f;
	vVar7 = { 0f, 0f, 0f };
	if (iParam3 != 0)
	{
		gameplay::get_model_dimensions(iParam3, &vVar4, &vVar7);
		vVar4 = { vVar7 - vVar4 };
		fVar3 = func_723(vVar4.x, func_723(vVar4.y, vVar4.y));
	}
	iVar0 = 0;
	while (iVar0 < iLocal_4045)
	{
		uVar1 = func_127(iVar0);
		if (entity::does_entity_exist(Local_3544[uVar1 /*10*/].f_8))
		{
			vVar4 = { Local_3544[uVar1 /*10*/] };
			vVar4.z = 0f;
			vParam0.z = 0f;
			if (system::vdist2(vParam0, vVar4) < (fVar3 * fVar3))
			{
				uVar2 = func_14(Local_3544[uVar1 /*10*/]);
				if (Local_304[uVar2 /*14*/].f_7)
				{
					entity::_0x9EBC85ED0FFFE51C(Local_3544[uVar1 /*10*/].f_8, false, 0);
					unk_0xD76EEEF746057FD6(Local_3544[uVar1 /*10*/].f_8);
					Local_3544[uVar1 /*10*/] = { entity::get_entity_coords(Local_3544[uVar1 /*10*/].f_8, 1) };
					Local_3544[uVar1 /*10*/].f_3 = { entity::get_entity_coords(Local_3544[uVar1 /*10*/].f_8, 1) };
					entity::set_entity_collision(Local_3544[uVar1 /*10*/].f_8, true, 0);
				}
				else
				{
					rope::activate_physics(Local_3544[uVar1 /*10*/].f_8);
				}
			}
		}
		iVar0++;
	}
}

bool func_907(var uParam0)//Position - 0x8FBD1
{
	int iVar0;
	int iVar1;
	vector3 vVar2;
	int iVar5;
	
	iVar0 = func_127(*uParam0);
	if (iVar0 > -1)
	{
		if (entity::does_entity_exist(Local_3544[iVar0 /*10*/].f_8))
		{
			iLocal_3543 = 1;
			iLocal_5613 = 1;
			audio::play_sound_frontend(-1, "Select_Placed_Prop", "DLC_Dmod_Prop_Editor_Sounds", 0);
			iVar1 = func_14(Local_3544[iVar0 /*10*/]);
			func_880(1);
			iLocal_3539[0] = Local_304[iVar1 /*14*/].f_4;
			iLocal_3539[1] = func_908(Local_304[iVar1 /*14*/].f_4, Local_304[iVar1 /*14*/].f_5);
			iLocal_3542 = iVar1;
			if (!Local_304[iVar1 /*14*/].f_6)
			{
				iLocal_4046 = (iLocal_4046 - 1);
			}
			if (func_13(Local_304[iVar1 /*14*/].f_5))
			{
				iLocal_4050 = (iLocal_4050 - 1);
			}
			vVar2 = { entity::get_entity_coords(Local_3544[iVar0 /*10*/].f_8, 1) };
			iVar5 = Local_3544[iVar0 /*10*/].f_7;
			func_878();
			object::delete_object(&(Local_3544[iVar0 /*10*/].f_8));
			func_12(Local_3544[iVar0 /*10*/].f_7);
			Local_3544[iVar0 /*10*/].f_6 = 0f;
			Local_3544[iVar0 /*10*/] = { 0f, 0f, 0f };
			Local_3544[iVar0 /*10*/].f_7 = 0;
			iLocal_4045 = (iLocal_4045 - 1);
			iLocal_5552 = true;
			func_906(vVar2, iVar5);
			func_804(2);
			*uParam0 = 1;
			return true;
		}
	}
	return false;
}

int func_908(int iParam0, int iParam1)//Position - 0x8FD07
{
	int iVar0;
	int iVar1;
	
	iVar1 = 0;
	iVar0 = 0;
	while (iVar0 < 231)
	{
		if (Local_304[iVar0 /*14*/].f_4 == iParam0)
		{
			if (Local_304[iVar0 /*14*/].f_5 == iParam1)
			{
				return iVar1;
			}
			iVar1++;
		}
		iVar0++;
	}
	return -1;
}

bool func_909()//Position - 0x8FD4D
{
	int iVar0;
	int iVar1;
	var uVar2;
	var uVar3;
	float fVar4;
	
	iVar0 = 0;
	iVar1 = false;
	if (!func_910(&Local_5514))
	{
		audio::play_sound_frontend(-1, "Place_Prop_Fail", "DLC_Dmod_Prop_Editor_Sounds", 0);
		return false;
	}
	uVar2 = func_14(Local_5514);
	if (iLocal_4049 != -1)
	{
		iVar0 = iLocal_4049;
		object::delete_object(&(Local_3544[iVar0 /*10*/].f_8));
		Local_3544[iVar0 /*10*/].f_7 = 0;
		iVar1 = true;
		iLocal_4049 = -1;
	}
	else
	{
		if (!Local_304[uVar2 /*14*/].f_6)
		{
			if (iLocal_4046 == 25)
			{
				audio::play_sound_frontend(-1, "Place_Prop_Fail", "DLC_Dmod_Prop_Editor_Sounds", 0);
				return false;
			}
		}
		if (iLocal_4045 == 50)
		{
			audio::play_sound_frontend(-1, "Place_Prop_Fail", "DLC_Dmod_Prop_Editor_Sounds", 0);
			return false;
		}
		while (iVar0 < 50 && !iVar1)
		{
			if (!entity::does_entity_exist(Local_3544[iVar0 /*10*/].f_8) && entity::does_entity_exist(Local_5514.f_8))
			{
				iVar1 = true;
				iLocal_4045++;
				if (!Local_304[uVar2 /*14*/].f_6)
				{
					iLocal_4046++;
				}
				if (func_13(Local_304[uVar2 /*14*/].f_5))
				{
					iLocal_4050++;
				}
			}
			else
			{
				iVar0++;
			}
		}
	}
	if (iVar1)
	{
		Local_3544[iVar0 /*10*/] = { Local_5514 };
		Local_5514.f_8 = 0;
		func_880(0);
		uVar3 = func_14(Local_3544[iVar0 /*10*/]);
		if (Local_304[uVar3 /*14*/].f_4 == 14)
		{
			object::_0x4D89D607CB3DD1D2(Local_3544[iVar0 /*10*/].f_8, 0);
		}
		if (Local_304[uVar2 /*14*/].f_7)
		{
			unk_0xD76EEEF746057FD6(Local_3544[iVar0 /*10*/].f_8);
		}
		Local_3544[iVar0 /*10*/] = { entity::get_entity_coords(Local_3544[iVar0 /*10*/].f_8, 1) };
		Local_3544[iVar0 /*10*/].f_3 = { entity::get_entity_rotation(Local_3544[iVar0 /*10*/].f_8, 2) };
		entity::set_entity_coords(Local_3544[iVar0 /*10*/].f_8, Local_3544[iVar0 /*10*/], Local_3544[iVar0 /*10*/].f_1, (Local_3544[iVar0 /*10*/].f_2 + Local_304[uVar3 /*14*/].f_10), 1, false, 0, 1);
		fVar4 = 0f;
		if (Local_304[uVar3 /*14*/].f_11 > 1.5f)
		{
			fVar4 = 0.33f;
		}
		if (Local_304[uVar3 /*14*/].f_11 > 3.2f)
		{
			fVar4 = 0.66f;
		}
		if (Local_304[uVar3 /*14*/].f_11 > 6.5f)
		{
			fVar4 = 0.99f;
		}
		if (Local_304[uVar3 /*14*/].f_4 == 14 || iLocal_5529)
		{
			graphics::_set_ptfx_asset_next_call("scr_mp_creator");
			graphics::start_particle_fx_non_looped_at_coord("scr_mp_splash", Local_3544[iVar0 /*10*/], Local_3544[iVar0 /*10*/].f_1, vLocal_5632.y, 0f, 0f, 0f, Local_304[uVar3 /*14*/].f_13, 0, 0, 0);
			iLocal_5635 = audio::get_sound_id();
			audio::play_sound_from_entity(iLocal_5635, "Prop_Drop_Water", Local_3544[iVar0 /*10*/].f_8, "DLC_Dmod_Prop_Editor_Sounds", 0, 0);
			audio::set_variable_on_sound(iLocal_5635, "PropSize", fVar4);
			audio::release_sound_id(iLocal_5635);
		}
		else
		{
			if (Local_304[uVar3 /*14*/].f_7)
			{
				graphics::_set_ptfx_asset_next_call("scr_mp_creator");
				graphics::start_particle_fx_non_looped_at_coord("scr_mp_dust_cloud", Local_3544[iVar0 /*10*/], Local_3544[iVar0 /*10*/].f_1, (Local_3544[iVar0 /*10*/].f_2 + Local_304[uVar3 /*14*/].f_10), 0f, 0f, 0f, Local_304[uVar3 /*14*/].f_13, 0, 0, 0);
			}
			iLocal_5635 = audio::get_sound_id();
			audio::play_sound_from_entity(iLocal_5635, "Prop_Drop_Land", Local_3544[iVar0 /*10*/].f_8, "DLC_Dmod_Prop_Editor_Sounds", 0, 0);
			audio::set_variable_on_sound(iLocal_5635, "PropSize", fVar4);
			audio::release_sound_id(iLocal_5635);
		}
		Local_3544[iVar0 /*10*/] = { entity::get_entity_coords(Local_3544[iVar0 /*10*/].f_8, 1) };
		entity::set_entity_collision(Local_3544[iVar0 /*10*/].f_8, true, 0);
		entity::reset_entity_alpha(Local_3544[iVar0 /*10*/].f_8);
		vLocal_5533 = { 0f, 0f, -1000f };
		audio::play_sound_frontend(-1, "Place_Prop_Success", "DLC_Dmod_Prop_Editor_Sounds", 0);
		Local_3544[iVar0 /*10*/].f_9 = ui::add_blip_for_entity(Local_3544[iVar0 /*10*/].f_8);
		ui::set_blip_name_from_text_file(Local_3544[iVar0 /*10*/].f_9, func_15(Local_3544[iVar0 /*10*/].f_7));
		ui::set_blip_colour(Local_3544[iVar0 /*10*/].f_9, 58);
		ui::set_blip_scale(Local_3544[iVar0 /*10*/].f_9, 0.75f);
		ui::_0x75A16C3DA34F1245(Local_3544[iVar0 /*10*/].f_9, false);
		iLocal_5552 = true;
		return true;
	}
	return false;
}

int func_910(var uParam0)//Position - 0x90154
{
	vector3 vVar0;
	var uVar3;
	float fVar6;
	var uVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	float fVar12;
	float fVar13;
	float fVar14;
	
	iVar9 = gameplay::get_game_timer() > iLocal_5532 + 100;
	iVar10 = func_14(*uParam0);
	if (uParam0->f_7 == 0 || !entity::does_entity_exist(uParam0->f_8))
	{
		return false;
	}
	if (iVar10 > -1)
	{
		gameplay::get_model_dimensions(uParam0->f_7, &vLocal_5543, &vLocal_5546);
		vLocal_5536 = { *uParam0 + uParam0->f_3 + Vector(uParam0->f_6, 0f, 0f) };
		if ((iLocal_5529 && Local_304[iVar10 /*14*/].f_4 != 14) && !((Local_304[iVar10 /*14*/].f_8 > 1f && !Local_304[iVar10 /*14*/].f_7) && !Local_304[iVar10 /*14*/].f_6))
		{
			iLocal_5555 = 5;
			return false;
		}
		else if (!iLocal_5529 && Local_304[iVar10 /*14*/].f_4 == 14)
		{
			iLocal_5555 = 3;
			return false;
		}
		if (func_13(uParam0->f_7))
		{
			if (iLocal_4050 == 10)
			{
				iLocal_5555 = 11;
				return false;
			}
		}
		if (entity::does_entity_exist(Local_5514.f_8))
		{
			iVar11 = interior::get_interior_from_entity(Local_5514.f_8);
			if (interior::is_valid_interior(iVar11))
			{
				if (func_913(interior::get_interior_group_id(iVar11)))
				{
					iLocal_5555 = 4;
					return false;
				}
			}
		}
		if (Local_304[iVar10 /*14*/].f_4 == 14)
		{
			if (!unk_0x9E82F0F362881B29(*uParam0, &fVar6, 0))
			{
				fVar6 = -200f;
			}
			unk_0x9E82F0F362881B29(*uParam0, &fLocal_5549, 1);
			fVar12 = (fLocal_5549 - fVar6);
			fVar13 = (vLocal_5546.y - vLocal_5543.y);
			if (Local_304[iVar10 /*14*/].f_5 == joaat("prop_byard_float_02"))
			{
				fVar13 = 2f;
			}
			if ((fVar13 / 2f) > fVar12)
			{
				iLocal_5555 = 9;
				return false;
			}
			if (fLocal_5549 < func_912(*uParam0, 0))
			{
				iLocal_5555 = 3;
				return false;
			}
		}
	}
	else
	{
		return false;
	}
	if (func_911(Local_5514))
	{
		iLocal_5542 = 0;
		iLocal_5555 = 10;
		return false;
	}
	fVar14 = 0.1f;
	if (entity::get_entity_speed(player::player_ped_id()) > 0.1f)
	{
		fVar14 = (fVar14 + 0.3f);
		iVar9 = gameplay::get_game_timer() > iLocal_5532 + 100;
	}
	if (func_9(vLocal_5536, vLocal_5533, fVar14, 0))
	{
		return (iLocal_5542 && iVar9);
	}
	else
	{
		iLocal_5555 = 0;
		iLocal_5532 = gameplay::get_game_timer() + 150;
	}
	if (iLocal_5530 == 0)
	{
		iLocal_5530 = worldprobe::_0x37181417CE7C8900(uParam0->f_8, 127, 4);
	}
	else
	{
		iVar8 = worldprobe::_get_raycast_result(iLocal_5530, &iLocal_5531, &vVar0, &uVar3, &uVar7);
		if (iVar8 == 2)
		{
			vLocal_5533 = { vLocal_5536 };
			if (iLocal_5531 == 0)
			{
				vVar0 = { entity::get_offset_from_entity_in_world_coords(uParam0->f_8, 0f, 0f, vLocal_5543.y) };
				if (vVar0.y < func_912(vVar0, 1) && !Local_304[iVar10 /*14*/].f_4 == 14)
				{
					iLocal_5542 = 0;
					iLocal_5555 = 6;
					return false;
				}
				gameplay::get_ground_z_for_3d_coord(vVar0 + Vector(3f, 0f, 0f), &fVar6, 0);
				fVar6 = func_723(fVar6, func_723(fLocal_5549, 0f));
				if (gameplay::absf((vVar0.y - func_912(vVar0, 1))) > Local_304[iVar10 /*14*/].f_8)
				{
					iLocal_5542 = 0;
					iLocal_5555 = 6;
					return iLocal_5542;
				}
				vLocal_5543.x = (vLocal_5543.x * Local_304[iVar10 /*14*/].f_12);
				vLocal_5543.y = (vLocal_5543.y * Local_304[iVar10 /*14*/].f_12);
				vLocal_5546.x = (vLocal_5546.x * Local_304[iVar10 /*14*/].f_12);
				vLocal_5546.y = (vLocal_5546.y * Local_304[iVar10 /*14*/].f_12);
				vVar0 = { entity::get_offset_from_entity_in_world_coords(uParam0->f_8, vLocal_5543.x, vLocal_5543.y, vLocal_5543.y) };
				gameplay::get_ground_z_for_3d_coord(vVar0 + Vector(3f, 0f, 0f), &fVar6, 0);
				fVar6 = func_723(fVar6, func_723(fLocal_5549, 0f));
				if (gameplay::absf((vVar0.y - func_912(vVar0, 1))) > Local_304[iVar10 /*14*/].f_8)
				{
					iLocal_5542 = 0;
					iLocal_5555 = 6;
					return iLocal_5542;
				}
				vVar0 = { entity::get_offset_from_entity_in_world_coords(uParam0->f_8, vLocal_5546.x, vLocal_5543.y, vLocal_5543.y) };
				gameplay::get_ground_z_for_3d_coord(vVar0 + Vector(3f, 0f, 0f), &fVar6, 0);
				fVar6 = func_723(fVar6, func_723(fLocal_5549, 0f));
				if (gameplay::absf((vVar0.y - func_912(vVar0, 1))) > Local_304[iVar10 /*14*/].f_8)
				{
					iLocal_5542 = 0;
					iLocal_5555 = 6;
					return iLocal_5542;
				}
				vVar0 = { entity::get_offset_from_entity_in_world_coords(uParam0->f_8, vLocal_5543.x, vLocal_5546.y, vLocal_5543.y) };
				gameplay::get_ground_z_for_3d_coord(vVar0 + Vector(3f, 0f, 0f), &fVar6, 0);
				fVar6 = func_723(fVar6, func_723(fLocal_5549, 0f));
				if (gameplay::absf((vVar0.y - func_912(vVar0, 1))) > Local_304[iVar10 /*14*/].f_8)
				{
					iLocal_5542 = 0;
					iLocal_5555 = 6;
					return iLocal_5542;
				}
				vVar0 = { entity::get_offset_from_entity_in_world_coords(uParam0->f_8, vLocal_5546.x, vLocal_5546.y, vLocal_5543.y) };
				gameplay::get_ground_z_for_3d_coord(vVar0 + Vector(3f, 0f, 0f), &fVar6, 0);
				fVar6 = func_723(fVar6, func_723(fLocal_5549, 0f));
				if (gameplay::absf((vVar0.y - func_912(vVar0, 1))) > Local_304[iVar10 /*14*/].f_8)
				{
					iLocal_5542 = 0;
					iLocal_5555 = 6;
					return iLocal_5542;
				}
				iLocal_5555 = 1;
				iLocal_5542 = 1;
			}
			else
			{
				iLocal_5555 = 2;
				iLocal_5542 = 0;
			}
		}
		else if (iVar8 == 0)
		{
			iLocal_5555 = 0;
			iLocal_5530 = 0;
			iLocal_5542 = 0;
			vLocal_5533 = { 0f, 0f, -1000f };
		}
	}
	return (iLocal_5542 && iVar9);
}

bool func_911(vector3 vParam0, var uParam3, var uParam4, var uParam5, var uParam6, var uParam7, var uParam8, var uParam9)//Position - 0x9066F
{
	if (entity::is_entity_in_angled_area(vParam0.f_8, -1664.3f, -1146.7f, 11f, -1663.7f, -1107.1f, 50.2f, 15f, 0, true, 0))
	{
		return true;
	}
	else if ((system::vdist2(-816.4668f, 178.3063f, 71.57366f, vParam0) < 3f || system::vdist2(-793.7568f, 181.5397f, 73.10931f, vParam0) < 3.5f) || system::vdist2(-795.5229f, 177.5899f, 73.07761f, vParam0) < 3.5f)
	{
		return true;
	}
	return false;
}

float func_912(vector3 vParam0, int iParam3)//Position - 0x90716
{
	float fVar0;
	int iVar1;
	
	iVar1 = water::test_vertical_probe_against_all_water(vParam0 + Vector(2f, 0f, 0f), 511, &fVar0);
	if (iVar1 == 2)
	{
		return fVar0;
	}
	if (iVar1 == 1)
	{
		if (iParam3)
		{
			return fVar0;
		}
		else
		{
			if (!gameplay::get_ground_z_for_3d_coord(vParam0 + Vector(2f, 0f, 0f), &fVar0, 0))
			{
				fVar0 = -200f;
			}
			return fVar0;
		}
	}
	return -200f;
}

bool func_913(int iParam0)//Position - 0x90779
{
	if (((iParam0 == 12 || iParam0 == 5) || iParam0 == 18) || iParam0 == 9)
	{
		return false;
	}
	return true;
}

void func_914()//Position - 0x907B1
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	
	if (iLocal_9715 || iLocal_9716)
	{
		iVar0 = false;
		switch (iLocal_5754)
		{
			case 0:
				switch (Local_5662.f_90)
				{
					case 1:
						if (iLocal_5760 > 0 && func_96(5))
						{
							iVar0 = true;
						}
						break;
					
					case 3:
						if (!func_46(entity::get_entity_model(player::player_ped_id())))
						{
							if (iLocal_7921 > 1)
							{
								iVar0 = true;
							}
							else
							{
								iLocal_7676[3] = 0;
							}
						}
						break;
					
					case 2:
						if (func_96(3) && !func_46(entity::get_entity_model(player::player_ped_id())))
						{
							iVar0 = true;
						}
						break;
					
					case 4:
						if (func_96(1) && (func_109(0) + func_109(1)) > 1)
						{
							iVar0 = true;
						}
						break;
				}
				if (iVar0)
				{
					if (iLocal_9715)
					{
						iLocal_7676[Local_5662.f_90] = (iLocal_7676[Local_5662.f_90] - 1);
						if (Local_5662.f_90 == 2)
						{
							iLocal_9714 = -1;
							func_811(&(iLocal_7676[Local_5662.f_90]));
						}
						else if (iLocal_7676[Local_5662.f_90] < 0)
						{
							iLocal_7676[Local_5662.f_90] = func_938(Local_5662.f_90);
						}
					}
					if (iLocal_9716)
					{
						iLocal_7676[Local_5662.f_90]++;
						if (Local_5662.f_90 == 2)
						{
							iLocal_9714 = 1;
							func_811(&(iLocal_7676[Local_5662.f_90]));
						}
						else if (iLocal_7676[Local_5662.f_90] > func_938(Local_5662.f_90))
						{
							iLocal_7676[Local_5662.f_90] = 0;
						}
					}
					audio::play_sound_frontend(-1, "NAV_LEFT_RIGHT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
					func_84();
					func_363();
				}
				break;
			
			case 2:
				iVar0 = true;
				if (Local_5662.f_90 >= 6 && Local_5662.f_90 <= 12)
				{
					iVar0 = func_27(Local_5662.f_90);
				}
				if (iVar0)
				{
					if (iLocal_9715)
					{
						iLocal_7535[Local_5662.f_90] = (iLocal_7535[Local_5662.f_90] - 1);
					}
					else if (iLocal_9716)
					{
						iLocal_7535[Local_5662.f_90]++;
					}
					if (iLocal_7535[Local_5662.f_90] > func_938(Local_5662.f_90))
					{
						iLocal_7535[Local_5662.f_90] = 0;
					}
					else if (iLocal_7535[Local_5662.f_90] < 0)
					{
						iLocal_7535[Local_5662.f_90] = func_938(Local_5662.f_90);
					}
					func_937();
					if (Local_5662.f_90 == 0)
					{
						iLocal_7565 = true;
					}
					if (iLocal_7565)
					{
						iLocal_7566 = 0;
					}
					audio::play_sound_frontend(-1, "NAV_LEFT_RIGHT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
					func_363();
					if (Local_5662.f_90 == 0)
					{
						iLocal_7567 = false;
					}
				}
				break;
			
			case 3:
				if (iLocal_220 == 1 && Local_5662.f_90 == 3)
				{
					audio::play_sound_frontend(-1, "Cycle_Item", "DLC_Dmod_Prop_Editor_Sounds", 0);
					if (iLocal_9716)
					{
						iLocal_4055 = (iLocal_4055 + 1 % 4);
					}
					else if (iLocal_9715)
					{
						iLocal_4055 = ((iLocal_4055 - 1) + 4 % 4);
					}
					if (iLocal_4056 == iLocal_4055)
					{
						if (iLocal_9716)
						{
							iLocal_4055 = (iLocal_4055 + 1 % 4);
						}
						else if (iLocal_9715)
						{
							iLocal_4055 = ((iLocal_4055 - 1) + 4 % 4);
						}
					}
					func_363();
				}
				else if (iLocal_220 == 2)
				{
					if (iLocal_9716)
					{
						func_936(Local_5662.f_90);
					}
					else if (iLocal_9715)
					{
						func_935(Local_5662.f_90);
					}
					func_363();
				}
				break;
			}
	}
	if (iLocal_9710 != 0)
	{
		if (iLocal_7587)
		{
			if (iLocal_220 == 3)
			{
				if (iLocal_4045 > 1)
				{
					audio::play_sound_frontend(-1, "NAV_UP_DOWN", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
				}
			}
			else
			{
				audio::play_sound_frontend(-1, "NAV_UP_DOWN", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
			}
		}
		else
		{
			audio::play_sound_frontend(-1, "NAV_UP_DOWN", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
		}
		func_865((((Local_5662.f_90 + iLocal_9710) + func_934()) % func_934()), -1);
		if (iLocal_5754 == 2)
		{
			iLocal_7566 = 1;
		}
		func_84();
		func_363();
	}
	iVar1 = func_933();
	iVar4 = false;
	switch (iLocal_5754)
	{
		case 2:
			switch (Local_5662.f_90)
			{
				case 0:
					if (controls::is_disabled_control_pressed(0, 44))
					{
						iVar4 = true;
						func_932(&iVar1, 0, 1, 0, 0, 0, 0);
					}
					else if (controls::is_disabled_control_pressed(0, 37))
					{
						iVar4 = true;
						func_919(&iVar1, 0, 1, 0, 0, 0, 0);
					}
					if (iVar4)
					{
						unk1::_0xEB2D525B57F42B40();
						iLocal_7567 = true;
						iVar2 = func_918(iVar1);
						iVar3 = func_917(iVar1);
						time::set_clock_time(iVar2, iVar3, func_916(iVar1));
						iLocal_7535[0] = func_915(iVar2, iVar3);
						iLocal_7520[0] = iLocal_7535[0];
						func_937();
						func_363();
					}
					if (controls::is_disabled_control_just_pressed(0, 23))
					{
						iLocal_7568 = !iLocal_7568;
						time::pause_clock(iLocal_7568);
						func_363();
					}
					break;
			}
			break;
		
		case 3:
			if (!iLocal_9732)
			{
				if (controls::is_disabled_control_just_pressed(2, iLocal_7662))
				{
					iLocal_9735 = 1;
				}
				if (iLocal_220 == 3)
				{
					if (func_141() > 0)
					{
						controls::set_input_exclusive(2, 204);
						if (controls::is_disabled_control_just_pressed(2, 204))
						{
							iLocal_9736 = 1;
						}
					}
				}
				iVar5 = iLocal_5631;
				iLocal_5631 = (controls::is_disabled_control_pressed(2, 205) && iLocal_220 == 0);
				if (iVar5 != iLocal_5631)
				{
					func_363();
				}
				if (iLocal_5553)
				{
					iLocal_5553 = 0;
					func_363();
				}
			}
			break;
	}
}

int func_915(int iParam0, int iParam1)//Position - 0x90CA5
{
	if (iParam0 < 5)
	{
		return 0;
	}
	else if (iParam0 < 6)
	{
		return 1;
	}
	else if (iParam0 < 8)
	{
		return 2;
	}
	else if (iParam0 < 12)
	{
		return 3;
	}
	else if (iParam0 < 16)
	{
		return 4;
	}
	else if (iParam0 < 18)
	{
		return 5;
	}
	else if (iParam0 == 18 && iParam1 <= 30)
	{
		return 5;
	}
	else if (iParam0 < 21)
	{
		return 6;
	}
	else
	{
		return 7;
	}
	return -1;
}

int func_916(int iParam0)//Position - 0x90D2B
{
	return system::shift_right(iParam0, 20) & 63;
}

int func_917(int iParam0)//Position - 0x90D3E
{
	return system::shift_right(iParam0, 14) & 63;
}

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

void func_919(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x90D64
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	
	iVar0 = func_930(*uParam0);
	iVar1 = func_929(*uParam0);
	iVar2 = func_928(*uParam0);
	iVar3 = func_918(*uParam0);
	iVar4 = func_917(*uParam0);
	iVar5 = func_916(*uParam0);
	if (((iParam4 == 0 && iParam3 == 0) && iParam2 == 0) && iParam1 == 0)
	{
		return;
	}
	if (iParam1 < 0)
	{
		return;
	}
	if (iParam2 < 0)
	{
		return;
	}
	if (iParam3 < 0)
	{
		return;
	}
	if (iParam4 < 0)
	{
		return;
	}
	iVar5 = (iVar5 - iParam1);
	while (iVar5 < 0)
	{
		iParam2++;
		iVar5 += 60;
	}
	iVar4 = (iVar4 - iParam2);
	while (iVar4 < 0)
	{
		iParam3++;
		iVar4 += 60;
	}
	iVar3 = (iVar3 - iParam3);
	while (iVar3 < 0)
	{
		iParam4++;
		iVar3 += 24;
	}
	iVar2 = (iVar2 - iParam4);
	while (iVar2 <= 0)
	{
		iParam5++;
		iVar6 = (iVar1 - 1);
		iVar7 = iVar0;
		if (iVar6 < 0)
		{
			iVar6 = 11;
			iVar7 = (iVar7 - 1);
		}
		iVar8 = iVar6;
		iVar9 = func_927(iVar8, iVar7);
		iVar2 = (iVar2 + iVar9);
	}
	iVar1 = (iVar1 - iParam5);
	while (iVar1 < 0)
	{
		iParam6++;
		iVar1 += 12;
	}
	iVar0 = (iVar0 - iParam6);
	func_920(uParam0, iVar5, iVar4, iVar3, iVar2, iVar1, iVar0);
}

void func_920(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x90EB9
{
	func_926(uParam0, iParam1);
	func_925(uParam0, iParam2);
	func_924(uParam0, iParam3);
	func_923(uParam0, iParam5);
	func_922(uParam0, iParam4);
	func_921(uParam0, iParam6);
}

void func_921(var uParam0, int iParam1)//Position - 0x90EF1
{
	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_922(var uParam0, int iParam1)//Position - 0x90F77
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_929(*uParam0);
	iVar1 = func_930(*uParam0);
	if (iParam1 < 1 || iParam1 > func_927(iVar0, iVar1))
	{
		return;
	}
	*uParam0 = (*uParam0 - *uParam0 & 496);
	*uParam0 = (*uParam0 || system::shift_left(iParam1, 4));
}

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

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

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

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

int func_927(int iParam0, int iParam1)//Position - 0x910AC
{
	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;
}

int func_928(int iParam0)//Position - 0x9114E
{
	return system::shift_right(iParam0, 4) & 31;
}

int func_929(int iParam0)//Position - 0x91160
{
	return iParam0 & 15;
}

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

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

void func_932(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x911A9
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	
	iVar0 = func_930(*uParam0);
	iVar1 = func_929(*uParam0);
	iVar2 = func_928(*uParam0);
	iVar3 = func_918(*uParam0);
	iVar4 = func_917(*uParam0);
	iVar5 = func_916(*uParam0);
	if (((((iParam6 == 0 && iParam5 == 0) && iParam4 == 0) && iParam3 == 0) && iParam2 == 0) && iParam1 == 0)
	{
		return;
	}
	if (iParam1 < 0)
	{
		return;
	}
	if (iParam2 < 0)
	{
		return;
	}
	if (iParam3 < 0)
	{
		return;
	}
	if (iParam4 < 0)
	{
		return;
	}
	if (iParam5 < 0)
	{
		return;
	}
	if (iParam6 < 0)
	{
		return;
	}
	iVar5 = (iVar5 + iParam1);
	while (iVar5 >= 60)
	{
		iParam2++;
		iVar5 = (iVar5 - 60);
	}
	iVar4 = (iVar4 + iParam2);
	while (iVar4 >= 60)
	{
		iParam3++;
		iVar4 = (iVar4 - 60);
	}
	iVar3 = (iVar3 + iParam3);
	while (iVar3 >= 24)
	{
		iParam4++;
		iVar3 = (iVar3 - 24);
	}
	iVar2 = (iVar2 + iParam4);
	iVar6 = func_927(iVar1, iVar0);
	while (iVar2 > iVar6)
	{
		iVar1++;
		iVar2 = (iVar2 - iVar6);
		if (iVar1 > 11)
		{
			iVar0++;
			iVar1 = (iVar1 - 12);
		}
		iVar6 = func_927(iVar1, iVar0);
	}
	iVar1 = (iVar1 + iParam5);
	while (iVar1 > 11)
	{
		iParam6++;
		iVar1 = (iVar1 - 12);
	}
	iVar0 = (iVar0 + iParam6);
	func_920(uParam0, iVar5, iVar4, iVar3, iVar2, iVar1, iVar0);
}

var func_933()//Position - 0x9132B
{
	var uVar0;
	
	func_926(&uVar0, time::get_clock_seconds());
	func_925(&uVar0, time::get_clock_minutes());
	func_924(&uVar0, time::get_clock_hours());
	func_922(&uVar0, time::get_clock_day_of_month());
	func_923(&uVar0, time::get_clock_month());
	func_921(&uVar0, time::get_clock_year());
	return uVar0;
}

int func_934()//Position - 0x91371
{
	switch (iLocal_5754)
	{
		case 0:
			return 10;
		
		case 1:
			return iLocal_5661;
		
		case 2:
			return 14;
		
		case 3:
			return func_904();
		
		default:
	}
	return 0;
}

void func_935(int iParam0)//Position - 0x913B1
{
	if (iLocal_220 == 2)
	{
		audio::play_sound_frontend(-1, "Cycle_Item", "DLC_Dmod_Prop_Editor_Sounds", 0);
		if (iParam0 == 0)
		{
			iLocal_3539[0] = (iLocal_3539[0] - 1);
			if (iLocal_3539[0] <= 0)
			{
				iLocal_3539[0] = (16 - 1);
			}
			iLocal_3539[1] = 0;
		}
		else if (iParam0 == 1)
		{
			iLocal_3539[1] = (iLocal_3539[1] - 1);
			if (iLocal_3539[1] < 0)
			{
				iLocal_3539[1] = (uLocal_287[iLocal_3539[0]] - 1);
			}
		}
		func_880(1);
	}
}

void func_936(int iParam0)//Position - 0x91437
{
	if (iLocal_220 == 2)
	{
		audio::play_sound_frontend(-1, "Cycle_Item", "DLC_Dmod_Prop_Editor_Sounds", 0);
		if (iParam0 == 0)
		{
			iLocal_3539[0]++;
			if (iLocal_3539[0] >= 16)
			{
				iLocal_3539[0] = 0 + 1;
			}
			iLocal_3539[1] = 0;
		}
		else if (iParam0 == 1)
		{
			iLocal_3539[1]++;
			if (iLocal_3539[1] >= uLocal_287[iLocal_3539[0]])
			{
				iLocal_3539[1] = 0;
			}
		}
		func_880(1);
	}
}

void func_937()//Position - 0x914BB
{
	int iVar0;
	
	iLocal_7565 = false;
	iVar0 = 0;
	while (iVar0 <= 13)
	{
		if (iLocal_7535[iVar0] != iLocal_7520[iVar0])
		{
			iLocal_7565 = true;
		}
		iVar0++;
	}
}

int func_938(int iParam0)//Position - 0x914EF
{
	switch (iLocal_5754)
	{
		case 0:
			switch (iParam0)
			{
				case 1:
					return (iLocal_5760 - 1);
					break;
				
				case 3:
					return (iLocal_7921 - 1);
					break;
				
				case 4:
					return (func_864() - 1);
					break;
			}
			break;
		
		case 2:
			return (func_155(iParam0) - 1);
			break;
	}
	return 0;
}

void func_939()//Position - 0x91558
{
	int iVar0;
	int iVar1;
	int iVar2;
	float fVar3;
	float fVar4;
	float fVar5;
	float fVar6;
	int iVar7;
	float fVar8;
	
	if (!iLocal_7597)
	{
		iLocal_7597 = func_887("DIR_MNU", -1, 0);
	}
	else
	{
		if (ui::is_waypoint_active())
		{
			vLocal_9795 = { ui::get_blip_coords(ui::get_first_blip_info_id(ui::_get_blip_info_id_iterator())) };
		}
		if (!func_115(vLocal_9792, vLocal_9795, 0))
		{
			if (Global_17)
			{
				iLocal_9737 = -1;
			}
			func_363();
		}
		if (iLocal_9791 && cam::is_screen_faded_in())
		{
			func_363();
		}
		iLocal_9791 = !cam::is_screen_faded_in();
		graphics::_get_screen_active_resolution(&iVar0, &iVar1);
		if (iVar0 != iLocal_9788 || iVar1 != iLocal_9789)
		{
			iLocal_9788 = iVar0;
			iLocal_9789 = iVar1;
			func_363();
		}
		if (!gameplay::is_bit_set(iLocal_5939, 1))
		{
			iLocal_5757 = 1;
			Global_17 = 0;
			gameplay::set_bit(&iLocal_5939, 1);
		}
		if (Global_17)
		{
			if (ui::is_waypoint_active())
			{
				if (!func_115(Local_9128[29 /*17*/], vLocal_9795, 0))
				{
					iLocal_9737 = -1;
				}
			}
			func_363();
			Global_17 = 0;
		}
		if (iLocal_5757)
		{
			func_122(Local_5662.f_90, 1, 1);
			iVar2 = func_866();
			func_875();
			func_83();
			func_990(Local_5662.f_90, iVar2, 6);
			iLocal_5757 = 0;
			iLocal_5758 = gameplay::get_game_timer();
			iLocal_5759 = gameplay::get_game_timer();
		}
		else if ((gameplay::get_game_timer() - iLocal_5758) > 10000)
		{
			func_363();
		}
		else if ((iLocal_5754 == 0 && Local_5662.f_90 == 1) && (gameplay::get_game_timer() - iLocal_5759) > 500)
		{
			func_363();
			iLocal_5759 = gameplay::get_game_timer();
		}
		func_987();
		if (iLocal_6810 == 1 && func_80() == 5)
		{
			iLocal_9742 = gameplay::get_game_timer() + 125;
		}
		func_971();
		if (graphics::has_scaleform_movie_loaded(iLocal_7922))
		{
			if (!gameplay::is_string_null_or_empty(sLocal_9775))
			{
				graphics::_push_scaleform_movie_function(iLocal_7922, "SET_TEXT");
				graphics::_begin_text_component(sLocal_9775);
				graphics::_0xAE4E8157D9ECF087();
				graphics::_pop_scaleform_movie_function_void();
				if (graphics::_get_screen_aspect_ratio(0) != fLocal_6535)
				{
					fLocal_6535 = graphics::_get_screen_aspect_ratio(0);
					func_363();
					graphics::_push_scaleform_movie_function(iLocal_7922, "SET_TEXT_POINT_SIZE");
					graphics::_push_scaleform_movie_function_parameter_float(14f);
					graphics::_pop_scaleform_movie_function_void();
				}
				if (!iLocal_9790)
				{
					iLocal_9790 = 1;
					graphics::_push_scaleform_movie_function(iLocal_7922, "SET_BACKGROUND_IMAGE");
					graphics::_push_scaleform_movie_function_parameter_string("CommonMenu");
					graphics::_push_scaleform_movie_function_parameter_string("Gradient_Bgd");
					graphics::_push_scaleform_movie_function_parameter_int(73);
					graphics::_pop_scaleform_movie_function_void();
					graphics::_push_scaleform_movie_function(iLocal_7922, "SET_TEXT_POINT_SIZE");
					graphics::_push_scaleform_movie_function_parameter_float(14f);
					graphics::_pop_scaleform_movie_function_void();
				}
				fVar4 = fLocal_6543;
				if (gameplay::is_pc_version())
				{
					fVar3 = (((1f / graphics::_get_screen_aspect_ratio(0)) * 0.2f) - fVar4);
				}
				graphics::_set_screen_draw_position(76, 84);
				graphics::_0xF5A2C681787E579D(0f, 0f, 0f, 0f);
				if (((func_901() && func_898(0, 0)) && !cam::is_screen_fading_out()) && !cam::is_screen_faded_out())
				{
					fVar5 = fLocal_6536;
					fVar6 = fLocal_6545;
					if (iLocal_5754 == 3)
					{
						iVar7 = func_970(func_904(), 8);
						fVar8 = (0.034722f * IntToFloat((7 - iVar7) + 1));
						fVar5 = (fVar5 - fVar8);
						fVar6 = (fVar6 - fVar8);
					}
					graphics::_0xEFABC7722293DA7C();
					graphics::draw_scaleform_movie(iLocal_7922, fLocal_6538, fVar5, fLocal_6539, fLocal_6537, 255, 255, 255, 255, 0);
					graphics::_0xEFABC7722293DA7C();
					graphics::draw_rect(fLocal_6541, fVar6, fLocal_6542, fLocal_6546, 0, 0, 0, 255, 0);
					fVar3 = fVar3;
				}
				graphics::_0xE3A3DB414A373DAB();
			}
		}
		else
		{
			iLocal_7922 = graphics::request_scaleform_movie("TEXTFIELD");
		}
		func_969();
		if (((func_901() && func_898(0, 0)) && !cam::is_screen_fading_out()) && !cam::is_screen_faded_out())
		{
			func_958();
		}
		if (ui::is_waypoint_active())
		{
			vLocal_9792 = { ui::get_blip_coords(ui::get_first_blip_info_id(ui::_get_blip_info_id_iterator())) };
		}
		func_940(1, -1, 1, 0, 0, Global_17256, 0, 1);
		iLocal_7595 = 1;
	}
}

void func_940(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, float fParam5, int iParam6, int iParam7)//Position - 0x918CE
{
	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;
	float fVar33;
	float fVar34;
	float fVar35;
	float fVar36;
	vector3 vVar37;
	int iVar40;
	float fVar41;
	float fVar42;
	float fVar43;
	float fVar44;
	float fVar45;
	int iVar46;
	int iVar47;
	int iVar48;
	float fVar49;
	int iVar50;
	int iVar51;
	int iVar52;
	int iVar53;
	float fVar54;
	float fVar55;
	float fVar56;
	int iVar57;
	int iVar58;
	float fVar59;
	float fVar60;
	float fVar61;
	float fVar62;
	int iVar63;
	float fVar64;
	float fVar65;
	int iVar66;
	int iVar67;
	int iVar68;
	int iVar69;
	int iVar70;
	
	if (!func_171(&iVar0, 0, iParam1))
	{
		return;
	}
	if (iVar0 == -1)
	{
	}
	if (!func_898(0, iParam6))
	{
		return;
	}
	graphics::_set_screen_draw_position(76, 84);
	graphics::_0xF5A2C681787E579D(-0.05f, -0.05f, 0f, 0f);
	fVar55 = 0f;
	if (Global_17257)
	{
		if (func_132(29, 1, 1, &fVar35, &fVar36, iParam7))
		{
			fVar55 = fVar36;
			fVar55 = (fVar55 + 0f);
		}
		else
		{
			Global_17257 = 0;
		}
	}
	if (gameplay::get_hash_key(&(Global_17257.f_1)) == gameplay::get_hash_key("HIDE"))
	{
		fVar56 = Global_17255;
	}
	else
	{
		fVar56 = (((Global_17255 + fVar55) + 0.034722f) + 0f);
	}
	if (fParam5 == -1f)
	{
		fParam5 = Global_17256;
	}
	fVar59 = 1f;
	if (iParam7)
	{
		graphics::_get_screen_active_resolution(&iVar57, &iVar58);
		fVar60 = graphics::_get_screen_aspect_ratio(0);
		if (func_134())
		{
			iVar57 = system::round((system::to_float(iVar58) * fVar60));
		}
		fVar61 = (system::to_float(iVar57) / system::to_float(iVar58));
		fVar59 = (fVar61 / fVar60);
		if (func_134())
		{
			fVar59 = 1f;
		}
		iVar57 = system::round((system::to_float(iVar57) / fVar59));
		iVar58 = system::round((system::to_float(iVar58) / fVar59));
	}
	else
	{
		graphics::get_screen_resolution(&iVar57, &iVar58);
	}
	iVar5 = 0;
	while (iVar5 < 2)
	{
		if (iVar5 == 1 && Global_17257.f_5598)
		{
			if (gameplay::get_hash_key(&(Global_17257.f_1)) == gameplay::get_hash_key("HIDE"))
			{
				fVar49 = Global_17255;
			}
			else
			{
				if (Global_17257)
				{
					graphics::draw_sprite(func_137(29), func_135(29, 1), (Global_17254 + (fParam5 * 0.5f)), (Global_17255 + ((fVar55 - 0f) * 0.5f)), fParam5, (fVar55 - 0f), 0f, 255, 255, 255, 255, 0);
				}
				if (Global_17257.f_7864)
				{
					iVar1 = Global_17257.f_7860;
					iVar2 = Global_17257.f_7861;
					iVar3 = Global_17257.f_7862;
					iVar4 = Global_17257.f_7863;
				}
				else
				{
					iVar1 = 0;
					iVar2 = 0;
					iVar3 = 0;
					iVar4 = 255;
				}
				func_957(Global_17254, (Global_17255 + fVar55), fParam5, 0.034722f, iVar1, iVar2, iVar3, iVar4);
				fVar49 = (((Global_17255 + fVar55) + 0.034722f) + 0f);
				if (gameplay::get_hash_key(&(Global_17257.f_1)) != 0)
				{
					func_956();
					ui::_set_text_entry(&(Global_17257.f_1));
					iVar15 = 0;
					iVar16 = 0;
					iVar17 = 0;
					iVar18 = 0;
					iVar14 = 0;
					while (iVar14 < Global_17257.f_68)
					{
						if (Global_17257.f_5[iVar14] == 2)
						{
							ui::add_text_component_integer(Global_17257.f_10[iVar15]);
							iVar15++;
						}
						else if (Global_17257.f_5[iVar14] == 3)
						{
							ui::add_text_component_float(Global_17257.f_14[iVar16], Global_17257.f_18[iVar16]);
							iVar16++;
						}
						else if (Global_17257.f_5[iVar14] == 1)
						{
							ui::_add_text_component_item_string(&(Global_17257.f_22[iVar17 /*4*/]));
							iVar17++;
						}
						else if (Global_17257.f_5[iVar14] == 8)
						{
							ui::_add_text_component_item_string(&(Global_17257.f_22[iVar17 /*4*/]));
							iVar17++;
						}
						else if (Global_17257.f_5[iVar14] == 5)
						{
							ui::add_text_component_substring_player_name(&(Global_17257.f_35[iVar18 /*16*/]));
							iVar18++;
						}
						else if (Global_17257.f_5[iVar14] == 6)
						{
							ui::_add_text_component_item_string(&(Global_17257.f_35[iVar18 /*16*/]));
							iVar18++;
						}
						else if (Global_17257.f_5[iVar14] == 7)
						{
							ui::add_text_component_substring_player_name(&(Global_17257.f_35[iVar18 /*16*/]));
							iVar18++;
						}
						iVar14++;
					}
					ui::_draw_text((Global_17254 + 0.00390625f), ((Global_17255 + fVar55) + 0.00416664f), 0);
				}
				if (Global_17257.f_5601 > Global_17257.f_5095)
				{
					if (Global_17257.f_5604 != 0)
					{
						func_956();
						func_954((((Global_17254 + fParam5) - 0.00390625f) - func_955("CM_ITEM_COUNT", Global_17257.f_5604, Global_17257.f_5603)), ((Global_17255 + fVar55) + 0.00416664f), "CM_ITEM_COUNT", Global_17257.f_5604, Global_17257.f_5603);
					}
				}
			}
			iVar6 = Global_17257.f_5605;
			iVar9 = 0;
			fVar62 = fVar49;
			if (Global_17257.f_7874)
			{
				iVar1 = Global_17257.f_7870;
				iVar2 = Global_17257.f_7871;
				iVar3 = Global_17257.f_7872;
				iVar4 = Global_17257.f_7873;
			}
			else
			{
				ui::get_hud_colour(140, &iVar1, &iVar2, &iVar3, &iVar4);
			}
			while (iVar9 < Global_17257.f_5095 && iVar6 <= Global_17257.f_5088)
			{
				if (iVar6 >= 0)
				{
					if (Global_17257.f_5355[iVar6])
					{
						if (Global_17257.f_5226[iVar6] && iVar6 != Global_17257.f_5605)
						{
							fVar49 = (fVar49 + 0.00277776f);
						}
						fVar54 = 0.034722f;
						if (Global_17257.f_5612[iVar6] != 0f)
						{
							fVar54 = Global_17257.f_5612[iVar6];
						}
						fVar49 = (fVar49 + fVar54);
						iVar9++;
					}
				}
				iVar6++;
			}
			if (iParam3)
			{
				if (iVar9 <= 1)
				{
					fVar54 = 0.034722f;
					fVar49 = (fVar49 + fVar54);
					iVar9++;
					if (Global_17257.f_5088 <= 1)
					{
						Global_17257.f_5088++;
					}
					iVar52 = 1;
				}
			}
			graphics::draw_sprite("CommonMenu", "Gradient_Bgd", (Global_17254 + (fParam5 * 0.5f)), ((fVar62 + ((fVar49 - fVar62) * 0.5f)) - 0.00138888f), fParam5, (fVar49 - fVar62), 0f, 255, 255, 255, 255, 0);
			if (Global_17257.f_5601 > Global_17257.f_5095)
			{
				if (Global_17257.f_7879)
				{
					iVar1 = Global_17257.f_7875;
					iVar2 = Global_17257.f_7876;
					iVar3 = Global_17257.f_7877;
					iVar4 = Global_17257.f_7878;
				}
				else
				{
					iVar1 = 0;
					iVar2 = 0;
					iVar3 = 0;
					iVar4 = 204;
				}
				func_957(Global_17254, (fVar49 + 0f), fParam5, 0.034722f, iVar1, iVar2, iVar3, iVar4);
				vVar37 = { graphics::get_texture_resolution("CommonMenu", "shop_arrows_upANDdown") };
				vVar37.x = (vVar37.x * (0.5f / fVar59));
				vVar37.y = (vVar37.y * (0.5f / fVar59));
				if (Global_17257.f_7892)
				{
					iVar1 = 0;
					iVar2 = 0;
					iVar3 = 0;
					iVar4 = 255;
				}
				else
				{
					ui::get_hud_colour(1, &iVar1, &iVar2, &iVar3, &iVar4);
				}
				graphics::draw_sprite("CommonMenu", "shop_arrows_upANDdown", (Global_17254 + (fParam5 * 0.5f)), ((fVar49 + 0f) + (0.034722f * 0.5f)), ((vVar37.x / 1280f) * fVar59), ((vVar37.y / 720f) * fVar59), 0f, iVar1, iVar2, iVar3, iVar4, 0);
				fVar49 = (fVar49 + (0f + 0.034722f));
			}
			if (gameplay::get_hash_key(&(Global_17257.f_4562)) != 0 && Global_17257.f_4636 != -1)
			{
				fVar49 = (fVar49 + (0.00277776f * 2f));
				fVar41 = (Global_17254 + 0.0046875f);
				if (Global_17257.f_4638 != 0)
				{
					func_132(Global_17257.f_4638, 1, 1, &fVar35, &fVar36, iParam7);
					fVar41 = (((Global_17254 + fVar35) + (0.00078125f * 4f)) - (0.00078125f * 1f));
				}
				func_953(fVar41);
				ui::_set_text_gxt_entry(&(Global_17257.f_4562));
				iVar15 = 0;
				iVar16 = 0;
				iVar17 = 0;
				iVar14 = 0;
				while (iVar14 < Global_17257.f_4632)
				{
					if (Global_17257.f_4566[iVar14] == 2)
					{
						ui::add_text_component_integer(Global_17257.f_4571[iVar15]);
						iVar15++;
					}
					else if (Global_17257.f_4566[iVar14] == 3)
					{
						ui::add_text_component_float(Global_17257.f_4575[iVar16], Global_17257.f_4579[iVar16]);
						iVar16++;
					}
					else if (Global_17257.f_4566[iVar14] == 1)
					{
						ui::_add_text_component_item_string(&(Global_17257.f_4583[iVar17 /*16*/]));
						iVar17++;
					}
					else if (Global_17257.f_4566[iVar14] == 5)
					{
						ui::add_text_component_substring_player_name(&(Global_17257.f_4583[iVar17 /*16*/]));
						iVar17++;
					}
					else if (Global_17257.f_4566[iVar14] == 6)
					{
						ui::_add_text_component_item_string(&(Global_17257.f_4583[iVar17 /*16*/]));
						iVar17++;
					}
					else if (Global_17257.f_4566[iVar14] == 7)
					{
						ui::add_text_component_substring_player_name(&(Global_17257.f_4583[iVar17 /*16*/]));
						iVar17++;
					}
					iVar14++;
				}
				iVar6 = ui::_0x9040DFB09BE75706(fVar41, (fVar49 + 0.00277776f));
				ui::get_hud_colour(2, &iVar1, &iVar2, &iVar3, &iVar4);
				func_957(Global_17254, (fVar49 - 0.00277776f), fParam5, 0.00277776f, iVar1, iVar2, iVar3, iVar4);
				if (Global_17257.f_7884)
				{
					iVar1 = Global_17257.f_7880;
					iVar2 = Global_17257.f_7881;
					iVar3 = Global_17257.f_7882;
					iVar4 = Global_17257.f_7883;
				}
				else
				{
					ui::get_hud_colour(140, &iVar1, &iVar2, &iVar3, &iVar4);
				}
				graphics::draw_sprite("CommonMenu", "Gradient_Bgd", (Global_17254 + (fParam5 * 0.5f)), ((fVar49 + ((((ui::_get_text_scale_height(0.35f, 0) * IntToFloat(iVar6)) + (0.00138888f * 13f)) + ((0.00138888f * 5f) * IntToFloat((iVar6 - 1)))) * 0.5f)) - 0.00138888f), fParam5, (((ui::_get_text_scale_height(0.35f, 0) * IntToFloat(iVar6)) + (0.00138888f * 13f)) + ((0.00138888f * 5f) * IntToFloat((iVar6 - 1)))), 0f, iVar1, iVar2, iVar3, iVar4, 0);
				func_953(fVar41);
				ui::_set_text_entry(&(Global_17257.f_4562));
				iVar15 = 0;
				iVar16 = 0;
				iVar17 = 0;
				iVar14 = 0;
				while (iVar14 < Global_17257.f_4632)
				{
					if (Global_17257.f_4566[iVar14] == 2)
					{
						ui::add_text_component_integer(Global_17257.f_4571[iVar15]);
						iVar15++;
					}
					else if (Global_17257.f_4566[iVar14] == 3)
					{
						ui::add_text_component_float(Global_17257.f_4575[iVar16], Global_17257.f_4579[iVar16]);
						iVar16++;
					}
					else if (Global_17257.f_4566[iVar14] == 1)
					{
						ui::_add_text_component_item_string(&(Global_17257.f_4583[iVar17 /*16*/]));
						iVar17++;
					}
					else if (Global_17257.f_4566[iVar14] == 5)
					{
						ui::add_text_component_substring_player_name(&(Global_17257.f_4583[iVar17 /*16*/]));
						iVar17++;
					}
					else if (Global_17257.f_4566[iVar14] == 6)
					{
						ui::_add_text_component_item_string(&(Global_17257.f_4583[iVar17 /*16*/]));
						iVar17++;
					}
					else if (Global_17257.f_4566[iVar14] == 7)
					{
						ui::add_text_component_substring_player_name(&(Global_17257.f_4583[iVar17 /*16*/]));
						iVar17++;
					}
					else if (Global_17257.f_4566[iVar14] == 8)
					{
						ui::_add_text_component_item_string(&(Global_17257.f_4583[iVar17 /*16*/]));
						iVar17++;
					}
					iVar14++;
				}
				ui::_draw_text(fVar41, (fVar49 + 0.00277776f), 0);
				if (Global_17257.f_4638 != 0)
				{
					func_132(Global_17257.f_4638, 1, 1, &fVar35, &fVar36, iParam7);
					func_952(Global_17257.f_4638, 1, &iVar46, &iVar47, &iVar48);
					graphics::draw_sprite(func_137(Global_17257.f_4638), func_135(Global_17257.f_4638, 1), ((Global_17254 + (fVar35 * 0.5f)) + (0.00078125f * 2f)), ((fVar49 + (fVar36 * 0.5f)) - (0.00138888f * 4f)), fVar35, fVar36, 0f, iVar46, iVar47, iVar48, 255, 0);
				}
				fVar49 = (fVar49 + (((ui::_get_text_scale_height(0.35f, 0) * IntToFloat(iVar6)) + (0.00138888f * 13f)) + ((0.00138888f * 5f) * IntToFloat((iVar6 - 1)))));
				if (Global_17257.f_4636 > 0)
				{
					if ((gameplay::get_game_timer() - Global_17257.f_4637) > Global_17257.f_4636)
					{
						StringCopy(&(Global_17257.f_4562), "", 16);
						Global_17257.f_4636 = -1;
					}
				}
			}
			if (gameplay::get_hash_key(&(Global_2566711.f_21)) != 0 && Global_2566711.f_65 != -1)
			{
				fVar49 = (fVar49 + (0.00277776f * 2f));
				fVar41 = (Global_17254 + 0.0046875f);
				if (Global_2566711.f_67 != 0)
				{
					func_132(Global_2566711.f_67, 1, 1, &fVar35, &fVar36, iParam7);
					fVar41 = (((Global_17254 + fVar35) + (0.00078125f * 4f)) - (0.00078125f * 1f));
				}
				func_953(fVar41);
				ui::_set_text_gxt_entry(&(Global_2566711.f_21));
				iVar15 = 0;
				iVar16 = 0;
				iVar17 = 0;
				iVar14 = 0;
				while (iVar14 < Global_2566711.f_61)
				{
					if (Global_2566711.f_25[iVar14] == 2)
					{
						ui::add_text_component_integer(Global_2566711.f_30[iVar15]);
						iVar15++;
					}
					else if (Global_2566711.f_25[iVar14] == 3)
					{
						ui::add_text_component_float(Global_2566711.f_34[iVar16], Global_2566711.f_38[iVar16]);
						iVar16++;
					}
					else if (Global_2566711.f_25[iVar14] == 1)
					{
						ui::_add_text_component_item_string(&(Global_2566711.f_42[iVar17 /*6*/]));
						iVar17++;
					}
					else if (Global_2566711.f_25[iVar14] == 5)
					{
						ui::add_text_component_substring_player_name(&(Global_2566711.f_42[iVar17 /*6*/]));
						iVar17++;
					}
					else if (Global_2566711.f_25[iVar14] == 6)
					{
						ui::_add_text_component_item_string(&(Global_2566711.f_42[iVar17 /*6*/]));
						iVar17++;
					}
					else if (Global_2566711.f_25[iVar14] == 7)
					{
						ui::add_text_component_substring_player_name(&(Global_2566711.f_42[iVar17 /*6*/]));
						iVar17++;
					}
					else if (Global_2566711.f_25[iVar14] == 8)
					{
						ui::_add_text_component_item_string(&(Global_2566711.f_42[iVar17 /*6*/]));
						iVar17++;
					}
					iVar14++;
				}
				iVar6 = ui::_0x9040DFB09BE75706(fVar41, (fVar49 + 0.00277776f));
				ui::get_hud_colour(2, &iVar1, &iVar2, &iVar3, &iVar4);
				func_957(Global_17254, (fVar49 - 0.00277776f), fParam5, 0.00277776f, iVar1, iVar2, iVar3, iVar4);
				if (Global_17257.f_7884)
				{
					iVar1 = Global_17257.f_7880;
					iVar2 = Global_17257.f_7881;
					iVar3 = Global_17257.f_7882;
					iVar4 = Global_17257.f_7883;
				}
				else
				{
					ui::get_hud_colour(140, &iVar1, &iVar2, &iVar3, &iVar4);
				}
				graphics::draw_sprite("CommonMenu", "Gradient_Bgd", (Global_17254 + (fParam5 * 0.5f)), ((fVar49 + ((((ui::_get_text_scale_height(0.35f, 0) * IntToFloat(iVar6)) + (0.00138888f * 13f)) + ((0.00138888f * 5f) * IntToFloat((iVar6 - 1)))) * 0.5f)) - 0.00138888f), fParam5, (((ui::_get_text_scale_height(0.35f, 0) * IntToFloat(iVar6)) + (0.00138888f * 13f)) + ((0.00138888f * 5f) * IntToFloat((iVar6 - 1)))), 0f, iVar1, iVar2, iVar3, iVar4, 0);
				func_953(fVar41);
				ui::_set_text_entry(&(Global_2566711.f_21));
				iVar15 = 0;
				iVar16 = 0;
				iVar17 = 0;
				iVar14 = 0;
				while (iVar14 < Global_2566711.f_61)
				{
					if (Global_2566711.f_25[iVar14] == 2)
					{
						ui::add_text_component_integer(Global_2566711.f_30[iVar15]);
						iVar15++;
					}
					else if (Global_2566711.f_25[iVar14] == 3)
					{
						ui::add_text_component_float(Global_2566711.f_34[iVar16], Global_2566711.f_38[iVar16]);
						iVar16++;
					}
					else if (Global_2566711.f_25[iVar14] == 1)
					{
						ui::_add_text_component_item_string(&(Global_2566711.f_42[iVar17 /*6*/]));
						iVar17++;
					}
					else if (Global_2566711.f_25[iVar14] == 8)
					{
						ui::_add_text_component_item_string(&(Global_2566711.f_42[iVar17 /*6*/]));
						iVar17++;
					}
					else if (Global_2566711.f_25[iVar14] == 5)
					{
						ui::add_text_component_substring_player_name(&(Global_2566711.f_42[iVar17 /*6*/]));
						iVar17++;
					}
					else if (Global_2566711.f_25[iVar14] == 6)
					{
						ui::_add_text_component_item_string(&(Global_2566711.f_42[iVar17 /*6*/]));
						iVar17++;
					}
					else if (Global_2566711.f_25[iVar14] == 7)
					{
						ui::add_text_component_substring_player_name(&(Global_2566711.f_42[iVar17 /*6*/]));
						iVar17++;
					}
					iVar14++;
				}
				ui::_draw_text(fVar41, (fVar49 + 0.00277776f), 0);
				if (Global_2566711.f_67 != 0)
				{
					func_132(Global_2566711.f_67, 1, 1, &fVar35, &fVar36, iParam7);
					func_952(Global_2566711.f_67, 1, &iVar46, &iVar47, &iVar48);
					graphics::draw_sprite(func_137(Global_2566711.f_67), func_135(Global_2566711.f_67, 1), ((Global_17254 + (fVar35 * 0.5f)) + (0.00078125f * 2f)), ((fVar49 + (fVar36 * 0.5f)) - (0.00138888f * 4f)), fVar35, fVar36, 0f, iVar46, iVar47, iVar48, 255, 0);
				}
				fVar49 = (fVar49 + (((ui::_get_text_scale_height(0.35f, 0) * IntToFloat(iVar6)) + (0.00138888f * 13f)) + ((0.00138888f * 5f) * IntToFloat((iVar6 - 1)))));
				if (Global_2566711.f_65 > 0)
				{
					if ((gameplay::get_game_timer() - Global_2566711.f_66) > Global_2566711.f_65)
					{
						StringCopy(&(Global_2566711.f_21), "", 16);
						Global_2566711.f_65 = -1;
					}
				}
			}
			func_946(iVar57, iParam1, 0, 0, 0, 0, iParam4, 1, 0);
			graphics::_set_screen_draw_position(76, 84);
			graphics::_0xF5A2C681787E579D(-0.05f, -0.05f, 0f, 0f);
		}
		if (iVar5 == 1 || !Global_17257.f_5598)
		{
			iVar19 = 0;
			iVar23 = 0;
			iVar20 = 0;
			iVar21 = 0;
			iVar22 = 0;
			iVar9 = 0;
			iVar10 = 0;
			iVar11 = 0;
			iVar12 = 0;
			iVar13 = 0;
			iVar63 = Global_17257.f_5088;
			if (Global_17257.f_5599)
			{
				iVar63 = (Global_17257.f_5602 - 1);
			}
			fVar64 = 0f;
			fVar65 = 0f;
			iVar7 = 0;
			while (iVar7 <= iVar63)
			{
				fVar54 = 0.034722f;
				if (Global_17257.f_5612[iVar6] != 0f)
				{
					fVar54 = Global_17257.f_5612[iVar6];
				}
				if (Global_17257.f_5599)
				{
					iVar6 = Global_17257.f_7520[iVar7];
				}
				else
				{
					iVar6 = iVar7;
				}
				iVar12 = iVar13;
				iVar32 = false;
				if (iVar6 >= Global_17257.f_5605 && iVar9 < Global_17257.f_5095)
				{
					iVar32 = true;
					if (Global_17257.f_5606 == iVar6)
					{
						fVar65 = fVar64;
					}
					if (Global_17257.f_5226[iVar6])
					{
						iVar12++;
					}
					fVar34 = (((fVar56 + fVar64) + (0.00277776f * IntToFloat(iVar12))) + 0.00277776f);
				}
				Global_17257.f_5746[iVar6] = fVar34;
				fVar33 = (Global_17254 + 0.0046875f);
				iVar40 = false;
				iVar31 = Global_17257.f_5606 == iVar6;
				if ((iVar31 && iVar5 == 1) && iVar32)
				{
					iVar66 = 255;
					iVar67 = 255;
					iVar68 = 255;
					iVar69 = 255;
					if (Global_17257.f_7886)
					{
						ui::get_hud_colour(Global_17257.f_7885, &iVar66, &iVar67, &iVar68, &iVar69);
					}
					else
					{
						ui::get_hud_colour(1, &iVar66, &iVar67, &iVar68, &iVar69);
					}
					graphics::draw_sprite("CommonMenu", "Gradient_Nav", (Global_17254 + (fParam5 * 0.5f)), (((fVar56 + fVar65) + (0.00277776f * IntToFloat(iVar12))) + (fVar54 * 0.5f)), fParam5, fVar54, 0f, iVar66, iVar67, iVar68, iVar69, 0);
					Global_17257.f_5744 = fVar34;
				}
				if (iVar52 && iVar7 == iVar63)
				{
					func_139(iVar31, 1, 0, 0, 0, 0);
					ui::_set_text_entry("DFLT_MNU_OPT");
					ui::_draw_text(fVar33, fVar34, 0);
					iVar40 = true;
				}
				else
				{
					iVar8 = 0;
					while (iVar8 < Global_17257.f_5096)
					{
						if (gameplay::is_bit_set(Global_17257.f_4959[iVar6], iVar8) || Global_17257.f_4926[iVar8] == 5)
						{
							if (Global_17257.f_5599)
							{
								iVar19 = Global_17257.f_7531[((iVar9 * Global_17257.f_5096) + iVar8)];
								iVar20 = Global_17257.f_7572[((iVar9 * Global_17257.f_5096) + iVar8)];
								iVar21 = Global_17257.f_7613[((iVar9 * Global_17257.f_5096) + iVar8)];
								iVar22 = Global_17257.f_7654[((iVar9 * Global_17257.f_5096) + iVar8)];
								iVar23 = Global_17257.f_7695[((iVar9 * Global_17257.f_5096) + iVar8)];
							}
							else
							{
								Global_17257.f_7531[((iVar9 * Global_17257.f_5096) + iVar8)] = iVar19;
								Global_17257.f_7572[((iVar9 * Global_17257.f_5096) + iVar8)] = iVar20;
								Global_17257.f_7613[((iVar9 * Global_17257.f_5096) + iVar8)] = iVar21;
								Global_17257.f_7654[((iVar9 * Global_17257.f_5096) + iVar8)] = iVar22;
								Global_17257.f_7695[((iVar9 * Global_17257.f_5096) + iVar8)] = iVar23;
							}
							iVar70 = 0;
							iVar53 = false;
							if (Global_17257.f_5878[0] != -1)
							{
								if ((iVar6 * 5 + iVar8) == Global_17257.f_5875[0])
								{
									iVar53 = true;
									iVar70 = 0;
								}
							}
							if (Global_17257.f_5878[1] != -1)
							{
								if ((iVar6 * 5 + iVar8) == Global_17257.f_5875[1])
								{
									iVar53 = true;
									iVar70 = 1;
								}
							}
							if (Global_17257.f_4932[iVar8] != -1f)
							{
								fVar33 = ((Global_17254 + 0.0046875f) + Global_17257.f_4932[iVar8]);
							}
							if ((iVar8 < 4 && Global_17257.f_4932[iVar8 + 1] != -1f) && fVar33 < Global_17257.f_4932[iVar8 + 1])
							{
								fVar45 = (Global_17257.f_4932[iVar8 + 1] - fVar33);
							}
							else
							{
								fVar45 = (((Global_17254 + Global_17256) - 0.0046875f) - fVar33);
							}
							if ((Global_17257.f_4945[iVar8] && Global_17257.f_5741) && iVar31)
							{
								iVar51 = true;
							}
							else
							{
								iVar51 = false;
							}
							switch (Global_17257.f_4926[iVar8])
							{
								case 0:
									break;
								
								case 1:
									iVar24 = iVar19;
									if (iVar5 == 1 && iVar32)
									{
										if (!Global_17257.f_5599)
										{
											fVar42 = 0f;
											fVar43 = 0f;
											iVar25 = 0;
											iVar26 = 0;
											iVar27 = 0;
											iVar28 = 0;
											iVar29 = 0;
											if (gameplay::get_hash_key(&(Global_17257.f_73[iVar24 /*6*/])) != 0)
											{
												iVar50 = false;
												iVar14 = 0;
												while (iVar14 < 4)
												{
													if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 5 || Global_17257.f_2124[iVar24 /*5*/][iVar14] == 8)
													{
														iVar50 = true;
													}
													iVar14++;
												}
												func_139(iVar31, Global_17257.f_1610[iVar24], Global_17257.f_1867[iVar24], iVar53, iVar70, iVar50);
												ui::_set_text_entry_for_width(&(Global_17257.f_73[iVar24 /*6*/]));
											}
											iVar14 = 0;
											while (iVar14 < 4)
											{
												if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 1)
												{
													iVar25++;
													if (gameplay::get_hash_key(&(Global_17257.f_73[iVar24 /*6*/])) != 0)
													{
														ui::_add_text_component_item_string(&(Global_17257.f_73[(iVar24 + iVar25) /*6*/]));
													}
												}
												else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 8)
												{
													iVar25++;
													if (gameplay::get_hash_key(&(Global_17257.f_73[iVar24 /*6*/])) != 0)
													{
														ui::_add_text_component_item_string(&(Global_17257.f_73[(iVar24 + iVar25) /*6*/]));
													}
												}
												else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 5)
												{
													if (gameplay::get_hash_key(&(Global_17257.f_73[iVar24 /*6*/])) != 0)
													{
														ui::add_text_component_substring_player_name(&(Global_2444596[(iVar23 + iVar29) /*16*/]));
													}
													iVar29++;
												}
												else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 6)
												{
													if (gameplay::get_hash_key(&(Global_17257.f_73[iVar24 /*6*/])) != 0)
													{
														ui::_add_text_component_item_string(&(Global_2444596[(iVar23 + iVar29) /*16*/]));
													}
													iVar29++;
												}
												else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 7)
												{
													if (gameplay::get_hash_key(&(Global_17257.f_73[iVar24 /*6*/])) != 0)
													{
														ui::add_text_component_substring_player_name(&(Global_2444596[(iVar23 + iVar29) /*16*/]));
													}
													iVar29++;
												}
												else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 2)
												{
													if (gameplay::get_hash_key(&(Global_17257.f_73[iVar24 /*6*/])) != 0)
													{
														ui::add_text_component_integer(Global_17257.f_3918[(iVar20 + iVar26)]);
													}
													iVar26++;
												}
												else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 3)
												{
													if (gameplay::get_hash_key(&(Global_17257.f_73[iVar24 /*6*/])) != 0)
													{
														ui::add_text_component_float(Global_17257.f_4175[(iVar21 + iVar27)], Global_17257.f_4304[(iVar21 + iVar27)]);
													}
													iVar27++;
												}
												else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 4)
												{
													iVar28++;
												}
												iVar14++;
											}
											if (gameplay::get_hash_key(&(Global_17257.f_73[iVar24 /*6*/])) != 0)
											{
												fVar42 = ui::_get_text_screen_width(1);
											}
											if (iVar28 > 0)
											{
												iVar14 = 0;
												while (iVar14 < iVar28)
												{
													if (func_132(Global_17257.f_4433[(iVar22 + iVar14)], iVar31, 0, &fVar35, &fVar36, iParam7))
													{
														fVar43 = (fVar43 + fVar35);
														if (iVar14 > 0)
														{
															fVar43 = (fVar43 - (0.00078125f * 4f));
														}
														if (Global_17257.f_4433[(iVar22 + iVar14)] == 2 || Global_17257.f_4433[(iVar22 + iVar14)] == 48)
														{
															fVar43 = (fVar43 - (0.00078125f * 5f));
														}
													}
													iVar14++;
												}
											}
											fVar41 = 0f;
											if (Global_17257.f_4953[iVar8] == 2)
											{
												fVar41 = (fVar41 + ((fVar45 - (fVar42 + fVar43)) + (0.00078125f * 1f)));
											}
											else if (Global_17257.f_4953[iVar8] == 0)
											{
												fVar41 = (fVar41 + (((fVar45 - fVar33) * 0.5f) - ((fVar42 + fVar43) * 0.5f)));
											}
											Global_17257.f_7736[((iVar9 * Global_17257.f_5096) + iVar8)] = fVar41;
											Global_17257.f_7777[((iVar9 * Global_17257.f_5096) + iVar8)] = fVar42;
											Global_17257.f_7818[((iVar9 * Global_17257.f_5096) + iVar8)] = fVar43;
										}
										else
										{
											fVar41 = Global_17257.f_7736[((iVar9 * Global_17257.f_5096) + iVar8)];
											fVar42 = Global_17257.f_7777[((iVar9 * Global_17257.f_5096) + iVar8)];
											fVar43 = Global_17257.f_7818[((iVar9 * Global_17257.f_5096) + iVar8)];
										}
										if (iVar51)
										{
											if (func_132(26, 1, 0, &fVar35, &fVar36, iParam7))
											{
												if (Global_17257.f_4953[iVar8] == 2)
												{
													fVar41 = (fVar41 - (fVar35 * 2f));
												}
												fVar44 = (fVar35 * 0.5f);
												if (func_132(26, 1, 1, &fVar35, &fVar36, iParam7))
												{
													func_952(26, 1, &iVar46, &iVar47, &iVar48);
													graphics::draw_sprite(func_137(26), func_135(26, 1), ((fVar33 + fVar41) + fVar44), ((fVar34 - 0.00277776f) + (fVar54 * 0.5f)), fVar35, fVar36, 0f, iVar46, iVar47, iVar48, 255, 0);
												}
											}
											if (func_132(27, 1, 0, &fVar35, &fVar36, iParam7))
											{
												fVar41 = (fVar41 + fVar35);
												fVar44 = (fVar35 * 0.5f);
												if (func_132(27, 1, 1, &fVar35, &fVar36, iParam7))
												{
													func_952(27, 1, &iVar46, &iVar47, &iVar48);
													graphics::draw_sprite(func_137(27), func_135(27, 1), (((fVar33 + fVar41) + fVar44) + (fVar42 + fVar43)), ((fVar34 - 0.00277776f) + (fVar54 * 0.5f)), fVar35, fVar36, 0f, iVar46, iVar47, iVar48, 255, 0);
												}
											}
										}
										iVar25 = 0;
										iVar26 = 0;
										iVar27 = 0;
										iVar28 = 0;
										iVar29 = 0;
										iVar30 = 0;
										if (gameplay::get_hash_key(&(Global_17257.f_73[iVar24 /*6*/])) != 0)
										{
											iVar50 = false;
											iVar14 = 0;
											while (iVar14 < 4)
											{
												if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 5 || Global_17257.f_2124[iVar24 /*5*/][iVar14] == 8)
												{
													iVar50 = true;
												}
												iVar14++;
											}
											func_139(iVar31, Global_17257.f_1610[iVar24], Global_17257.f_1867[iVar24], iVar53, 0, iVar50);
											if (Global_17257.f_7890 && Global_17257.f_7891 == iVar6)
											{
												func_945(iVar31);
											}
											ui::_set_text_entry(&(Global_17257.f_73[iVar24 /*6*/]));
										}
										iVar14 = 0;
										while (iVar14 < 4)
										{
											if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 1)
											{
												iVar25++;
												if (gameplay::get_hash_key(&(Global_17257.f_73[iVar24 /*6*/])) != 0)
												{
													ui::_add_text_component_item_string(&(Global_17257.f_73[(iVar24 + iVar25) /*6*/]));
												}
												iVar30 = 1;
											}
											else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 8)
											{
												iVar25++;
												if (gameplay::get_hash_key(&(Global_17257.f_73[iVar24 /*6*/])) != 0)
												{
													ui::_add_text_component_item_string(&(Global_17257.f_73[(iVar24 + iVar25) /*6*/]));
												}
												iVar30 = 8;
											}
											else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 5)
											{
												if (gameplay::get_hash_key(&(Global_17257.f_73[iVar24 /*6*/])) != 0)
												{
													ui::add_text_component_substring_player_name(&(Global_2444596[(iVar23 + iVar29) /*16*/]));
												}
												iVar29++;
												iVar30 = 5;
											}
											else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 6)
											{
												if (gameplay::get_hash_key(&(Global_17257.f_73[iVar24 /*6*/])) != 0)
												{
													ui::_add_text_component_item_string(&(Global_2444596[(iVar23 + iVar29) /*16*/]));
												}
												iVar29++;
												iVar30 = 6;
											}
											else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 7)
											{
												if (gameplay::get_hash_key(&(Global_17257.f_73[iVar24 /*6*/])) != 0)
												{
													ui::add_text_component_substring_player_name(&(Global_2444596[(iVar23 + iVar29) /*16*/]));
												}
												iVar29++;
												iVar30 = 6;
											}
											else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 2)
											{
												if (gameplay::get_hash_key(&(Global_17257.f_73[iVar24 /*6*/])) != 0)
												{
													ui::add_text_component_integer(Global_17257.f_3918[(iVar20 + iVar26)]);
												}
												iVar26++;
												iVar30 = 2;
											}
											else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 3)
											{
												if (gameplay::get_hash_key(&(Global_17257.f_73[iVar24 /*6*/])) != 0)
												{
													ui::add_text_component_float(Global_17257.f_4175[(iVar21 + iVar27)], Global_17257.f_4304[(iVar21 + iVar27)]);
												}
												iVar27++;
												iVar30 = 3;
											}
											else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 4)
											{
												if (Global_17257.f_4433[(iVar22 + iVar28)] == 2 || Global_17257.f_4433[(iVar22 + iVar28)] == 48)
												{
													if (func_132(Global_17257.f_4433[(iVar22 + iVar28)], iVar31, 0, &fVar35, &fVar36, iParam7))
													{
														fVar41 = (fVar41 + (fVar35 * 0.5f));
														if (func_132(Global_17257.f_4433[(iVar22 + iVar28)], iVar31, 1, &fVar35, &fVar36, iParam7))
														{
															func_952(Global_17257.f_4433[(iVar22 + iVar28)], iVar31, &iVar46, &iVar47, &iVar48);
															if (Global_17257.f_4953[iVar8] == 2)
															{
																graphics::draw_sprite(func_137(Global_17257.f_4433[(iVar22 + iVar28)]), func_135(Global_17257.f_4433[(iVar22 + iVar28)], iVar31), (((fVar33 + fVar41) - (0.00078125f * 8f)) + (0.00078125f * 4f)), ((fVar34 - 0.00277776f) + (fVar54 * 0.5f)), fVar35, fVar36, 0f, iVar46, iVar47, iVar48, 255, 0);
															}
															else
															{
																graphics::draw_sprite(func_137(Global_17257.f_4433[(iVar22 + iVar28)]), func_135(Global_17257.f_4433[(iVar22 + iVar28)], iVar31), ((fVar33 + fVar41) - (0.00078125f * 8f)), ((fVar34 - 0.00277776f) + (fVar54 * 0.5f)), fVar35, fVar36, 0f, iVar46, iVar47, iVar48, 255, 0);
															}
															fVar41 = (fVar41 + (0.00078125f * 3f));
														}
													}
												}
												iVar28++;
												iVar30 = 4;
											}
											iVar14++;
										}
										if (gameplay::get_hash_key(&(Global_17257.f_73[iVar24 /*6*/])) != 0)
										{
											if (iVar30 == 4 && Global_17257.f_4953[iVar8] == 2)
											{
												ui::_draw_text(((fVar33 + fVar41) + (0.00078125f * 7f)), fVar34, 0);
											}
											else
											{
												ui::_draw_text((fVar33 + fVar41), fVar34, 0);
											}
										}
										if (iVar28 > 0)
										{
											fVar41 = (fVar41 + (6f * 0.00078125f));
											iVar14 = 0;
											while (iVar14 < iVar28)
											{
												if (Global_17257.f_4433[(iVar22 + iVar14)] != 2 && Global_17257.f_4433[(iVar22 + iVar14)] != 48)
												{
													if (func_132(Global_17257.f_4433[(iVar22 + iVar14)], iVar31, 0, &fVar35, &fVar36, iParam7))
													{
														fVar41 = (fVar41 + (fVar35 * 0.5f));
														if (func_132(Global_17257.f_4433[(iVar22 + iVar14)], iVar31, 1, &fVar35, &fVar36, iParam7))
														{
															func_952(Global_17257.f_4433[(iVar22 + iVar14)], iVar31, &iVar46, &iVar47, &iVar48);
															if (Global_17257.f_4433[(iVar22 + iVar14)] == 30)
															{
																graphics::draw_sprite(func_137(Global_17257.f_4433[(iVar22 + iVar14)]), func_135(Global_17257.f_4433[(iVar22 + iVar14)], iVar31), (Global_17254 + (fVar35 * 0.5f)), (((fVar34 + 0.00277776f) + (fVar36 * 0.5f)) - (0.00078125f * 11f)), fVar35, fVar36, 0f, iVar46, iVar47, iVar48, 255, 0);
															}
															else if (Global_17257.f_4953[iVar8] == 2)
															{
																graphics::draw_sprite(func_137(Global_17257.f_4433[(iVar22 + iVar14)]), func_135(Global_17257.f_4433[(iVar22 + iVar14)], iVar31), ((((fVar33 + fVar41) + fVar42) - (0.00078125f * 8f)) + (0.00078125f * 4f)), ((fVar34 - 0.00277776f) + (fVar54 * 0.5f)), fVar35, fVar36, 0f, iVar46, iVar47, iVar48, 255, 0);
															}
															else
															{
																graphics::draw_sprite(func_137(Global_17257.f_4433[(iVar22 + iVar14)]), func_135(Global_17257.f_4433[(iVar22 + iVar14)], iVar31), (((fVar33 + fVar41) + fVar42) - (0.00078125f * 12f)), ((fVar34 - 0.00277776f) + (fVar54 * 0.5f)), fVar35, fVar36, 0f, iVar46, iVar47, iVar48, 255, 0);
															}
														}
														fVar41 = (fVar41 + (12f * 0.00078125f));
													}
												}
												iVar14++;
											}
										}
									}
									iVar40 = true;
									iVar19++;
									iVar14 = 0;
									while (iVar14 < 4)
									{
										if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 1)
										{
											iVar19++;
										}
										else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 8)
										{
											iVar19++;
										}
										else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 2)
										{
											iVar20++;
										}
										else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 3)
										{
											iVar21++;
										}
										else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 4)
										{
											iVar22++;
										}
										else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 5)
										{
											iVar23++;
										}
										else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 6)
										{
											iVar23++;
										}
										else if (Global_17257.f_2124[iVar24 /*5*/][iVar14] == 7)
										{
											iVar23++;
										}
										iVar14++;
									}
									break;
								
								case 2:
									if (iVar5 == 1 && iVar32)
									{
										if (!Global_17257.f_5599)
										{
											func_139(iVar31, Global_17257.f_1610[iVar24], Global_17257.f_1867[iVar24], iVar53, 0, 0);
											if (Global_17257.f_7890 && Global_17257.f_7891 == iVar6)
											{
												func_945(iVar31);
											}
											ui::_set_text_entry_for_width("NUMBER");
											ui::add_text_component_integer(Global_17257.f_3918[iVar20]);
											fVar42 = ui::_get_text_screen_width(1);
											fVar41 = 0f;
											if (Global_17257.f_4953[iVar8] == 2)
											{
												fVar41 = (fVar41 + ((fVar45 - fVar42) + (0.00078125f * 1f)));
											}
											else if (Global_17257.f_4953[iVar8] == 0)
											{
												fVar41 = (fVar41 + (((fVar45 - fVar33) * 0.5f) - (fVar42 * 0.5f)));
											}
											Global_17257.f_7736[((iVar9 * Global_17257.f_5096) + iVar8)] = fVar41;
											Global_17257.f_7777[((iVar9 * Global_17257.f_5096) + iVar8)] = fVar42;
										}
										else
										{
											fVar41 = Global_17257.f_7736[((iVar9 * Global_17257.f_5096) + iVar8)];
											fVar42 = Global_17257.f_7777[((iVar9 * Global_17257.f_5096) + iVar8)];
										}
										if (iVar51)
										{
											if (func_132(26, 1, 0, &fVar35, &fVar36, iParam7))
											{
												if (Global_17257.f_4953[iVar8] == 2)
												{
													fVar41 = (fVar41 - (fVar35 * 2f));
												}
												fVar44 = (fVar35 * 0.5f);
												if (func_132(26, 1, 1, &fVar35, &fVar36, iParam7))
												{
													func_952(26, 1, &iVar46, &iVar47, &iVar48);
													graphics::draw_sprite(func_137(26), func_135(26, 1), ((fVar33 + fVar41) + fVar44), ((fVar34 - 0.00277776f) + (fVar54 * 0.5f)), fVar35, fVar36, 0f, iVar46, iVar47, iVar48, 255, 0);
												}
											}
											if (func_132(27, 1, 0, &fVar35, &fVar36, iParam7))
											{
												fVar41 = (fVar41 + fVar35);
												fVar44 = (fVar35 * 0.5f);
												if (func_132(27, 1, 1, &fVar35, &fVar36, iParam7))
												{
													func_952(27, 1, &iVar46, &iVar47, &iVar48);
													graphics::draw_sprite(func_137(27), func_135(27, 1), (((fVar33 + fVar41) + fVar44) + (fVar42 + fVar43)), ((fVar34 - 0.00277776f) + (fVar54 * 0.5f)), fVar35, fVar36, 0f, iVar46, iVar47, iVar48, 255, 0);
												}
											}
										}
										func_139(iVar31, Global_17257.f_1610[iVar24], Global_17257.f_1867[iVar24], iVar53, 0, 0);
										func_944((fVar33 + fVar41), fVar34, "NUMBER", Global_17257.f_3918[iVar20], 0);
									}
									iVar40 = true;
									iVar20++;
									break;
								
								case 3:
									if (iVar5 == 1 && iVar32)
									{
										if (!Global_17257.f_5599)
										{
											func_139(iVar31, Global_17257.f_1610[iVar24], Global_17257.f_1867[iVar24], iVar53, 0, 0);
											if (Global_17257.f_7890 && Global_17257.f_7891 == iVar6)
											{
												func_945(iVar31);
											}
											ui::_set_text_entry_for_width("NUMBER");
											ui::add_text_component_float(Global_17257.f_4175[iVar21], Global_17257.f_4304[iVar21]);
											fVar42 = ui::_get_text_screen_width(1);
											fVar41 = 0f;
											if (Global_17257.f_4953[iVar8] == 2)
											{
												fVar41 = (fVar41 + ((fVar45 - fVar42) + (0.00078125f * 1f)));
											}
											else if (Global_17257.f_4953[iVar8] == 0)
											{
												fVar41 = (fVar41 + (((fVar45 - fVar33) * 0.5f) - (fVar42 * 0.5f)));
											}
											Global_17257.f_7736[((iVar9 * Global_17257.f_5096) + iVar8)] = fVar41;
											Global_17257.f_7777[((iVar9 * Global_17257.f_5096) + iVar8)] = fVar42;
										}
										else
										{
											fVar41 = Global_17257.f_7736[((iVar9 * Global_17257.f_5096) + iVar8)];
											fVar42 = Global_17257.f_7777[((iVar9 * Global_17257.f_5096) + iVar8)];
										}
										if (iVar51)
										{
											if (func_132(26, 1, 0, &fVar35, &fVar36, 0))
											{
												if (Global_17257.f_4953[iVar8] == 2)
												{
													fVar41 = (fVar41 - (fVar35 * 2f));
												}
												fVar44 = (fVar35 * 0.5f);
												if (func_132(26, 1, 1, &fVar35, &fVar36, iParam7))
												{
													func_952(26, 1, &iVar46, &iVar47, &iVar48);
													graphics::draw_sprite(func_137(26), func_135(26, 1), ((fVar33 + fVar41) + fVar44), ((fVar34 - 0.00277776f) + (fVar54 * 0.5f)), fVar35, fVar36, 0f, iVar46, iVar47, iVar48, 255, 0);
												}
											}
											if (func_132(27, 1, 0, &fVar35, &fVar36, iParam7))
											{
												fVar41 = (fVar41 + fVar35);
												fVar44 = (fVar35 * 0.5f);
												if (func_132(27, 1, 1, &fVar35, &fVar36, iParam7))
												{
													func_952(27, 1, &iVar46, &iVar47, &iVar48);
													graphics::draw_sprite(func_137(27), func_135(27, 1), (((fVar33 + fVar41) + fVar44) + (fVar42 + fVar43)), ((fVar34 - 0.00277776f) + (fVar54 * 0.5f)), fVar35, fVar36, 0f, iVar46, iVar47, iVar48, 255, 0);
												}
											}
										}
										func_139(iVar31, Global_17257.f_1610[iVar24], Global_17257.f_1867[iVar24], iVar53, 0, 0);
										func_943((fVar33 + fVar41), fVar34, "NUMBER", Global_17257.f_4175[iVar21], Global_17257.f_4304[iVar21]);
									}
									iVar40 = true;
									iVar21++;
									break;
								
								case 4:
									if (iVar5 == 1 && iVar32)
									{
										if (func_132(Global_17257.f_4433[iVar22], iVar31, 0, &fVar35, &fVar36, iParam7))
										{
											if (!Global_17257.f_5599)
											{
												fVar43 = fVar35;
												fVar41 = 0f;
												if (Global_17257.f_4953[iVar8] == 2)
												{
													fVar41 = (fVar41 + ((fVar45 - fVar43) + (0.00078125f * 1f)));
												}
												else if (Global_17257.f_4953[iVar8] == 0)
												{
													fVar41 = (fVar41 + (((fVar45 - fVar33) * 0.5f) - (fVar43 * 0.5f)));
												}
												Global_17257.f_7736[((iVar9 * Global_17257.f_5096) + iVar8)] = fVar41;
												Global_17257.f_7818[((iVar9 * Global_17257.f_5096) + iVar8)] = fVar43;
											}
											else
											{
												fVar41 = Global_17257.f_7736[((iVar9 * Global_17257.f_5096) + iVar8)];
												fVar43 = Global_17257.f_7818[((iVar9 * Global_17257.f_5096) + iVar8)];
											}
											if (iVar51)
											{
												if (func_132(26, 1, 0, &fVar35, &fVar36, iParam7))
												{
													if (Global_17257.f_4953[iVar8] == 2)
													{
														fVar41 = (fVar41 - (fVar35 * 2f));
													}
													fVar44 = (fVar35 * 0.5f);
													if (func_132(26, 1, 1, &fVar35, &fVar36, iParam7))
													{
														func_952(26, 1, &iVar46, &iVar47, &iVar48);
														graphics::draw_sprite(func_137(26), func_135(26, 1), ((fVar33 + fVar41) + fVar44), ((fVar34 - 0.00277776f) + (fVar54 * 0.5f)), fVar35, fVar36, 0f, iVar46, iVar47, iVar48, 255, 0);
													}
												}
												if (func_132(27, 1, 0, &fVar35, &fVar36, iParam7))
												{
													fVar41 = (fVar41 + fVar35);
													fVar44 = (fVar35 * 0.5f);
													if (func_132(27, 1, 1, &fVar35, &fVar36, iParam7))
													{
														func_952(27, 1, &iVar46, &iVar47, &iVar48);
														graphics::draw_sprite(func_137(27), func_135(27, 1), (((fVar33 + fVar41) + fVar44) + (fVar42 + fVar43)), ((fVar34 - 0.00277776f) + (fVar54 * 0.5f)), fVar35, fVar36, 0f, iVar46, iVar47, iVar48, 255, 0);
													}
												}
											}
											if (func_132(Global_17257.f_4433[iVar22], iVar31, 1, &fVar35, &fVar36, iParam7))
											{
												func_952(Global_17257.f_4433[iVar22], iVar31, &iVar46, &iVar47, &iVar48);
												graphics::draw_sprite(func_137(Global_17257.f_4433[iVar22]), func_135(Global_17257.f_4433[iVar22], iVar31), ((fVar33 + fVar41) + (fVar35 * 0.5f)), ((fVar34 - 0.00277776f) + (fVar54 * 0.5f)), (fVar35 * func_942(Global_17257.f_4433[iVar22])), (fVar36 * func_942(Global_17257.f_4433[iVar22])), 0f, iVar46, iVar47, iVar48, 255, 0);
											}
										}
									}
									iVar40 = true;
									iVar22++;
									break;
								
								case 5:
									iVar40 = true;
									break;
							}
							if (Global_17257.f_4926[iVar8] == 5)
							{
								if (Global_17257.f_4938[iVar8] > 0.05f)
								{
									fVar33 = (fVar33 + Global_17257.f_4938[iVar8]);
								}
								else
								{
									fVar33 = (fVar33 + 0.05f);
								}
							}
							else
							{
								fVar33 = (fVar33 + Global_17257.f_4938[iVar8]);
								if (Global_17257.f_4945[iVar8])
								{
									if (func_132(26, 1, 1, &fVar35, &fVar36, iParam7))
									{
										fVar33 = (fVar33 - fVar35);
									}
								}
							}
						}
						else
						{
							fVar33 = (fVar33 + Global_17257.f_4938[iVar8]);
						}
						iVar8++;
					}
				}
				if (iVar40)
				{
					if (iVar32)
					{
						Global_17257.f_7520[iVar9] = iVar6;
						Global_17257.f_5607 = iVar6;
						iVar9++;
						if (Global_17257.f_5226[iVar6])
						{
							iVar13++;
						}
						if (Global_17257.f_5612[iVar6] != 0f)
						{
							fVar64 = (fVar64 + Global_17257.f_5612[iVar6]);
						}
						else
						{
							fVar64 = (fVar64 + 0.034722f);
						}
					}
					if (!Global_17257.f_5598)
					{
						Global_17257.f_5355[iVar6] = 1;
						if (Global_17257.f_5097[iVar6])
						{
							if (iVar31)
							{
								Global_17257.f_5604 = 0;
							}
						}
						else
						{
							iVar11++;
							if (iVar31)
							{
								Global_17257.f_5604 = iVar11;
							}
						}
						iVar10++;
					}
				}
				iVar7++;
			}
			if (!Global_17257.f_5598)
			{
				Global_17257.f_5600 = ((fVar56 + fVar64) + (0.00277776f * IntToFloat(iVar12)));
				Global_17257.f_5603 = iVar11;
				Global_17257.f_5601 = iVar10;
				Global_17257.f_5598 = 1;
			}
		}
		iVar5++;
	}
	if (!Global_17257.f_5599)
	{
		Global_17257.f_5602 = iVar9;
		Global_17257.f_5599 = 1;
	}
	Global_17257.f_5743 = fVar49;
	Global_17257.f_5745 = gameplay::get_game_timer();
	ui::_0x55598D21339CB998(Global_17257.f_5743);
	if (!Global_17257.f_7859)
	{
		func_181();
	}
	Global_17257.f_7859 = 0;
	if (iParam2)
	{
		ui::hide_hud_component_this_frame(10);
	}
	ui::hide_hud_component_this_frame(6);
	ui::hide_hud_component_this_frame(7);
	ui::hide_hud_component_this_frame(9);
	ui::hide_hud_component_this_frame(8);
	if (iParam0)
	{
		func_941(1);
	}
	graphics::_0xE3A3DB414A373DAB();
}

void func_941(int iParam0)//Position - 0x9423F
{
	Global_1339962.f_932 = iParam0;
}

float func_942(int iParam0)//Position - 0x94250
{
	switch (iParam0)
	{
		case 35:
		case 34:
		case 47:
		case 46:
		case 42:
		case 36:
		case 37:
		case 39:
		case 40:
		case 38:
		case 50:
		case 43:
		case 44:
		case 45:
			return 0.85f;
			break;
	}
	return 1f;
}

void func_943(float fParam0, float fParam1, char* sParam2, float fParam3, int iParam4)//Position - 0x942BF
{
	ui::_set_text_entry(sParam2);
	ui::add_text_component_float(fParam3, iParam4);
	ui::_draw_text(fParam0, fParam1, 0);
}

void func_944(float fParam0, float fParam1, char* sParam2, int iParam3, int iParam4)//Position - 0x942DE
{
	ui::_set_text_entry(sParam2);
	ui::add_text_component_integer(iParam3);
	ui::_draw_text(fParam0, fParam1, iParam4);
}

void func_945(int iParam0)//Position - 0x942FC
{
	int iVar0;
	int iVar1;
	int iVar2;
	var uVar3;
	
	if (iParam0)
	{
		ui::get_hud_colour(Global_17257.f_7887[0], &iVar0, &iVar1, &iVar2, &uVar3);
	}
	else
	{
		ui::get_hud_colour(Global_17257.f_7887[1], &iVar0, &iVar1, &iVar2, &uVar3);
	}
	ui::set_text_colour(iVar0, iVar1, iVar2, 255);
}

void func_946(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8)//Position - 0x94342
{
	var uVar0;
	int iVar1;
	int iVar2;
	
	if (!func_171(&uVar0, 0, iParam1))
	{
		return;
	}
	iParam0 = iParam0;
	if (iParam3 && !func_898(iParam4, iParam8))
	{
		return;
	}
	if (func_950())
	{
		return;
	}
	if (network::_network_is_text_chat_active())
	{
		return;
	}
	if (iParam7 == 0)
	{
		if (func_948(player::player_id(), 0))
		{
			return;
		}
	}
	if (gameplay::is_pc_version())
	{
		if (gameplay::update_onscreen_keyboard() == 0 || network::_network_is_text_chat_active())
		{
			return;
		}
	}
	if (Global_17257.f_4639 != 0)
	{
		if (controls::_0x6CD79468A1E595C6(2))
		{
			iVar1 = 0;
			while (iVar1 < Global_17257.f_4639)
			{
				if (Global_17257.f_4896[iVar1] != 345)
				{
					StringCopy(&(Global_17257.f_4641[iVar1 /*16*/]), controls::_get_control_action_name(2, Global_17257.f_4896[iVar1], true), 64);
				}
				else if (Global_17257.f_4909[iVar1] != 32)
				{
					StringCopy(&(Global_17257.f_4641[iVar1 /*16*/]), controls::_0x80C2FD58D720C801(2, Global_17257.f_4909[iVar1], true), 64);
				}
				iVar1++;
			}
			Global_17257.f_4640 = 0;
		}
		if (!Global_17257.f_4640)
		{
			graphics::_push_scaleform_movie_function(Global_17257.f_5530[uVar0 /*10*/], "CLEAR_ALL");
			graphics::_pop_scaleform_movie_function_void();
			graphics::_push_scaleform_movie_function(Global_17257.f_5530[uVar0 /*10*/], "SET_MAX_WIDTH");
			graphics::_push_scaleform_movie_function_parameter_float((1f - (Global_17257.f_4951 / 100f)));
			graphics::_pop_scaleform_movie_function_void();
			if (gameplay::is_pc_version())
			{
				graphics::_push_scaleform_movie_function(Global_17257.f_5530[uVar0 /*10*/], "TOGGLE_MOUSE_BUTTONS");
				graphics::_push_scaleform_movie_function_parameter_bool(true);
				graphics::_pop_scaleform_movie_function_void();
			}
			iVar1 = 0;
			while (iVar1 < Global_17257.f_4639)
			{
				if (gameplay::get_hash_key(&(Global_17257.f_4834[iVar1 /*4*/])) != gameplay::get_hash_key("PREV"))
				{
					graphics::_push_scaleform_movie_function(Global_17257.f_5530[uVar0 /*10*/], "SET_DATA_SLOT");
					graphics::_push_scaleform_movie_function_parameter_int(iVar1);
					func_947(&(Global_17257.f_4641[iVar1 /*16*/]));
					iVar2 = iVar1 + 1;
					while (iVar2 < 12 && gameplay::get_hash_key(&(Global_17257.f_4834[iVar2 /*4*/])) == gameplay::get_hash_key("PREV"))
					{
						func_947(&(Global_17257.f_4641[iVar2 /*16*/]));
						iVar2++;
					}
					if (Global_17257.f_4883[iVar1] == -1)
					{
						func_857(&(Global_17257.f_4834[iVar1 /*4*/]));
					}
					else
					{
						graphics::_begin_text_component(&(Global_17257.f_4834[iVar1 /*4*/]));
						if (iParam5)
						{
							ui::add_text_component_substring_time(iParam2, 70);
						}
						else
						{
							ui::add_text_component_integer(iParam2);
						}
						graphics::_end_text_component();
					}
					if (gameplay::is_pc_version())
					{
						if (Global_17257.f_4896[iVar1] != 345 && gameplay::is_bit_set(Global_17257.f_4922, iVar1))
						{
							graphics::_push_scaleform_movie_function_parameter_bool(true);
							graphics::_push_scaleform_movie_function_parameter_int(Global_17257.f_4896[iVar1]);
						}
						else
						{
							graphics::_push_scaleform_movie_function_parameter_bool(false);
							graphics::_push_scaleform_movie_function_parameter_int(345);
						}
					}
					graphics::_pop_scaleform_movie_function_void();
				}
				iVar1++;
			}
			if (gameplay::get_hash_key(&(Global_2566711.f_16)) != gameplay::get_hash_key(""))
			{
				graphics::_push_scaleform_movie_function(Global_17257.f_5530[uVar0 /*10*/], "SET_DATA_SLOT");
				graphics::_push_scaleform_movie_function_parameter_int(Global_17257.f_4639);
				func_947(&Global_2566711);
				if (Global_2566711.f_20 == -1)
				{
					func_857(&(Global_2566711.f_16));
				}
				else
				{
					graphics::_begin_text_component(&(Global_2566711.f_16));
					if (iParam5)
					{
						ui::add_text_component_substring_time(iParam2, 70);
					}
					else
					{
						ui::add_text_component_integer(iParam2);
					}
					graphics::_end_text_component();
				}
				graphics::_pop_scaleform_movie_function_void();
			}
			graphics::_push_scaleform_movie_function(Global_17257.f_5530[uVar0 /*10*/], "SET_BACKGROUND_COLOUR");
			graphics::_push_scaleform_movie_function_parameter_int(0);
			graphics::_push_scaleform_movie_function_parameter_int(0);
			graphics::_push_scaleform_movie_function_parameter_int(0);
			graphics::_push_scaleform_movie_function_parameter_int(80);
			graphics::_pop_scaleform_movie_function_void();
			graphics::_push_scaleform_movie_function(Global_17257.f_5530[uVar0 /*10*/], "DRAW_INSTRUCTIONAL_BUTTONS");
			if (Global_17257.f_4952)
			{
				graphics::_push_scaleform_movie_function_parameter_int(1);
			}
			else
			{
				graphics::_push_scaleform_movie_function_parameter_int(0);
			}
			graphics::_pop_scaleform_movie_function_void();
			Global_17257.f_4640 = 1;
		}
		iVar1 = 0;
		while (iVar1 < Global_17257.f_4639)
		{
			if (Global_17257.f_4883[iVar1] != -1)
			{
				if (iParam2 > 0)
				{
					graphics::_push_scaleform_movie_function(Global_17257.f_5530[uVar0 /*10*/], "OVERRIDE_RESPAWN_TEXT");
					graphics::_push_scaleform_movie_function_parameter_int(iVar1);
					graphics::_begin_text_component(&(Global_17257.f_4834[iVar1 /*4*/]));
					if (iParam5)
					{
						ui::add_text_component_substring_time(iParam2, 70);
					}
					else
					{
						ui::add_text_component_integer(iParam2);
					}
					graphics::_end_text_component();
					graphics::_pop_scaleform_movie_function_void();
				}
			}
			iVar1++;
		}
		if (Global_2566711.f_20 != -1)
		{
			if (iParam2 > 0)
			{
				graphics::_push_scaleform_movie_function(Global_17257.f_5530[uVar0 /*10*/], "OVERRIDE_RESPAWN_TEXT");
				graphics::_push_scaleform_movie_function_parameter_int(iVar1);
				graphics::_begin_text_component(&(Global_2566711.f_16));
				if (iParam5)
				{
					ui::add_text_component_substring_time(iParam2, 70);
				}
				else
				{
					ui::add_text_component_integer(iParam2);
				}
				graphics::_end_text_component();
				graphics::_pop_scaleform_movie_function_void();
			}
		}
		graphics::_set_screen_draw_position(76, 66);
		graphics::_0xF5A2C681787E579D(0f, 0f, 0f, 0f);
		if (iParam6)
		{
			if (!Global_17257.f_7894)
			{
				ui::set_hud_component_position(15, 0f, -0.0375f);
				Global_17257.f_7894 = 1;
			}
		}
		else if (Global_17257.f_7894)
		{
			ui::reset_hud_component_values(15);
			Global_17257.f_7894 = 0;
		}
		graphics::_0xE3A3DB414A373DAB();
		if (Global_17257.f_4925)
		{
			graphics::_set_screen_draw_position(82, 66);
			graphics::_0xF5A2C681787E579D(0f, 0f, 0f, 0f);
			graphics::draw_scaleform_movie(Global_17257.f_5530[uVar0 /*10*/], Global_17257.f_4923, Global_17257.f_4924, 1f, 1f, 255, 255, 255, 255, 0);
			graphics::_0xE3A3DB414A373DAB();
		}
		else
		{
			graphics::draw_scaleform_movie_fullscreen(Global_17257.f_5530[uVar0 /*10*/], 255, 255, 255, 255, 0);
		}
	}
}

void func_947(char* sParam0)//Position - 0x94826
{
	graphics::_0xE83A3E3557A56640(sParam0);
}

int func_948(int iParam0, int iParam1)//Position - 0x94834
{
	int iVar0;
	
	if (iParam0 == player::player_id())
	{
		iVar0 = func_949(-1, 0) == 8;
	}
	else
	{
		iVar0 = Global_1587816[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_949(int iParam0, int iParam1)//Position - 0x9487F
{
	int iVar0;
	int iVar1;
	
	iVar1 = iParam0;
	if (iVar1 == -1)
	{
		iVar1 = func_268();
	}
	if (Global_1315891[iVar1] == 1)
	{
		if (iParam1)
		{
		}
		iVar0 = 8;
	}
	else
	{
		iVar0 = Global_1312741[iVar1];
		if (iParam1)
		{
		}
	}
	return iVar0;
}

bool func_950()//Position - 0x948C0
{
	vector3 vVar0;
	
	if (Global_14413.f_1 > 3)
	{
		return true;
	}
	if (func_951())
	{
		vVar0 = { 0f, -500f, 0f };
		mobile::get_mobile_phone_position(&vVar0);
		if (Global_14358 == 0)
		{
			if (vVar0.y > -119f)
			{
				return true;
			}
			else
			{
				return false;
			}
		}
		else if (vVar0.y > -101f)
		{
			return true;
		}
		else
		{
			return false;
		}
	}
	return false;
}

bool func_951()//Position - 0x9492E
{
	if (script::_get_number_of_instances_of_streamed_script(joaat("cellphone_flashhand")) > 0)
	{
		return true;
	}
	return false;
}

void func_952(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x94948
{
	var uVar0;
	
	ui::get_hud_colour(1, iParam2, iParam3, iParam4, &uVar0);
	switch (iParam0)
	{
		case 28:
			*iParam2 = 194;
			*iParam3 = 80;
			*iParam4 = 80;
			break;
		
		case 15:
		case 4:
		case 16:
		case 26:
		case 27:
		case 35:
		case 34:
		case 47:
		case 46:
		case 42:
		case 36:
		case 37:
		case 50:
		case 39:
		case 40:
		case 38:
		case 43:
		case 44:
		case 45:
		case 49:
			if (iParam1)
			{
				*iParam2 = 0;
				*iParam3 = 0;
				*iParam4 = 0;
			}
			break;
	}
}

void func_953(float fParam0)//Position - 0x94A08
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	ui::get_hud_colour(1, &iVar0, &iVar1, &iVar2, &iVar3);
	ui::set_text_font(0);
	ui::set_text_scale(0f, 0.35f);
	ui::set_text_leading(2);
	ui::set_text_colour(iVar0, iVar1, iVar2, iVar3);
	ui::set_text_wrap(fParam0, ((Global_17254 + Global_17256) - 0.0046875f));
	ui::set_text_centre(0);
	ui::set_text_dropshadow(0, 0, 0, 0, 0);
	ui::set_text_edge(0, 0, 0, 0, 0);
}

void func_954(float fParam0, float fParam1, char* sParam2, int iParam3, int iParam4)//Position - 0x94A67
{
	ui::_set_text_entry(sParam2);
	ui::add_text_component_integer(iParam3);
	ui::add_text_component_integer(iParam4);
	ui::_draw_text(fParam0, fParam1, 0);
}

float func_955(char* sParam0, int iParam1, int iParam2)//Position - 0x94A8A
{
	if (!gameplay::is_string_null(sParam0))
	{
		if (gameplay::get_hash_key(sParam0) == 0)
		{
			return 0f;
		}
	}
	else
	{
		return 0f;
	}
	func_956();
	ui::_set_text_entry_for_width(sParam0);
	ui::add_text_component_integer(iParam1);
	ui::add_text_component_integer(iParam2);
	return ui::_get_text_screen_width(1);
}

void func_956()//Position - 0x94ACC
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	ui::get_hud_colour(1, &iVar0, &iVar1, &iVar2, &iVar3);
	if (Global_17257.f_7869)
	{
		iVar0 = Global_17257.f_7865;
		iVar1 = Global_17257.f_7866;
		iVar2 = Global_17257.f_7867;
		iVar3 = Global_17257.f_7868;
	}
	ui::set_text_font(0);
	ui::set_text_scale(0f, 0.35f);
	ui::set_text_colour(iVar0, iVar1, iVar2, iVar3);
	ui::set_text_wrap((Global_17254 + 0.0046875f), ((Global_17254 + Global_17256) - 0.0046875f));
	ui::set_text_centre(0);
	ui::set_text_dropshadow(0, 0, 0, 0, 0);
	ui::set_text_edge(0, 0, 0, 0, 0);
}

void func_957(float fParam0, float fParam1, float fParam2, float fParam3, int iParam4, int iParam5, int iParam6, int iParam7)//Position - 0x94B56
{
	graphics::draw_rect((fParam0 + (fParam2 * 0.5f)), (fParam1 + (fParam3 * 0.5f)), fParam2, fParam3, iParam4, iParam5, iParam6, iParam7, 0);
}

void func_958()//Position - 0x94B85
{
	if (iLocal_5754 == 3 && iLocal_7587)
	{
		func_959(Local_5662.f_90);
	}
}

void func_959(int iParam0)//Position - 0x94BA6
{
	if (iLocal_221 != iLocal_220)
	{
		if (iLocal_221 == 2)
		{
			func_880(1);
		}
		if (iLocal_220 == 3)
		{
			iLocal_5556 = -1;
		}
		if (iLocal_221 == 3)
		{
			func_878();
		}
	}
	if (iLocal_220 == 1)
	{
		ui::unlock_minimap_position();
		ui::unlock_minimap_angle();
	}
	if (iLocal_220 == 0)
	{
		iLocal_4055 = iParam0;
		func_968();
	}
	else if (iLocal_220 == 2)
	{
		ui::unlock_minimap_position();
		ui::unlock_minimap_angle();
		func_965();
	}
	else if (iLocal_220 == 3)
	{
		if (iParam0 != iLocal_5556)
		{
			func_964(iParam0);
		}
	}
	iLocal_5556 = iParam0;
	iLocal_221 = iLocal_220;
	func_963(iParam0);
	if (iLocal_220 == 0)
	{
		if (iLocal_5631)
		{
			iParam0 = -1;
		}
		if (iParam0 != iLocal_5558)
		{
			func_960(iParam0);
			iLocal_5558 = iParam0;
		}
	}
	else
	{
		iLocal_5558 = -2;
		if (iLocal_5561)
		{
			func_806(1);
		}
	}
}

void func_960(int iParam0)//Position - 0x94C62
{
	func_806(0);
	func_961(iParam0);
}

void func_961(int iParam0)//Position - 0x94C75
{
	int iVar0;
	int iVar1;
	float fVar2;
	float fVar3;
	float fVar4;
	float fVar5;
	int iVar6;
	int iVar7;
	vector3 vVar8;
	float fVar11;
	float fVar12;
	vector3 vVar13;
	float fVar16;
	
	if (iLocal_5561 == 0)
	{
		iVar0 = 0;
		while (iVar0 < 50)
		{
			if (ui::does_blip_exist(Local_3544[iVar0 /*10*/].f_9))
			{
				ui::set_blip_display(Local_3544[iVar0 /*10*/].f_9, 0);
			}
			iVar0++;
		}
	}
	if (func_796(iParam0, 0) > 0)
	{
		iVar6 = 0;
		iVar1 = 0;
		while (iVar1 < 50)
		{
			if (iParam0 == -1)
			{
				iVar7 = Local_3544[iVar1 /*10*/].f_7;
				vVar8 = { Local_3544[iVar1 /*10*/] };
			}
			else
			{
				iVar7 = Local_4057[iParam0 /*351*/][iVar1 /*7*/].f_6;
				vVar8 = { Local_4057[iParam0 /*351*/][iVar1 /*7*/] };
			}
			if (iVar7 != 0)
			{
				uLocal_5562[iVar6] = func_90(vVar8, 0);
				ui::set_blip_scale(uLocal_5562[iVar6], 0.75f);
				ui::set_blip_name_from_text_file(uLocal_5562[iVar6], func_15(iVar7));
				ui::set_blip_colour(uLocal_5562[iVar6], 58);
				ui::_0x75A16C3DA34F1245(uLocal_5562[iVar6], false);
				if (vVar8.x < fVar2 || fVar2 == 0f)
				{
					fVar2 = vVar8.x;
				}
				if (vVar8.y < fVar3 || fVar3 == 0f)
				{
					fVar3 = vVar8.y;
				}
				if (vVar8.x > fVar4 || fVar4 == 0f)
				{
					fVar4 = vVar8.x;
				}
				if (vVar8.y > fVar5 || fVar5 == 0f)
				{
					fVar5 = vVar8.y;
				}
				iVar6++;
			}
			iVar1++;
		}
		fVar2 = func_723(-4000f, func_962(4000f, fVar2));
		fVar4 = func_723(-4000f, func_962(4000f, fVar4));
		fVar3 = func_723(-4000f, func_962(8000f, fVar3));
		fVar5 = func_723(-4000f, func_962(8000f, fVar5));
		fVar11 = (fVar4 - fVar2);
		fVar12 = (fVar5 - fVar3);
		vVar13 = { (fVar2 + (fVar11 / 2f)), (fVar3 + (fVar12 / 2f)), 0f };
		fVar11 = (fVar11 * 1.1f);
		fVar12 = (fVar12 * 1.1f);
		fVar16 = func_723(fVar11, fVar12);
		fVar16 = (fVar16 / 2f);
		fVar16 = func_723(fVar16, 60f);
		fLocal_5559 = fVar16;
		ui::lock_minimap_position(vVar13.x, vVar13.y);
		ui::_set_radar_zoom_level_this_frame(fLocal_5559);
		ui::lock_minimap_angle(system::round(func_803(vVar13, 0f, 25000f, 0f)));
	}
	iLocal_5561 = true;
}

float func_962(float fParam0, float fParam1)//Position - 0x94EAA
{
	if (fParam0 > fParam1)
	{
		return fParam1;
	}
	return fParam0;
}

void func_963(int iParam0)//Position - 0x94EC1
{
	int iVar0;
	struct<10> Var1;
	int iVar11;
	
	iParam0 = iParam0;
	iVar0 = func_141();
	if (iLocal_220 == 0)
	{
		if (!iLocal_5631)
		{
			sLocal_5554 = "DMPP_HLP_SCNINFO";
		}
		else if (iLocal_5552)
		{
			sLocal_5554 = "DMPP_HLP_SCNSVE";
		}
		else
		{
			sLocal_5554 = "RemovePropMenuHelp";
		}
	}
	else if (iLocal_220 == 1)
	{
		if (iLocal_5552)
		{
			sLocal_5554 = "DMPP_HLP_SCNSVE";
		}
		else if (iParam0 == 2 || iParam0 == 3)
		{
			sLocal_5554 = "DMPP_HLP_SAVEQUIT";
		}
		else
		{
			sLocal_5554 = "RemovePropMenuHelp";
		}
	}
	else if (iLocal_220 == 2)
	{
		if (gameplay::get_game_timer() > iLocal_5532 + 100)
		{
			if (iVar0 == 0 && (iLocal_5555 == 1 || iLocal_5555 == 0))
			{
				if (controls::_is_input_disabled(2))
				{
					sLocal_5554 = "DMPP_HLP1PC";
				}
				else
				{
					sLocal_5554 = "DMPP_HLP1";
				}
			}
			else if (iLocal_5555 == 0)
			{
				sLocal_5554 = "RemovePropMenuHelp";
			}
			else
			{
				switch (iLocal_5555)
				{
					case 6:
						sLocal_5554 = "DMPP_HLPGround";
						break;
					
					case 2:
						sLocal_5554 = "DMPP_HLPCollide";
						break;
					
					case 5:
						sLocal_5554 = "DMPP_HLPLandprop";
						break;
					
					case 3:
						sLocal_5554 = "DMPP_HLPWaterprop";
						break;
					
					case 7:
						sLocal_5554 = "DMPP_HLPMaxDynam";
						break;
					
					case 8:
						sLocal_5554 = "DMPP_HLPMaxProps";
						break;
					
					case 4:
						sLocal_5554 = "DMPP_HLPInterior";
						break;
					
					case 9:
						sLocal_5554 = "DMPP_HLPBigWaterProp";
						break;
					
					case 10:
						sLocal_5554 = "DMPP_HLPRestrict";
						break;
					
					case 11:
						sLocal_5554 = "DMPP_HLPSpecType";
						break;
					
					default:
						sLocal_5554 = "RemovePropMenuHelp";
						break;
					}
				}
		}
	}
	else if (iLocal_220 == 3)
	{
		Var1 = { func_126(iLocal_4048) };
		if (entity::does_entity_exist(Var1.f_8) && !ped::is_ped_injured(player::player_ped_id()))
		{
			iVar11 = interior::get_interior_from_entity(Var1.f_8);
			if (interior::is_valid_interior(iVar11) || ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
			{
				sLocal_5554 = "DMPP_HLP_PLCD";
			}
			else
			{
				sLocal_5554 = "DMPP_HLP_PLCD2";
			}
		}
	}
	else if (iLocal_220 == 1)
	{
		sLocal_5554 = "DMPP_HLP_PLCD";
	}
	if (gameplay::are_strings_equal(sLocal_5554, "RemovePropMenuHelp"))
	{
	}
}

void func_964(int iParam0)//Position - 0x950D4
{
	struct<10> Var0;
	vector3 vVar10;
	var uVar13;
	
	func_880(1);
	func_878();
	if (!ui::does_blip_exist(iLocal_4047) && iParam0 >= 0)
	{
		Var0 = { func_126(iParam0) };
		if (entity::does_entity_exist(Var0.f_8))
		{
			iLocal_4048 = iParam0;
			vVar10 = { entity::get_entity_coords(Var0.f_8, 1) };
			uVar13 = func_14(Var0);
			vLocal_4051 = { vVar10.x, vVar10.y, (vVar10.y + Local_304[uVar13 /*14*/].f_11) };
			system::settimerb(0);
			iLocal_4054 = iParam0;
			if (ui::does_blip_exist(Var0.f_9))
			{
				if (Local_304[uVar13 /*14*/].f_6)
				{
					ui::set_blip_colour(Var0.f_9, 3);
				}
				else
				{
					ui::set_blip_colour(Var0.f_9, 2);
				}
				ui::set_blip_scale(Var0.f_9, 1f);
				ui::lock_minimap_position(vVar10.x, vVar10.y);
				ui::lock_minimap_angle(system::round(func_803(vVar10, 0f, 25000f, 0f)));
			}
			entity::set_entity_alpha(Var0.f_8, 160, false);
		}
	}
}

void func_965()//Position - 0x951B0
{
	vector3 vVar0;
	vector3 vVar3;
	float fVar6;
	float fVar7;
	var uVar8;
	float fVar9;
	float fVar10;
	vector3 vVar11;
	
	if (!entity::is_entity_dead(player::player_ped_id(), 0))
	{
		vVar0 = { entity::get_entity_coords(player::player_ped_id(), 1) };
		vVar3 = { cam::get_gameplay_cam_rot(2) };
		fVar6 = vVar3.y;
		if (!iLocal_5524)
		{
			if (iLocal_4048 >= 0)
			{
				func_878();
			}
			if (Local_5514.f_7 == 0)
			{
				Local_5514.f_7 = Local_304[iLocal_3542 /*14*/].f_5;
			}
			streaming::request_model(Local_5514.f_7);
			if (streaming::has_model_loaded(Local_5514.f_7))
			{
				gameplay::get_model_dimensions(Local_5514.f_7, &vLocal_5543, &vLocal_5546);
				Local_5514 = { object::_get_object_offset_from_coords(vVar0, fVar6, 0f, 5f, 0f) };
				Local_5514.f_8 = object::create_object(Local_5514.f_7, Local_5514, 1, true, false);
				iLocal_5524 = 1;
				entity::freeze_entity_position(Local_5514.f_8, true);
				entity::_0x9EBC85ED0FFFE51C(Local_5514.f_8, false, 0);
				entity::set_entity_invincible(Local_5514.f_8, true);
				entity::set_entity_proofs(Local_5514.f_8, true, true, true, true, true, true, 0, false);
				if (entity::does_entity_have_physics(Local_5514.f_8) && unk_0x0C112765300C7E1E(Local_5514.f_8))
				{
					rope::set_disable_breaking(Local_5514.f_8, 1);
					rope::set_disable_frag_damage(Local_5514.f_8, 1);
				}
				iLocal_5613 = 0;
			}
		}
		if (entity::does_entity_exist(Local_5514.f_8))
		{
			uVar8 = func_14(Local_5514);
			Local_5514 = { object::_get_object_offset_from_coords(vVar0, fVar6, 0f, fLocal_5526, 0f) };
			fVar7 = func_912(Local_5514, 0);
			water::test_vertical_probe_against_all_water(Local_5514 + Vector(vLocal_5546.y, 0f, 0f), 1, &fLocal_5549);
			if (!unk_0x9E82F0F362881B29(entity::get_entity_coords(Local_5514.f_8, 1) + Vector(vLocal_5546.y, 0f, 0f), &fVar9, 0))
			{
				fVar9 = -200f;
			}
			if (!unk_0x9E82F0F362881B29(entity::get_entity_coords(Local_5514.f_8, 1) + Vector(vLocal_5546.y, 0f, 0f), &fVar10, 1))
			{
				fVar10 = -500f;
			}
			if (fVar9 >= fVar10)
			{
				iLocal_5529 = false;
				fLocal_5549 = -1f;
			}
			else
			{
				iLocal_5529 = true;
				if (gameplay::absf((fLocal_5549 - fVar10)) >= 0.5f || fLocal_5549 == -1f)
				{
					fLocal_5549 = fVar10;
				}
			}
			fVar7 = func_723(fVar7, fLocal_5549);
			if (iLocal_5529 == 1 || iLocal_3539[0] == 14)
			{
				Local_5514.f_2 = (fVar7 - vLocal_5543.y);
				Local_5514.f_3 = { 0f, 0f, fLocal_5525 };
				if (iLocal_3539[0] != 14)
				{
					Local_5514.f_2 = (Local_5514.f_2 + Local_5514.f_6);
				}
				entity::set_entity_coords(Local_5514.f_8, Local_5514, 1, false, 0, 1);
				entity::set_entity_heading(Local_5514.f_8, fLocal_5525);
				Local_5514 = { entity::get_entity_coords(Local_5514.f_8, 1) };
				Local_5514.f_3 = { entity::get_entity_rotation(Local_5514.f_8, 2) };
			}
			else if (!func_9(vLocal_5539, Local_5514 + Vector(Local_5514.f_6, 0f, 0f), 0.01f, 0) || fLocal_5550 != fLocal_5525)
			{
				Local_5514.f_2 = ((fVar7 - vLocal_5543.y) + 0.1f);
				Local_5514.f_3.f_2 = fLocal_5525;
				entity::set_entity_rotation(Local_5514.f_8, Local_5514.f_3, 2, 1);
				entity::set_entity_coords(Local_5514.f_8, Local_5514 + Vector(Local_5514.f_6, 0f, 0f), 1, false, 0, 1);
				if (Local_5514.f_6 == 0f)
				{
					unk_0xD76EEEF746057FD6(Local_5514.f_8);
					Local_5514 = { entity::get_entity_coords(Local_5514.f_8, 1) + Vector((0.2f + Local_304[uVar8 /*14*/].f_9), 0f, 0f) };
					Local_5514.f_3 = { entity::get_entity_rotation(Local_5514.f_8, 2) };
					Local_5514.f_3 = func_967(Local_5514.f_3, -65f, 65f);
					Local_5514.f_3.f_1 = func_967(Local_5514.f_3.f_1, -65f, 65f);
					entity::set_entity_rotation(Local_5514.f_8, Local_5514.f_3, 2, 1);
					entity::set_entity_coords(Local_5514.f_8, Local_5514, 1, false, 0, 1);
				}
			}
			vLocal_5539 = { object::_get_object_offset_from_coords(vVar0, fVar6, 0f, fLocal_5526, 0f) + Vector(Local_5514.f_6, 0f, 0f) };
			vVar11 = { entity::get_entity_coords(Local_5514.f_8, 1) + Vector(Local_304[uVar8 /*14*/].f_11, 0f, 0f) };
			if (func_910(&Local_5514))
			{
				if (iLocal_4045 == 50)
				{
					graphics::draw_marker(2, vVar11, 0f, 0f, 0f, 0f, 180f, 0f, 0.5f, 0.5f, 0.5f, 200, 100, 100, 150, 0, 1, 2, 0, 0, 0, false);
					iLocal_5555 = 8;
					entity::set_entity_alpha(Local_5514.f_8, 100, false);
				}
				else if (!Local_304[uVar8 /*14*/].f_6 && iLocal_4046 == 25)
				{
					graphics::draw_marker(2, vVar11, 0f, 0f, 0f, 0f, 180f, 0f, 0.5f, 0.5f, 0.5f, 200, 100, 100, 150, 0, 1, 2, 0, 0, 0, false);
					iLocal_5555 = 7;
					entity::set_entity_alpha(Local_5514.f_8, 100, false);
				}
				else
				{
					if (Local_304[uVar8 /*14*/].f_6)
					{
						graphics::draw_marker(2, vVar11, 0f, 0f, 0f, 0f, 180f, 0f, 0.5f, 0.5f, 0.5f, 70, 180, 230, 150, 0, 1, 2, 0, 0, 0, false);
					}
					else
					{
						graphics::draw_marker(2, vVar11, 0f, 0f, 0f, 0f, 180f, 0f, 0.5f, 0.5f, 0.5f, 70, 230, 140, 150, 0, 1, 2, 0, 0, 0, false);
					}
					entity::set_entity_alpha(Local_5514.f_8, 220, false);
				}
			}
			else
			{
				if ((iLocal_5555 == 0 || iLocal_5555 == 1) || gameplay::get_game_timer() <= iLocal_5532 + 100)
				{
					graphics::draw_marker(2, vVar11, 0f, 0f, 0f, 0f, 180f, 0f, 0.5f, 0.5f, 0.5f, 150, 150, 150, 150, 0, 1, 2, 0, 0, 0, false);
				}
				else
				{
					graphics::draw_marker(2, vVar11, 0f, 0f, 0f, 0f, 180f, 0f, 0.5f, 0.5f, 0.5f, 200, 100, 100, 150, 0, 1, 2, 0, 0, 0, false);
				}
				entity::set_entity_alpha(Local_5514.f_8, 100, false);
			}
			func_966();
		}
	}
}

void func_966()//Position - 0x9572D
{
	fLocal_5550 = fLocal_5525;
	if (controls::is_disabled_control_pressed(2, iLocal_5643) && !controls::is_disabled_control_pressed(2, iLocal_5642))
	{
		fLocal_5525 = ((fLocal_5525 + 2f) % 360f);
		if (iLocal_5645 == 0)
		{
			iLocal_5644 = audio::get_sound_id();
			iLocal_5645 = 1;
			if (!gameplay::is_bit_set(iLocal_5646, 0))
			{
				gameplay::set_bit(&iLocal_5646, 0);
			}
		}
		else if (audio::has_sound_finished(iLocal_5644))
		{
			audio::play_sound_frontend(iLocal_5644, "Rotate_Loop", "DLC_Dmod_Prop_Editor_Sounds", 0);
		}
	}
	else if (iLocal_5645 == 1)
	{
		if (gameplay::is_bit_set(iLocal_5646, 0) || iLocal_220 != 2)
		{
			gameplay::clear_bit(&iLocal_5646, 0);
			audio::stop_sound(iLocal_5644);
			audio::release_sound_id(iLocal_5644);
			iLocal_5645 = 0;
		}
	}
	if (controls::is_disabled_control_pressed(2, iLocal_5642) && !controls::is_disabled_control_pressed(2, iLocal_5643))
	{
		fLocal_5525 = (((fLocal_5525 - 2f) + 360f) % 360f);
		if (iLocal_5645 == 0)
		{
			iLocal_5644 = audio::get_sound_id();
			iLocal_5645 = 1;
			if (!gameplay::is_bit_set(iLocal_5646, 1))
			{
				gameplay::set_bit(&iLocal_5646, 1);
			}
		}
		else if (audio::has_sound_finished(iLocal_5644))
		{
			audio::play_sound_frontend(iLocal_5644, "Rotate_Loop", "DLC_Dmod_Prop_Editor_Sounds", 0);
		}
	}
	else if (iLocal_5645 == 1)
	{
		if (gameplay::is_bit_set(iLocal_5646, 1) || iLocal_220 != 2)
		{
			gameplay::clear_bit(&iLocal_5646, 1);
			audio::stop_sound(iLocal_5644);
			audio::release_sound_id(iLocal_5644);
			iLocal_5645 = 0;
		}
	}
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
		{
			if (controls::is_disabled_control_pressed(2, iLocal_5640) && !controls::is_disabled_control_pressed(2, iLocal_5641))
			{
				fLocal_5526 = func_723((fLocal_5526 - ((system::to_float((controls::get_control_value(2, iLocal_5640) - 127)) * 0.1f) / 127f)), fLocal_5527);
				if (fLocal_5526 > fLocal_5527)
				{
					if (iLocal_5645 == 0)
					{
						iLocal_5644 = audio::get_sound_id();
						iLocal_5645 = 1;
						if (!gameplay::is_bit_set(iLocal_5646, 5))
						{
							gameplay::set_bit(&iLocal_5646, 5);
						}
					}
					else if (fLocal_5526 > fLocal_5527)
					{
						if (audio::has_sound_finished(iLocal_5644))
						{
							audio::play_sound_frontend(iLocal_5644, "Move_Loop", "DLC_Dmod_Prop_Editor_Sounds", 0);
						}
					}
					else
					{
						audio::stop_sound(iLocal_5644);
					}
				}
				else if (gameplay::is_bit_set(iLocal_5646, 5) || iLocal_220 != 2)
				{
					gameplay::clear_bit(&iLocal_5646, 5);
					audio::stop_sound(iLocal_5644);
					audio::release_sound_id(iLocal_5644);
					iLocal_5645 = 0;
				}
			}
			else if (iLocal_5645 == 1)
			{
				if (gameplay::is_bit_set(iLocal_5646, 5) || iLocal_220 != 2)
				{
					gameplay::clear_bit(&iLocal_5646, 5);
					audio::stop_sound(iLocal_5644);
					audio::release_sound_id(iLocal_5644);
					iLocal_5645 = 0;
				}
			}
			if (controls::is_disabled_control_pressed(2, iLocal_5641) && !controls::is_disabled_control_pressed(2, iLocal_5640))
			{
				fLocal_5526 = func_962((fLocal_5526 + ((system::to_float((controls::get_control_value(2, iLocal_5641) - 127)) * 0.1f) / 127f)), fLocal_5528);
				if (fLocal_5526 < fLocal_5528)
				{
					if (iLocal_5645 == 0)
					{
						iLocal_5644 = audio::get_sound_id();
						iLocal_5645 = 1;
						if (!gameplay::is_bit_set(iLocal_5646, 4))
						{
							gameplay::set_bit(&iLocal_5646, 4);
						}
					}
					else if (fLocal_5526 < fLocal_5528)
					{
						if (audio::has_sound_finished(iLocal_5644))
						{
							audio::play_sound_frontend(iLocal_5644, "Move_Loop", "DLC_Dmod_Prop_Editor_Sounds", 0);
						}
					}
					else
					{
						audio::stop_sound(iLocal_5644);
					}
				}
				else if (gameplay::is_bit_set(iLocal_5646, 4) || iLocal_220 != 2)
				{
					gameplay::clear_bit(&iLocal_5646, 4);
					audio::stop_sound(iLocal_5644);
					audio::release_sound_id(iLocal_5644);
					iLocal_5645 = 0;
				}
			}
			else if (iLocal_5645 == 1)
			{
				if (gameplay::is_bit_set(iLocal_5646, 4) || iLocal_220 != 2)
				{
					gameplay::clear_bit(&iLocal_5646, 4);
					audio::stop_sound(iLocal_5644);
					audio::release_sound_id(iLocal_5644);
					iLocal_5645 = 0;
				}
			}
		}
		else
		{
			controls::disable_control_action(0, 79, 1);
			controls::disable_control_action(0, 86, 1);
			fLocal_5526 = 7f;
		}
	}
	if (iLocal_5551 == 0)
	{
		if (controls::is_disabled_control_pressed(2, iLocal_5636) && !controls::is_disabled_control_pressed(2, iLocal_5637))
		{
			Local_5514.f_6 = func_962((Local_5514.f_6 + 0.1f), 30f);
			if (iLocal_5645 == 0)
			{
				if (iLocal_3539[0] != 14)
				{
					iLocal_5644 = audio::get_sound_id();
					iLocal_5645 = 1;
					if (!gameplay::is_bit_set(iLocal_5646, 2))
					{
						gameplay::set_bit(&iLocal_5646, 2);
					}
				}
			}
			else if (Local_5514.f_6 < 30f)
			{
				if (audio::has_sound_finished(iLocal_5644))
				{
					audio::play_sound_frontend(iLocal_5644, "Elevation_Loop", "DLC_Dmod_Prop_Editor_Sounds", 0);
				}
			}
			else
			{
				audio::stop_sound(iLocal_5644);
			}
		}
		else if (iLocal_5645 == 1 || iLocal_220 != 2)
		{
			if (gameplay::is_bit_set(iLocal_5646, 2))
			{
				gameplay::clear_bit(&iLocal_5646, 2);
				audio::stop_sound(iLocal_5644);
				audio::release_sound_id(iLocal_5644);
				iLocal_5645 = 0;
			}
		}
		if (controls::is_disabled_control_pressed(2, iLocal_5637) && !controls::is_disabled_control_pressed(2, iLocal_5636))
		{
			Local_5514.f_6 = func_723((Local_5514.f_6 - 0.1f), -30f);
			if (iLocal_5645 == 0)
			{
				if (iLocal_3539[0] != 14)
				{
					iLocal_5644 = audio::get_sound_id();
					iLocal_5645 = 1;
					if (!gameplay::is_bit_set(iLocal_5646, 3))
					{
						gameplay::set_bit(&iLocal_5646, 3);
					}
				}
			}
			else if (Local_5514.f_6 > -10f)
			{
				if (audio::has_sound_finished(iLocal_5644))
				{
					audio::play_sound_frontend(iLocal_5644, "Elevation_Loop", "DLC_Dmod_Prop_Editor_Sounds", 0);
				}
			}
			else
			{
				audio::stop_sound(iLocal_5644);
			}
		}
		else if (iLocal_5645 == 1)
		{
			if (gameplay::is_bit_set(iLocal_5646, 3) || iLocal_220 != 2)
			{
				gameplay::clear_bit(&iLocal_5646, 3);
				audio::stop_sound(iLocal_5644);
				audio::release_sound_id(iLocal_5644);
				iLocal_5645 = 0;
			}
		}
	}
	else if (system::timera() > 1000)
	{
		iLocal_5551 = 0;
	}
	if (controls::is_disabled_control_pressed(0, iLocal_5636) && controls::is_disabled_control_pressed(0, iLocal_5637))
	{
		Local_5514.f_6 = 0f;
		if (iLocal_5551 == 0)
		{
			if (iLocal_3539[0] != 14)
			{
				audio::play_sound_frontend(-1, "Reset_Prop_Position", "DLC_Dmod_Prop_Editor_Sounds", 0);
			}
		}
		iLocal_5551 = 1;
		system::settimera(0);
	}
}

float func_967(float fParam0, float fParam1, float fParam2)//Position - 0x95CE3
{
	if (fParam0 > fParam2)
	{
		return fParam2;
	}
	else if (fParam0 < fParam1)
	{
		return fParam1;
	}
	return fParam0;
}

void func_968()//Position - 0x95D0A
{
	if (entity::does_entity_exist(Local_5514.f_8))
	{
		func_880(1);
	}
	func_878();
}

void func_969()//Position - 0x95D27
{
	int iVar0;
	vector3 vVar1;
	
	if (iLocal_5754 == 0)
	{
		if (Local_5662.f_90 == 1)
		{
			if (!func_96(5) || unk1::_is_recording())
			{
				if (iLocal_9773)
				{
					func_94(1);
				}
				else
				{
					func_94(0);
				}
			}
			else
			{
				if (!iLocal_9773)
				{
					if (!unk1::_is_recording())
					{
						if (func_96(5))
						{
							func_88();
						}
					}
				}
				if (iLocal_9639[iLocal_7676[1]] == 0 || iLocal_9639[iLocal_7676[1]] == 1)
				{
					iVar0 = iLocal_9639[iLocal_7676[1]];
					vVar1 = { Local_9128[iVar0 /*17*/] };
					if (!ui::does_blip_exist(Local_9128[iVar0 /*17*/].f_12) && !func_87(Local_9128[iVar0 /*17*/]))
					{
						Local_9128[iVar0 /*17*/].f_12 = func_90(Local_9128[iVar0 /*17*/], 0);
						ui::set_blip_as_short_range(Local_9128[iVar0 /*17*/].f_12, true);
						ui::set_blip_name_from_text_file(Local_9128[iVar0 /*17*/].f_12, func_165(iVar0));
						ui::set_blip_colour(Local_9128[iVar0 /*17*/].f_12, 2);
						ui::_0x75A16C3DA34F1245(Local_9128[iVar0 /*17*/].f_12, false);
						ui::lock_minimap_position(vVar1.x, vVar1.y);
						ui::lock_minimap_angle(func_85(vVar1));
					}
					if (ui::does_blip_exist(Local_9128[iVar0 /*17*/].f_12))
					{
						if (!func_115(ui::get_blip_coords(Local_9128[iVar0 /*17*/].f_12), Local_9128[iVar0 /*17*/], 0))
						{
							ui::set_blip_coords(Local_9128[iVar0 /*17*/].f_12, Local_9128[iVar0 /*17*/]);
							ui::lock_minimap_position(vVar1.x, vVar1.y);
							ui::lock_minimap_angle(func_85(vVar1));
						}
					}
				}
			}
		}
	}
}

int func_970(int iParam0, int iParam1)//Position - 0x95EA9
{
	if (iParam0 > iParam1)
	{
		return iParam1;
	}
	return iParam0;
}

void func_971()//Position - 0x95EBF
{
	float fVar0;
	
	if (func_898(0, 1))
	{
		graphics::_set_screen_draw_position(76, 84);
		graphics::_0xF5A2C681787E579D(0f, -0.0755f, 0f, 0f);
		fVar0 = func_986(0f);
		fVar0 = fVar0;
		graphics::_0x6DD8F5AA635EB4B2(fVar0, fLocal_6544, &uLocal_6547, &uLocal_6548);
		Global_17255 = ((0.034722f * 3f) + fLocal_6540);
		func_981(Local_7724, 0, 0);
		func_972(&Local_7732, &Local_7734, "CM_DMO", 0);
		graphics::_0xE3A3DB414A373DAB();
	}
}

void func_972(var uParam0, var uParam1, char* sParam2, int iParam3)//Position - 0x95F2B
{
	if (iParam3)
	{
		graphics::_set_2d_layer(1);
	}
	func_973(uParam0, uParam1, sParam2, 0, 0);
}

void func_973(var uParam0, var uParam1, var uParam2, int iParam3, int iParam4)//Position - 0x95F49
{
	char* sVar0;
	
	sVar0 = uParam2;
	if (!func_980(sVar0))
	{
		if (func_978())
		{
			func_977(uParam1, 0);
			ui::set_text_right_justify(iParam4);
			ui::set_text_centre(iParam3);
			func_974(func_976(*uParam0), func_975(uParam0->f_1), sVar0, 0);
		}
	}
}

void func_974(float fParam0, float fParam1, char* sParam2, int iParam3)//Position - 0x95F8F
{
	ui::_set_text_entry(sParam2);
	ui::_draw_text(fParam0, fParam1, iParam3);
}

float func_975(float fParam0)//Position - 0x95FA7
{
	return (fParam0 + fLocal_13);
}

float func_976(float fParam0)//Position - 0x95FB4
{
	return (fParam0 + fLocal_12);
}

void func_977(var uParam0, int iParam1)//Position - 0x95FC1
{
	ui::set_text_font(*uParam0);
	if (!uParam0->f_8 == 0f || !uParam0->f_9 == 0f)
	{
		ui::set_text_wrap(uParam0->f_8, uParam0->f_9);
	}
	ui::set_text_scale(uParam0->f_1, uParam0->f_2);
	ui::set_text_colour(uParam0->f_3, uParam0->f_4, uParam0->f_5, uParam0->f_6);
	switch (uParam0->f_7)
	{
		case 0:
			break;
		
		case 1:
			ui::set_text_outline();
			ui::set_text_drop_shadow();
			break;
		
		case 3:
			ui::set_text_drop_shadow();
			break;
		
		case 2:
			ui::set_text_outline();
			break;
	}
	if (iParam1)
	{
		graphics::_set_2d_layer(4);
	}
}

bool func_978()//Position - 0x9605A
{
	if (func_979())
	{
		return true;
	}
	if (cam::is_screen_faded_out())
	{
		return false;
	}
	if (cam::is_screen_fading_out() || cam::is_screen_fading_in())
	{
		return false;
	}
	if (gameplay::is_frontend_fading())
	{
		return false;
	}
	return true;
}

var func_979()//Position - 0x96099
{
	return Global_1312438;
}

bool func_980(char* sParam0)//Position - 0x960A5
{
	if (gameplay::is_string_null(sParam0))
	{
		return true;
	}
	else if (gameplay::are_strings_equal(sParam0, "") || gameplay::are_strings_equal(sParam0, "0"))
	{
		return true;
	}
	return false;
}

void func_981(struct<8> Param0, int iParam8, int iParam9)//Position - 0x960E0
{
	struct<8> Var0;
	
	Var0 = { Param0 };
	switch (iParam8)
	{
		case 2:
			func_985(&Var0);
			break;
		
		case 1:
			func_984(&Var0);
			break;
		
		case 3:
			func_983(&Var0);
			break;
		
		case 4:
			func_982(&Var0);
			break;
	}
	if (func_978())
	{
		if (iParam9 == 1)
		{
			graphics::draw_rect(func_976(Var0), func_975(Var0.f_1), Var0.f_2, Var0.f_3, Var0.f_4, Var0.f_5, Var0.f_6, Var0.f_7, 0);
		}
		else
		{
			graphics::draw_rect(func_976(Var0), func_975(Var0.f_1), Var0.f_2, Var0.f_3, Var0.f_4, Var0.f_5, Var0.f_6, Var0.f_7, 0);
		}
	}
}

void func_982(var uParam0)//Position - 0x9619B
{
	uParam0->f_4 = 200;
	uParam0->f_5 = 20;
	uParam0->f_6 = 20;
	uParam0->f_7 = 204;
}

void func_983(var uParam0)//Position - 0x961BB
{
	uParam0->f_4 = 255;
	uParam0->f_5 = 255;
	uParam0->f_6 = 255;
	uParam0->f_7 = 255;
}

void func_984(var uParam0)//Position - 0x961DB
{
	uParam0->f_4 = (uParam0->f_4 - 50);
	uParam0->f_5 = (uParam0->f_5 - 50);
	uParam0->f_6 = (uParam0->f_6 - 50);
}

void func_985(var uParam0)//Position - 0x96204
{
	uParam0->f_4 = 0;
	uParam0->f_5 = 0;
	uParam0->f_6 = 0;
	uParam0->f_7 = 150;
}

float func_986(float fParam0)//Position - 0x96221
{
	fParam0 = (fParam0 * (1.777778f / graphics::_get_screen_aspect_ratio(0)));
	return fParam0;
}

void func_987()//Position - 0x9623B
{
	if (iLocal_5754 != 0)
	{
		func_989("");
	}
	switch (iLocal_5754)
	{
		case 0:
			switch (Local_5662.f_90)
			{
				case 0:
					func_989("CM_SETDE1");
					break;
				
				case 6:
					if (func_96(7))
					{
						func_989("CM_PROPDE1");
					}
					else if (!entity::is_entity_dead(player::player_ped_id(), 0))
					{
						if (func_46(entity::get_entity_model(player::player_ped_id())))
						{
							func_989("CM_PROPANM");
						}
						else if (ped::get_ped_parachute_state(player::player_ped_id()) > -1)
						{
							func_989("CM_PROPPAR");
						}
						else
						{
							func_989("CM_PROPNOV1");
						}
					}
					break;
				
				case 1:
					if (func_96(5))
					{
						if (!func_96(4) && (iLocal_9639[iLocal_7676[1]] == 0 || iLocal_9639[iLocal_7676[1]] == 1))
						{
							if (gameplay::is_bit_set(iLocal_9770, 1) || gameplay::is_bit_set(iLocal_9770, 6))
							{
								func_989("CM_WWARN03");
							}
							else if (gameplay::is_bit_set(iLocal_9770, 3) || gameplay::is_bit_set(iLocal_9770, 4))
							{
								func_989("CM_WWARN04");
							}
							else if (gameplay::is_bit_set(iLocal_9770, 5))
							{
								func_989("CM_WWARN05");
							}
							else if (gameplay::is_bit_set(iLocal_9770, 10))
							{
								func_989("CM_WWARN06");
							}
							else if (gameplay::is_bit_set(iLocal_9770, 13))
							{
								func_989("CM_WWARN07");
							}
							else
							{
								func_989("CM_WWARN11");
							}
						}
						else if (iLocal_9639[iLocal_7676[1]] == 0 || iLocal_9639[iLocal_7676[1]] == 1)
						{
							if (func_87(Local_9128[iLocal_9639[iLocal_7676[1]] /*17*/]))
							{
								func_989("CM_LOCDE02");
							}
							else
							{
								func_989("CM_LOCDE03");
							}
						}
						else
						{
							func_989("CM_LOCDE01");
						}
					}
					else if (gameplay::is_bit_set(iLocal_9770, 7))
					{
						func_989("CM_WWARN01");
					}
					else if (gameplay::is_bit_set(iLocal_9770, 9))
					{
						func_989("CM_WWARN02");
					}
					else if (gameplay::is_bit_set(iLocal_9770, 2))
					{
						func_989("CM_WWARN08");
					}
					else if (gameplay::is_bit_set(iLocal_9770, 5))
					{
						func_989("CM_WWARN09");
					}
					else if (gameplay::is_bit_set(iLocal_9771, 15))
					{
						func_989("CM_WWARN10");
					}
					else
					{
						func_989("CM_LOCDE01");
					}
					break;
				
				case 4:
					if (gameplay::is_bit_set(iLocal_9770, 3) || gameplay::is_bit_set(iLocal_9770, 4))
					{
						func_989("CM_WARN01");
					}
					else if (gameplay::is_bit_set(iLocal_9770, 10))
					{
						func_989("CM_WARN06");
					}
					else if (gameplay::is_bit_set(iLocal_9770, 5))
					{
						func_989("CM_WARN02");
					}
					else if (gameplay::is_bit_set(iLocal_9770, 7))
					{
						func_989("CM_WARN04");
					}
					else if (gameplay::is_bit_set(iLocal_9770, 1))
					{
						func_989("CM_WARN03");
					}
					else if (gameplay::is_bit_set(iLocal_9770, 9))
					{
						func_989("CM_WARN05");
					}
					else if (gameplay::is_bit_set(iLocal_9770, 11))
					{
						func_989("CM_WARN07");
					}
					else
					{
						func_989("CM_BOODE1");
					}
					break;
				
				case 2:
					if (gameplay::is_bit_set(iLocal_9770, 4))
					{
						func_989("CM_GWARN01");
					}
					else if (gameplay::is_bit_set(iLocal_9770, 5))
					{
						func_989("CM_GWARN02");
					}
					else if (gameplay::is_bit_set(iLocal_9770, 7))
					{
						func_989("CM_GWARN04");
					}
					else if (gameplay::is_bit_set(iLocal_9770, 1))
					{
						func_989("CM_GWARN03");
					}
					else if (gameplay::is_bit_set(iLocal_9770, 8))
					{
						func_989("CM_GWARN05");
					}
					else if (gameplay::is_bit_set(iLocal_9770, 13))
					{
						func_989("CM_GWARN07");
					}
					else if (func_99())
					{
						if (func_5())
						{
							if (controls::_is_input_disabled(2))
							{
								func_989("CM_GESDE1PCFP");
							}
							else
							{
								func_989("CM_GESDE1FP");
							}
						}
						else if (controls::_is_input_disabled(2))
						{
							func_989("CM_GESDE1PC");
						}
						else
						{
							func_989("CM_GESDE1");
						}
					}
					else
					{
						func_989("CM_GWARN06");
					}
					break;
				
				case 3:
					if (gameplay::is_bit_set(iLocal_9770, 4))
					{
						func_989("CM_SWARN01");
					}
					else if (gameplay::is_bit_set(iLocal_9770, 7))
					{
						func_989("CM_SWARN02");
					}
					else if (gameplay::is_bit_set(iLocal_9770, 5))
					{
						func_989("CM_SWARN04");
					}
					else if (gameplay::is_bit_set(iLocal_9770, 8))
					{
						if (!gameplay::is_string_null_or_empty(&(Local_6811.f_20.f_28)))
						{
							func_989("CM_SWARN06");
						}
						else
						{
							func_989("CM_SWARN03");
						}
					}
					else if (iLocal_7921 > 1)
					{
						func_989("CM_SPEDE1");
					}
					else
					{
						func_989("CM_SWARN05");
					}
					break;
				
				case 5:
					if (!func_96(6))
					{
						if (gameplay::is_bit_set(iLocal_9771, 3) || gameplay::is_bit_set(iLocal_9771, 4))
						{
							func_989("CM_GARWATER");
						}
						else if (gameplay::is_bit_set(iLocal_9771, 8))
						{
							func_989("CM_GARANIMAL");
						}
						else
						{
							func_989("CM_GARDENIED");
						}
					}
					else if (func_111() <= 0)
					{
						func_989("CM_GARNOVEH");
					}
					else
					{
						func_989("CM_GARDE1");
					}
					break;
				
				case 7:
					func_989("CM_RSEDTR");
					break;
				
				case 8:
					func_989("CM_RTNCTRLR");
					break;
				
				case 9:
					func_989("CM_TOP5HLP");
					break;
				
				default:
					func_989("");
					break;
			}
			break;
		
		case 1:
			if (!func_96(6))
			{
				func_121("CM_GARWATER", 0, 0);
			}
			else
			{
				func_121("CM_SPWNVEH", 0, 0);
			}
			break;
		
		case 2:
			func_988(Local_5662.f_90);
			break;
		
		case 3:
			if (gameplay::are_strings_equal(sLocal_5554, "RemovePropMenuHelp"))
			{
				func_989("");
			}
			else
			{
				func_989(sLocal_5554);
			}
			break;
	}
}

void func_988(int iParam0)//Position - 0x96809
{
	switch (iParam0)
	{
		case 0:
			func_121("CM_TIMDE01", 0, 0);
			break;
		
		case 1:
			func_121("CM_WEADE01", 0, 0);
			break;
		
		case 2:
			func_121("CM_WANDE01", 0, 0);
			break;
		
		case 3:
			func_121("CM_PEDDE01", 0, 0);
			break;
		
		case 4:
			func_121("CM_VEHDE01", 0, 0);
			break;
		
		case 5:
			func_121("CM_RESDE01", 0, 0);
			break;
		
		case 6:
			if (func_27(6))
			{
				func_121("CM_INVDE01", 0, 0);
			}
			else
			{
				func_121("CM_DISABLEDE1", 0, 0);
			}
			break;
		
		case 7:
			if (func_27(7))
			{
				func_121("CM_FIREBDE1", 0, 0);
			}
			else
			{
				func_121("CM_DISABLEDE1", 0, 0);
			}
			break;
		
		case 8:
			if (func_27(8))
			{
				func_121("CM_XPLODEBDE1", 0, 0);
			}
			else
			{
				func_121("CM_DISABLEDE1", 0, 0);
			}
			break;
		
		case 9:
			if (func_27(9))
			{
				func_121("CM_XPLODEPDE1", 0, 0);
			}
			else
			{
				func_121("CM_DISABLEDE1", 0, 0);
			}
			break;
		
		case 10:
			if (func_27(10))
			{
				func_121("CM_SUPERJDE1", 0, 0);
			}
			else if (interior::is_interior_scene())
			{
				func_121("CM_DISABLEDE2", 0, 0);
			}
			else
			{
				func_121("CM_DISABLEDE1", 0, 0);
			}
			break;
		
		case 11:
			if (func_27(11))
			{
				func_121("CM_SLIDEDE1", 0, 0);
			}
			else
			{
				func_121("CM_DISABLEDE1", 0, 0);
			}
			break;
		
		case 12:
			if (func_27(12))
			{
				func_121("CM_LOWGDE1", 0, 0);
			}
			else if (entity::is_entity_in_water(player::player_ped_id()))
			{
				func_121("CM_DISABLEDE2", 0, 0);
			}
			else
			{
				func_121("CM_DISABLEDE1", 0, 0);
			}
			break;
		
		case 13:
			func_121("CM_CLEARDE1", 0, 0);
			break;
	}
	if (iLocal_7565 && !iLocal_7566)
	{
		func_121("CM_SETWARN1", 0, 0);
	}
}

void func_989(char* sParam0)//Position - 0x96A17
{
	sLocal_9775 = sParam0;
}

void func_990(int iParam0, int iParam1, int iParam2)//Position - 0x96A24
{
	if ((iParam0 - iParam1) > iParam2)
	{
		func_794((iParam0 - iParam2));
	}
	else if (iParam0 < iParam1)
	{
		func_794(iParam0);
	}
	else if (func_866() != iParam1)
	{
		func_794(iParam1);
	}
}

void func_991()//Position - 0x96A61
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	struct<4> Var8;
	
	if (iLocal_6810 == 1)
	{
		iLocal_6810 = 0;
	}
	if (iLocal_7594 || iLocal_6558 == 3)
	{
		switch (iLocal_6558)
		{
			case 0:
				iLocal_7597 = func_887("DIR_MNU", -1, 0);
				if (iLocal_7597)
				{
					if (iLocal_6564 == 3)
					{
						func_785(3, 0, -1);
					}
					else
					{
						func_785(2, 1, -1);
					}
					func_1003();
					iLocal_6558 = 1;
				}
				break;
			
			case 1:
				graphics::_get_screen_active_resolution(&iVar0, &iVar1);
				if (iVar0 != iLocal_9788 || iVar1 != iLocal_9789)
				{
					iLocal_9788 = iVar0;
					iLocal_9789 = iVar1;
					func_785(2, 1, -1);
				}
				if ((func_781() != 16 && func_781() != 13) && iLocal_9710 != 0)
				{
					if (iLocal_6560 > 1)
					{
						audio::play_sound_frontend(-1, "NAV_UP_DOWN", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
						iVar2 = iLocal_6561;
						iLocal_6561 = (iLocal_6561 + iLocal_9710);
						if (iLocal_6561 >= iLocal_6560)
						{
							iLocal_6561 = 0;
						}
						if (iLocal_6561 < 0)
						{
							iLocal_6561 = (iLocal_6561 + iLocal_6560);
						}
						iLocal_6563 = 0;
						iVar3 = func_866();
						func_122(iLocal_6561, 1, 1);
						func_785(2, 1, -1);
						if ((iLocal_6564 == 33 && iLocal_6561 == (22 - 2)) && iLocal_9710 <= -1)
						{
							func_794((iLocal_6561 - 8));
							iVar3 = func_866();
						}
						func_990(iLocal_6561, iVar3, 9);
						iLocal_7748 = 1;
						func_1002(iVar2);
						if (iLocal_7519)
						{
							iLocal_7519 = 0;
						}
					}
					func_382();
				}
				if (iLocal_9715 || iLocal_9716)
				{
					if (iLocal_6564 != 5)
					{
						if (func_790(2))
						{
							if (iLocal_6560 > 0)
							{
								if (iLocal_6561 == 0)
								{
									audio::play_sound_frontend(-1, "NAV_LEFT_RIGHT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
									if (iLocal_7697)
									{
										iLocal_7697 = false;
										func_753(0);
										func_785(2, 1, -1);
									}
									else
									{
										iLocal_7697 = true;
										func_753(0);
										func_785(2, 1, -1);
									}
								}
							}
						}
						if (func_1001(Local_6565[iLocal_6561 /*5*/], iLocal_6564) > 1)
						{
							if (iLocal_9715)
							{
								iLocal_6563 = (iLocal_6563 - 1);
							}
							if (iLocal_9716)
							{
								iLocal_6563++;
							}
							if (iLocal_6563 < 0)
							{
								iLocal_6563 = (func_1001(Local_6565[iLocal_6561 /*5*/], iLocal_6564) - 1);
							}
							if (iLocal_6563 >= func_1001(Local_6565[iLocal_6561 /*5*/], iLocal_6564))
							{
								iLocal_6563 = 0;
							}
							func_753(0);
							func_785(2, 1, -1);
						}
					}
					else
					{
						iVar4 = true;
						if (iLocal_6561 >= 6 && iLocal_6561 <= 12)
						{
							iVar4 = func_27(iLocal_6561);
						}
						if (iVar4)
						{
							if (iLocal_9715)
							{
								iLocal_7520[iLocal_6561] = (iLocal_7520[iLocal_6561] - 1);
							}
							if (iLocal_9716)
							{
								iLocal_7520[iLocal_6561]++;
							}
							iVar5 = func_866();
							audio::play_sound_frontend(-1, "NAV_LEFT_RIGHT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
							func_785(2, 1, -1);
							func_990(iLocal_6561, iVar5, 9);
							if (iLocal_6561 == 0)
							{
								func_1125(iLocal_7520[iLocal_6561]);
							}
							else if (iLocal_6561 == 1)
							{
								func_37(iLocal_7520[iLocal_6561]);
							}
						}
					}
				}
				if (iLocal_9717)
				{
					if ((((func_781() != 16 && func_781() != 14) && func_781() != 15) && func_781() != 13) && func_781() != 2)
					{
						if (iLocal_6564 == 5)
						{
							iLocal_9717 = 0;
						}
						else if (iLocal_6561 < Local_6565)
						{
							switch (func_1000(Local_6565[iLocal_6561 /*5*/]))
							{
								case 1:
									if (func_999() == entity::get_entity_model(player::player_ped_id()))
									{
										if (func_391(Local_6565[iLocal_6561 /*5*/]))
										{
											if (iLocal_6564 == 7)
											{
												iLocal_7676[4] = iLocal_6561;
												iLocal_7716 = iLocal_6561;
											}
											else
											{
												iLocal_7676[4] = 0;
											}
											audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
											func_172();
											entity::set_entity_health(player::player_ped_id(), entity::get_entity_max_health(player::player_ped_id()));
											if (!ped::is_ped_injured(player::player_ped_id()))
											{
												func_23();
												ped::set_ped_can_ragdoll(player::player_ped_id(), 1);
											}
											iLocal_6558 = 2;
										}
									}
									break;
								
								case 3:
								case 4:
									func_370(16, 1);
									iLocal_9717 = 0;
									break;
								
								case 2:
									iLocal_7697 = func_664(0);
									if (Local_6565[iLocal_6561 /*5*/] > 32)
									{
										if (func_751(&iVar6, iLocal_6561))
										{
											func_122(iVar6, 1, 1);
											iLocal_6561 = iVar6;
										}
									}
									audio::play_sound_frontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
									func_785(Local_6565[iLocal_6561 /*5*/], 0, -1);
									func_1002(-1);
									break;
								}
							}
						}
				}
				if (iLocal_9719)
				{
					if (((func_781() != 16 && func_781() != 14) && func_781() != 15) && func_781() != 13)
					{
						if (iLocal_6564 != 3)
						{
							audio::play_sound_frontend(-1, "BACK", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
							func_785(func_998(iLocal_6564), 0, -1);
							func_1002(-1);
						}
					}
				}
				if (iLocal_9720)
				{
					if (func_384() && func_391(Local_6565[iLocal_6561 /*5*/]))
					{
						audio::play_sound_frontend(-1, "NAV_LEFT_RIGHT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
						if (iLocal_6564 != 39)
						{
							func_994();
						}
						else
						{
							func_753(1);
						}
						ped::clear_ped_blood_damage(player::player_ped_id());
						func_382();
					}
				}
				if (iLocal_9723)
				{
					if (iLocal_6564 > 32 || iLocal_6564 == 8)
					{
						if (func_385(0) == -1 && Local_6565[iLocal_6561 /*5*/] > 32)
						{
							if (!iLocal_7753)
							{
								if (Local_6878[9 /*32*/] == 0)
								{
									iLocal_7519 = 1;
									if (iLocal_6806 == 0)
									{
										iLocal_6806 = Local_6565[iLocal_6561 /*5*/];
										uLocal_6807 = Local_6565[iLocal_6561 /*5*/].f_1;
									}
									func_662(iLocal_6806, uLocal_6807, 0, 1);
									func_382();
								}
								else
								{
									func_370(13, 0);
								}
							}
						}
					}
					else if (iLocal_6564 == 7)
					{
						if (func_109(0) > 0)
						{
							audio::play_sound_frontend(-1, "CANCEL", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0);
							func_791(iLocal_6561);
							iVar7 = (iLocal_6561 - 1);
							if (iVar7 < 0)
							{
								iVar7 = 0;
							}
							if (func_109(0) == 0)
							{
								func_785(3, 0, -1);
							}
							else
							{
								func_785(7, 1, iVar7);
							}
							func_1002(-1);
						}
					}
				}
				if (iLocal_6564 != 5)
				{
					if (iLocal_6564 == 3)
					{
						StringCopy(&Var8, func_153(Local_6565[iLocal_6561 /*5*/]), 32);
						StringConCat(&Var8, "HLP", 32);
						func_121(&Var8, 0, 0);
					}
					else
					{
						switch (iLocal_6564)
						{
							case 4:
								StringCopy(&Var8, func_153(Local_6565[iLocal_6561 /*5*/]), 32);
								StringConCat(&Var8, "HLP", 32);
								func_121(&Var8, 0, 0);
								break;
							
							case 39:
								func_121("CM_HEIHLP2", 0, 0);
								break;
							
							case 42:
								if (!(network::_0xEFFB25453D8600F9() || network::network_is_cloud_available()))
								{
									func_121("CM_NETCONHLP", 0, 0);
								}
								else if (!network::network_is_signed_online())
								{
									func_121("CM_ONLINEHLP", 0, 0);
								}
								else if (!(Local_7925[0 /*401*/].f_400 || Local_7925[1 /*401*/].f_400))
								{
									func_121("CM_NOCHARHLP", 0, 0);
								}
								break;
							
							default:
								if (!func_766(Local_6565[iLocal_6561 /*5*/]))
								{
									if (!func_993(Local_6565[iLocal_6561 /*5*/]) && !func_992(Local_6565[iLocal_6561 /*5*/]))
									{
										func_121("CM_WHLP01WV", 0, 0);
									}
									else
									{
										if (!func_993(Local_6565[iLocal_6561 /*5*/]))
										{
											func_121("CM_WHLP01", 0, 0);
										}
										if (!func_992(Local_6565[iLocal_6561 /*5*/]))
										{
											func_121("CM_WHLP01WPN", 0, 0);
										}
									}
								}
								break;
							}
					}
				}
				else
				{
					func_988(iLocal_6561);
				}
				if (iLocal_6558 != 3 && iLocal_6558 != 2)
				{
					graphics::_0xC6372ECD45D73BCD(1);
					graphics::_set_2d_layer(7);
					func_971();
					func_940(1, -1, 1, 0, 1, -1082130432, 1, 1);
					iLocal_7595 = 1;
				}
				break;
			
			case 3:
				if ((iLocal_6550 == 20 || iLocal_6550 == 9) || iLocal_6550 == 21)
				{
					iLocal_6558 = 1;
					if (iLocal_7747)
					{
						if (entity::does_entity_exist(iLocal_7749))
						{
							if (!entity::does_entity_belong_to_this_script(iLocal_7749, 0))
							{
								entity::set_entity_as_mission_entity(iLocal_7749, true, 1);
							}
							ped::delete_ped(&iLocal_7749);
						}
						else if (!ped::is_ped_injured(player::player_ped_id()))
						{
						}
						iLocal_7747 = false;
					}
				}
				break;
			
			case 2:
				func_365(1, -1);
				func_94(1);
				iLocal_7597 = 0;
				break;
		}
		ui::display_hud(false);
		ui::display_radar(false);
		if (controls::_0x6CD79468A1E595C6(2) && iLocal_6558 != 0)
		{
			func_382();
		}
	}
	else
	{
		if (iLocal_6558 != 0)
		{
			iLocal_7597 = 0;
			func_94(1);
			func_365(1, -1);
		}
		iLocal_6558 = 0;
	}
}

bool func_992(int iParam0)//Position - 0x97288
{
	var uVar0;
	
	if (!func_62(func_743(iParam0, 0, 0, &uVar0, 0)))
	{
		return false;
	}
	return true;
}

bool func_993(int iParam0)//Position - 0x972A8
{
	switch (iParam0)
	{
		case 221:
		case 309:
		case 222:
		case 223:
		case 218:
		case 90:
			return false;
			break;
	}
	return true;
}

void func_994()//Position - 0x972E3
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	
	if (iLocal_7748)
	{
		iLocal_9782 = -1;
		iLocal_9786 = 0;
		iLocal_9787 = 0;
	}
	if (iLocal_7745 == 0)
	{
		if (iLocal_6564 != 7 && iLocal_6564 != 8)
		{
			switch (iLocal_7755)
			{
				case joaat("player_zero"):
					iVar0 = func_997(0, 53);
					func_644(player::player_ped_id(), 12, iVar0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
					break;
				
				case joaat("player_one"):
					iVar0 = func_997(0, 47);
					func_644(player::player_ped_id(), 12, iVar0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
					break;
				
				case joaat("player_two"):
					iVar0 = func_997(0, 48);
					if (iVar0 == 12)
					{
						iVar0 = 12 + 1;
					}
					func_644(player::player_ped_id(), 12, iVar0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
					break;
				
				case joaat("ig_amandatownley"):
				case joaat("ig_beverly"):
				case joaat("ig_brad"):
				case joaat("ig_chrisformage"):
				case joaat("ig_davenorton"):
				case joaat("ig_devin"):
				case joaat("ig_denise"):
				case joaat("ig_drfriedlander"):
				case joaat("ig_fabien"):
				case joaat("ig_floyd"):
				case joaat("ig_jimmydisanto"):
				case joaat("ig_lamardavis"):
				case joaat("ig_lazlow"):
				case joaat("ig_lifeinvad_01"):
				case joaat("ig_lestercrest"):
				case joaat("ig_maude"):
				case joaat("ig_mrs_thornhill"):
				case joaat("ig_nervousron"):
				case joaat("ig_patricia"):
				case joaat("ig_siemonyetarian"):
				case joaat("ig_solomon"):
				case joaat("ig_stevehains"):
				case joaat("ig_stretch"):
				case joaat("ig_taocheng"):
				case joaat("ig_tanisha"):
				case joaat("ig_tracydisanto"):
				case joaat("ig_wade"):
				case joaat("u_m_y_zombie_01"):
				case joaat("u_f_o_moviestar"):
				case joaat("s_m_y_mime"):
				case joaat("u_m_y_mani"):
				case joaat("u_m_m_jesus_01"):
				case joaat("u_m_o_taphillbilly"):
				case joaat("s_m_m_strpreach_01"):
				case joaat("u_f_y_comjane"):
				case joaat("u_m_y_imporage"):
				case joaat("u_m_m_griff_01"):
				case joaat("u_m_y_militarybum"):
				case joaat("u_m_o_finguru_01"):
				case joaat("u_m_y_baygor"):
				case joaat("u_m_y_hippie_01"):
					iVar1 = func_995(iLocal_7755);
					iVar2 = func_997(0, iVar1 + 1);
					iVar3 = func_717(iLocal_7755);
					iVar4 = (iVar2 + iVar3);
					func_674(player::player_ped_id(), iVar4, &Local_8728, 1);
					break;
				
				case joaat("mp_m_freemode_01"):
				case joaat("mp_f_freemode_01"):
					break;
				
				case joaat("u_f_m_corpse_01"):
					iLocal_9781 = func_997(0, 2);
					switch (iLocal_9781)
					{
						case 0:
							func_397(player::player_ped_id(), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
							func_673(player::player_ped_id(), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
							break;
						
						case 1:
							func_397(player::player_ped_id(), 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
							func_673(player::player_ped_id(), 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0);
							break;
					}
					break;
				
				case joaat("s_m_m_movalien_01"):
					func_397(player::player_ped_id(), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
					break;
				
				case joaat("u_m_y_rsranger_01"):
					func_397(player::player_ped_id(), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
					break;
				
				case joaat("s_m_y_fireman_01"):
					iLocal_9781 = gameplay::get_random_int_in_range(0, 2);
					ped::set_ped_component_variation(player::player_ped_id(), 8, iLocal_9781, 0, 0);
					iLocal_9781 = func_997(0, 2);
					switch (iLocal_9781)
					{
						case 0:
							func_673(player::player_ped_id(), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
							break;
						
						case 1:
							func_673(player::player_ped_id(), 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0);
							break;
					}
					break;
				
				case joaat("ig_orleans"):
					ped::set_ped_component_variation(player::player_ped_id(), 7, 1, 0, 0);
					ped::set_ped_component_variation(player::player_ped_id(), 0, 1, 1, 0);
					break;
				
				case joaat("u_m_m_spyactor"):
					func_397(player::player_ped_id(), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
					break;
				
				default:
					if (iLocal_7745 == 0)
					{
						ped::set_ped_random_component_variation(player::player_ped_id(), 0);
						func_396(iLocal_7755);
					}
					break;
			}
			func_671();
			func_669();
			func_666();
			func_665();
		}
		else
		{
			if (iLocal_6564 == 7)
			{
				func_672(iLocal_6561);
			}
			else
			{
				func_672(iLocal_6561 + 10);
			}
			func_671();
			func_669();
			func_666();
			func_665();
		}
	}
	else if (iLocal_6564 != 7 && iLocal_6564 != 8)
	{
		ped::set_ped_component_variation(player::player_ped_id(), 1, 1, 0, 0);
	}
	else
	{
		if (iLocal_6564 == 7)
		{
			func_672(iLocal_6561);
		}
		else
		{
			func_672(iLocal_6561 + 10);
		}
		func_671();
		func_669();
		func_666();
		func_665();
	}
	func_661();
	iLocal_7748 = 0;
}

int func_995(int iParam0)//Position - 0x976E7
{
	int iVar0;
	int iVar1;
	
	iVar1 = -1;
	iVar0 = 0;
	while (iVar0 < 109)
	{
		if (func_996(iVar0, iParam0))
		{
			iVar1++;
		}
		iVar0++;
	}
	return iVar1;
}

bool func_996(int iParam0, int iParam1)//Position - 0x97718
{
	switch (iParam1)
	{
		case joaat("ig_amandatownley"):
			switch (iParam0)
			{
				case 1:
				case 0:
				case 2:
				case 4:
				case 6:
				case 7:
				case 8:
				case 5:
				case 3:
				case 9:
				case 10:
				case 11:
				case 12:
					return true;
					break;
			}
			break;
		
		case joaat("ig_beverly"):
			switch (iParam0)
			{
				case 13:
					return true;
					break;
			}
			break;
		
		case joaat("ig_brad"):
			switch (iParam0)
			{
				case 14:
				case 15:
					return true;
					break;
			}
			break;
		
		case joaat("ig_chrisformage"):
			switch (iParam0)
			{
				case 16:
					return true;
					break;
			}
			break;
		
		case joaat("ig_davenorton"):
			switch (iParam0)
			{
				case 17:
				case 18:
				case 19:
				case 20:
					return true;
					break;
			}
			break;
		
		case joaat("ig_devin"):
			switch (iParam0)
			{
				case 21:
				case 22:
				case 23:
				case 24:
					return true;
					break;
			}
			break;
		
		case joaat("ig_denise"):
			switch (iParam0)
			{
				case 26:
				case 25:
					return true;
					break;
			}
			break;
		
		case joaat("ig_drfriedlander"):
			switch (iParam0)
			{
				case 27:
				case 28:
					return true;
					break;
			}
			break;
		
		case joaat("ig_fabien"):
			switch (iParam0)
			{
				case 29:
				case 30:
					return true;
					break;
			}
			break;
		
		case joaat("ig_floyd"):
			switch (iParam0)
			{
				case 33:
				case 34:
				case 32:
				case 31:
					return true;
					break;
			}
			break;
		
		case joaat("ig_jimmydisanto"):
			switch (iParam0)
			{
				case 35:
				case 36:
				case 37:
				case 38:
				case 39:
				case 40:
				case 41:
				case 42:
				case 43:
				case 44:
					return true;
					break;
			}
			break;
		
		case joaat("ig_lamardavis"):
			switch (iParam0)
			{
				case 45:
				case 46:
				case 47:
				case 48:
				case 49:
				case 50:
				case 51:
					return true;
					break;
			}
			break;
		
		case joaat("ig_lazlow"):
			switch (iParam0)
			{
				case 52:
				case 53:
					return true;
					break;
			}
			break;
		
		case joaat("ig_lestercrest"):
			switch (iParam0)
			{
				case 54:
				case 55:
					return true;
					break;
			}
			break;
		
		case joaat("ig_maude"):
			switch (iParam0)
			{
				case 56:
					return true;
					break;
			}
			break;
		
		case joaat("ig_mrs_thornhill"):
			switch (iParam0)
			{
				case 57:
					return true;
					break;
			}
			break;
		
		case joaat("ig_nervousron"):
			switch (iParam0)
			{
				case 58:
					return true;
					break;
			}
			break;
		
		case joaat("ig_patricia"):
			switch (iParam0)
			{
				case 59:
					return true;
					break;
			}
			break;
		
		case joaat("ig_lifeinvad_01"):
			switch (iParam0)
			{
				case 60:
					return true;
					break;
			}
			break;
		
		case joaat("ig_siemonyetarian"):
			switch (iParam0)
			{
				case 61:
				case 62:
				case 63:
					return true;
					break;
			}
			break;
		
		case joaat("ig_solomon"):
			switch (iParam0)
			{
				case 64:
					return true;
					break;
			}
			break;
		
		case joaat("ig_stevehains"):
			switch (iParam0)
			{
				case 65:
				case 66:
				case 67:
				case 68:
					return true;
					break;
			}
			break;
		
		case joaat("ig_stretch"):
			switch (iParam0)
			{
				case 69:
					return true;
					break;
			}
			break;
		
		case joaat("ig_tanisha"):
			switch (iParam0)
			{
				case 70:
					return true;
					break;
			}
			break;
		
		case joaat("ig_taocheng"):
			switch (iParam0)
			{
				case 71:
				case 72:
					return true;
					break;
			}
			break;
		
		case joaat("ig_tracydisanto"):
			switch (iParam0)
			{
				case 73:
				case 82:
				case 78:
				case 79:
				case 85:
				case 86:
				case 74:
				case 75:
				case 77:
				case 76:
				case 81:
				case 83:
				case 80:
				case 84:
					return true;
					break;
			}
			break;
		
		case joaat("ig_wade"):
			switch (iParam0)
			{
				case 89:
				case 87:
				case 88:
					return true;
					break;
			}
			break;
		
		case joaat("u_m_y_hippie_01"):
			switch (iParam0)
			{
				case 91:
					return true;
					break;
			}
			break;
		
		case joaat("u_m_y_baygor"):
			switch (iParam0)
			{
				case 92:
					return true;
					break;
			}
			break;
		
		case joaat("u_m_o_finguru_01"):
			switch (iParam0)
			{
				case 93:
					return true;
					break;
			}
			break;
		
		case joaat("u_m_y_militarybum"):
			switch (iParam0)
			{
				case 94:
					return true;
					break;
			}
			break;
		
		case joaat("u_m_m_griff_01"):
			switch (iParam0)
			{
				case 95:
					return true;
					break;
			}
			break;
		
		case joaat("u_m_y_imporage"):
			switch (iParam0)
			{
				case 96:
					return true;
					break;
			}
			break;
		
		case joaat("u_f_y_comjane"):
			switch (iParam0)
			{
				case 97:
				case 98:
				case 99:
					return true;
					break;
			}
			break;
		
		case joaat("s_m_m_strpreach_01"):
			switch (iParam0)
			{
				case 100:
					return true;
					break;
			}
			break;
		
		case joaat("u_m_o_taphillbilly"):
			switch (iParam0)
			{
				case 101:
					return true;
					break;
			}
			break;
		
		case joaat("u_m_m_jesus_01"):
			switch (iParam0)
			{
				case 102:
					return true;
					break;
			}
			break;
		
		case joaat("u_m_y_mani"):
			switch (iParam0)
			{
				case 103:
					return true;
					break;
			}
			break;
		
		case joaat("s_m_y_mime"):
			switch (iParam0)
			{
				case 104:
					return true;
					break;
			}
			break;
		
		case joaat("u_f_o_moviestar"):
			switch (iParam0)
			{
				case 105:
					return true;
					break;
			}
			break;
		
		case joaat("u_m_y_zombie_01"):
			switch (iParam0)
			{
				case 106:
					return true;
					break;
			}
			break;
		
		case joaat("mp_m_freemode_01"):
		case joaat("mp_f_freemode_01"):
			switch (iParam0)
			{
				case 107:
				case 108:
					return true;
					break;
			}
			break;
	}
	return false;
}

int func_997(int iParam0, int iParam1)//Position - 0x97D7C
{
	int iVar0[64];
	int iVar65;
	int iVar66;
	int iVar67;
	int iVar68;
	int iVar69;
	
	iVar65 = ((iParam1 - iParam0) - 1);
	iVar66 = 0;
	while (iVar66 <= iVar65)
	{
		if (iVar66 < 32)
		{
			if (!gameplay::is_bit_set(iLocal_9786, iVar66))
			{
				iVar0[iVar67] = iVar66;
				iVar67++;
			}
		}
		else if (!gameplay::is_bit_set(iLocal_9787, (iVar66 - 32)))
		{
			iVar0[iVar67] = iVar66;
			iVar67++;
		}
		iVar66++;
	}
	if (iVar67 == 0)
	{
		iLocal_9786 = 0;
		iLocal_9787 = 0;
		iVar68 = gameplay::get_random_int_in_range(0, iVar65);
		if (iVar68 == iLocal_9782)
		{
			iVar68++;
			if (iVar68 >= iVar65)
			{
				iVar68 = 0;
			}
		}
		iVar0[iVar68] = iVar68;
		iVar69 = (iVar68 + iParam0);
	}
	else
	{
		iVar68 = gameplay::get_random_int_in_range(0, iVar67);
		iVar69 = (iVar0[iVar68] + iParam0);
	}
	if (iVar0[iVar68] < 32)
	{
		gameplay::set_bit(&iLocal_9786, iVar0[iVar68]);
	}
	else
	{
		gameplay::set_bit(&iLocal_9787, (iVar0[iVar68] - 32));
	}
	iLocal_9782 = iVar0[iVar68];
	return iVar69;
}

int func_998(int iParam0)//Position - 0x97E74
{
	switch (iParam0)
	{
		case 4:
			return 3;
			break;
		
		case 5:
			return 3;
			break;
		
		case 7:
			return 3;
			break;
		
		case 8:
			return 3;
			break;
		
		default:
			return 4;
			break;
	}
	return 4;
}

int func_999()//Position - 0x97EBF
{
	if (streaming::is_model_valid(iLocal_7754))
	{
		return iLocal_7754;
	}
	else if (streaming::is_model_valid(iLocal_7755))
	{
		return iLocal_7755;
	}
	return 0;
}

int func_1000(int iParam0)//Position - 0x97EEB
{
	if (iParam0 > 81)
	{
		return 1;
	}
	else if (iParam0 > 32 && iParam0 < 80)
	{
		return 2;
	}
	else
	{
		switch (iParam0)
		{
			case 9:
				if (func_80() != 17 && func_80() != 18)
				{
					return 3;
				}
				break;
			
			case 10:
				return 4;
				break;
			
			case 11:
				return 1;
				break;
			
			case 7:
				if (func_109(0) > 0)
				{
					return 2;
				}
				break;
			
			case 8:
				if (func_109(1) > 0)
				{
					return 2;
				}
				break;
			
			case 4:
			case 5:
				return 2;
				break;
			
			default:
				return 0;
				break;
			}
	}
	return 0;
}

var func_1001(int iParam0, int iParam1)//Position - 0x97FA5
{
	var uVar0;
	int iVar1;
	
	if (iParam1 == 33)
	{
		func_743(iParam0, 2, iVar1, &uVar0, 0);
	}
	else if (iLocal_7697)
	{
		func_743(iParam0, 0, iVar1, &uVar0, 0);
	}
	else
	{
		func_743(iParam0, 1, iVar1, &uVar0, 0);
	}
	return uVar0;
}

void func_1002(int iParam0)//Position - 0x97FE9
{
	iParam0 = iParam0;
	if (iLocal_6564 == 5)
	{
	}
	else if ((iLocal_6550 == 20 || iLocal_6550 == 9) || iLocal_6550 == 21)
	{
		if (func_780(Local_6565[iLocal_6561 /*5*/]) && iLocal_6550 != 21)
		{
			if (iLocal_6550 == 9)
			{
				iLocal_7747 = true;
			}
			iLocal_6558 = 3;
			func_774(18);
		}
		if (func_779(Local_6565[iLocal_6561 /*5*/]) && iLocal_6550 != 20)
		{
			if (iLocal_6550 == 9)
			{
				iLocal_7747 = true;
			}
			iLocal_6558 = 3;
			func_774(19);
		}
		if ((!func_766(Local_6565[iLocal_6561 /*5*/]) && Local_6565[iLocal_6561 /*5*/] > 81) && iLocal_6550 != 9)
		{
			iLocal_7747 = true;
			iLocal_6558 = 3;
			func_774(22);
		}
	}
}

void func_1003()//Position - 0x980BA
{
	if (gameplay::is_pc_version())
	{
		controls::_0xFC695459D4D0E219(0.325f, 0.3f);
	}
}

void func_1004()//Position - 0x980D8
{
	int iVar0;
	float fVar1;
	
	if (iLocal_6810 != 1 || iLocal_9745)
	{
		return;
	}
	fVar1 = 0.045f;
	if (iLocal_7587)
	{
		fVar1 = 1f;
		if (iLocal_220 == 1 && Global_2566787 == 3)
		{
			fVar1 = 0.2f;
		}
		else if (iLocal_220 == 2)
		{
			fVar1 = 0.04f;
		}
	}
	iVar0 = func_70(fVar1);
	if (!func_69())
	{
		return;
	}
	if (Global_2566787 > -1)
	{
		if (Global_2566787 == Local_5662.f_90)
		{
			if (iVar0 == -1)
			{
				iLocal_9715 = true;
			}
			if (iVar0 == 1)
			{
				iLocal_9716 = true;
			}
			if (iVar0 == -999)
			{
				iLocal_9717 = 1;
			}
			if (((Local_5662.f_90 < 1 || Local_5662.f_90 >= 5) && (iLocal_5754 == 0 || iLocal_5754 == 1)) && !iLocal_7587)
			{
				iLocal_9717 = 1;
			}
		}
		iLocal_9710 = (Global_2566787 - Local_5662.f_90);
		return;
	}
	if (Global_2566787 == -3)
	{
		iLocal_9710 = 1;
		return;
	}
	if (Global_2566787 == -2)
	{
		iLocal_9710 = -1;
		return;
	}
}

void func_1005()//Position - 0x981DF
{
	int iVar0;
	
	iVar0 = func_70(0.045f);
	if (iLocal_6810 != 0)
	{
		return;
	}
	iVar0 = func_70(0.045f);
	if (!func_69())
	{
		return;
	}
	if (Global_2566787 > -1)
	{
		if (Global_2566787 == iLocal_6561)
		{
			if (iVar0 == -1)
			{
				iLocal_9715 = true;
			}
			if (iVar0 == 1)
			{
				iLocal_9716 = true;
			}
			if (func_790(2) && iLocal_6561 == 0)
			{
				return;
			}
			if ((iLocal_6564 == 3 || iLocal_6564 == 4) || iLocal_6564 == 8)
			{
				iLocal_9717 = 1;
				return;
			}
			if (iLocal_6564 == 5)
			{
				iLocal_9717 = 0;
				return;
			}
			if (iLocal_6561 < Local_6565)
			{
				if (Local_6565[iLocal_6561 /*5*/] > 81)
				{
					iLocal_9717 = 1;
					return;
				}
			}
			if (iVar0 == -999)
			{
				iLocal_9717 = 1;
			}
			iLocal_9710 = 0;
			return;
		}
		iLocal_9710 = (Global_2566787 - iLocal_6561);
		return;
	}
	if (Global_2566787 == -3)
	{
		iLocal_9710 = 1;
		return;
	}
	if (Global_2566787 == -2)
	{
		iLocal_9710 = -1;
		return;
	}
}

void func_1006()//Position - 0x982E1
{
	int iVar0;
	int iVar1;
	var uVar2;
	var uVar3;
	int iVar4;
	vector3 vVar5;
	vector3 vVar8;
	int iVar11;
	
	iLocal_9745 = false;
	if (func_781() == 5)
	{
		if (controls::_is_input_disabled(0))
		{
			if (controls::is_disabled_control_pressed(0, iLocal_7663))
			{
				iLocal_9745 = true;
			}
		}
	}
	if (iLocal_7595 && !iLocal_9745)
	{
		func_1011(0, 0, 0, 1);
		func_1010(0, -1, 1);
		iLocal_7595 = 0;
	}
	if (player::is_special_ability_unlocked(entity::get_entity_model(player::player_ped_id())))
	{
		player::special_ability_lock(entity::get_entity_model(player::player_ped_id()));
	}
	if (func_781() != 5)
	{
		controls::disable_control_action(2, 199, 1);
		controls::disable_control_action(2, 200, 1);
	}
	if (gameplay::get_game_timer() < iLocal_9742)
	{
		controls::disable_control_action(2, 200, 1);
	}
	if (func_781() == 2 || func_781() == 3)
	{
		controls::disable_control_action(0, 19, 1);
	}
	iLocal_9723 = false;
	if (controls::is_control_just_pressed(2, 204))
	{
		iLocal_9723 = true;
	}
	iLocal_9720 = 0;
	if (controls::is_control_just_pressed(2, 203))
	{
		iLocal_9720 = 1;
	}
	iLocal_9719 = false;
	if (((controls::is_disabled_control_just_pressed(2, iLocal_7660) || controls::is_disabled_control_just_pressed(2, 238)) || func_1009()) && !iLocal_9732)
	{
		iLocal_9719 = true;
	}
	iLocal_9717 = 0;
	if (controls::is_disabled_control_just_pressed(2, 201) || func_1008())
	{
		iLocal_9717 = 1;
	}
	func_1007(&iVar0, &iVar1, &uVar2, &uVar3, 1);
	iLocal_9710 = 0;
	if (!iLocal_5943 && cam::is_screen_faded_in())
	{
		if (controls::is_disabled_control_pressed(2, 241))
		{
			iLocal_9710 = (iLocal_9710 + -1);
		}
		if (controls::is_disabled_control_pressed(2, 242))
		{
			iLocal_9710++;
		}
		if (controls::is_disabled_control_pressed(2, iLocal_7657))
		{
			iLocal_9710 = (iLocal_9710 - 1);
		}
		if (controls::is_disabled_control_pressed(2, iLocal_7658))
		{
			iLocal_9710++;
		}
		if (iLocal_7596 == 0)
		{
			if (iVar1 < -100)
			{
				iLocal_9710 = (iLocal_9710 + -1);
			}
			if (iVar1 > 100)
			{
				iLocal_9710++;
			}
		}
	}
	if (iLocal_9710 != 0)
	{
		if (iLocal_9712 != iLocal_9710)
		{
			iLocal_9712 = iLocal_9710;
			iLocal_9713 = 0;
			iLocal_9711 = gameplay::get_game_timer();
		}
		else
		{
			iVar4 = 250;
			if (iLocal_9713 > 3)
			{
				iVar4 = 100;
			}
			if (gameplay::get_game_timer() > (iLocal_9711 + iVar4))
			{
				iLocal_9713++;
				iLocal_9711 = gameplay::get_game_timer();
			}
			else
			{
				iLocal_9710 = 0;
			}
		}
		if (iLocal_9710 > 1)
		{
			iLocal_9710 = 1;
		}
		if (iLocal_9710 < -1)
		{
			iLocal_9710 = -1;
		}
	}
	else
	{
		iLocal_9712 = 0;
	}
	iLocal_9722 = 0;
	if (!controls::_is_input_disabled(0))
	{
		if (controls::is_disabled_control_pressed(0, 244))
		{
			iLocal_9722 = 1;
		}
		else if (iLocal_7695)
		{
			iLocal_7695 = 0;
		}
	}
	else if (controls::is_disabled_control_just_pressed(0, 244))
	{
		iLocal_9722 = 1;
		iLocal_7694 = 1;
	}
	else if (iLocal_7695)
	{
		iLocal_7695 = 0;
	}
	iLocal_9715 = false;
	iLocal_9716 = false;
	if (iLocal_6555 != 5)
	{
		if (iVar0 < -100)
		{
			if (!iLocal_9721)
			{
				iLocal_9715 = true;
				iLocal_9721 = 1;
			}
		}
		else if (iVar0 > 100)
		{
			if (!iLocal_9721)
			{
				iLocal_9716 = true;
				iLocal_9721 = 1;
			}
		}
		else
		{
			iLocal_9721 = 0;
		}
	}
	if (controls::is_disabled_control_just_pressed(2, iLocal_7655))
	{
		iLocal_9715 = true;
	}
	if (controls::is_disabled_control_just_pressed(2, iLocal_7656))
	{
		iLocal_9716 = true;
	}
	iLocal_9728 = false;
	if (controls::_is_input_disabled(2))
	{
		if (controls::is_disabled_control_just_pressed(2, func_383()))
		{
			iLocal_7638 = !iLocal_7638;
		}
	}
	else
	{
		if (controls::is_disabled_control_pressed(2, func_383()))
		{
			iLocal_9728 = true;
		}
		iLocal_7638 = 0;
	}
	if (iLocal_7638 == 1)
	{
		iLocal_9728 = true;
	}
	iLocal_9724 = false;
	iLocal_9725 = false;
	iLocal_9726 = false;
	iLocal_9733 = 0;
	iLocal_9734 = 0;
	iLocal_9727 = false;
	iLocal_9729 = false;
	if ((controls::_is_input_disabled(2) && controls::is_control_pressed(2, 171)) || ((((!controls::_is_input_disabled(2) && controls::is_control_pressed(2, 209)) && controls::is_control_pressed(2, 210)) && !audio::is_any_speech_playing(player::player_ped_id())) && iLocal_5754 != 3))
	{
		iLocal_9724 = true;
		if (iLocal_9738 == 0)
		{
			if (!func_178())
			{
				if (iLocal_9739 == 0)
				{
					iLocal_9739 = gameplay::get_game_timer() + 500;
					iLocal_9738 = 1;
				}
			}
		}
		else if (iLocal_9738 == 2)
		{
			iLocal_9738 = 0;
			if (gameplay::get_game_timer() < iLocal_9739)
			{
				iLocal_9729 = true;
			}
			iLocal_9739 = 0;
		}
	}
	else if (iLocal_9738 == 1)
	{
		if (gameplay::get_game_timer() < iLocal_9739)
		{
			iLocal_9738 = 2;
		}
		else
		{
			iLocal_9738 = 0;
			iLocal_9739 = 0;
			iLocal_9729 = false;
		}
	}
	if (!func_178())
	{
		if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
		{
			if (controls::is_disabled_control_pressed(0, 86))
			{
				iLocal_7751 = gameplay::get_frame_count();
			}
		}
		else if (controls::is_disabled_control_pressed(0, 36))
		{
			iLocal_7751 = gameplay::get_frame_count();
		}
	}
	if (iLocal_7751 != 0)
	{
		if (iLocal_9724 == 1)
		{
			iLocal_7751 = 0;
		}
		else if ((gameplay::get_frame_count() - iLocal_7751) > 10)
		{
			if (!func_178())
			{
				iLocal_9725 = true;
			}
			iLocal_7751 = 0;
		}
	}
	if (iLocal_7596)
	{
		switch (iLocal_5754)
		{
			case 0:
				switch (Local_5662.f_90)
				{
					case 1:
						if (controls::is_disabled_control_just_pressed(2, 204))
						{
							iLocal_9727 = true;
						}
						if (controls::is_disabled_control_just_pressed(2, iLocal_7661))
						{
							vVar5 = { Local_9128[iLocal_9639[iLocal_7676[1]] /*17*/] };
							iVar11 = ui::is_waypoint_active();
							if (iVar11)
							{
								vVar8 = { ui::get_blip_coords(ui::get_first_blip_info_id(ui::_get_blip_info_id_iterator())) };
							}
							else
							{
								iLocal_9737 = -1;
							}
							if (iVar11 && (iLocal_9737 == iLocal_7676[1] || func_9(vVar5, vVar8, 0.5f, 1)))
							{
								iLocal_9734 = 1;
							}
							else
							{
								iLocal_9733 = 1;
							}
						}
						break;
					
					case 4:
						if ((func_105(func_106(iLocal_7676[Local_5662.f_90])) && !func_104(func_106(iLocal_7676[Local_5662.f_90]), iLocal_7716)) && iLocal_9717)
						{
							iLocal_9718 = 1;
						}
						break;
				}
				break;
			}
	}
	if (iLocal_9724 == 1)
	{
		controls::disable_control_action(2, 26, 1);
	}
	if (iLocal_6550 != 15 && iLocal_6555 == 3)
	{
		player::set_player_control(player::player_id(), false, 0);
		ped::set_ped_can_ragdoll(player::player_ped_id(), 0);
	}
}

void func_1007(var uParam0, var uParam1, var uParam2, var uParam3, int iParam4)//Position - 0x98869
{
	*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_1008()//Position - 0x9893E
{
	if (controls::_is_input_disabled(2))
	{
		if (((controls::is_disabled_control_just_pressed(2, 176) && !controls::is_disabled_control_just_pressed(2, 237)) && !controls::is_disabled_control_just_pressed(2, 238)) && !network::_network_is_text_chat_active())
		{
			return true;
		}
	}
	else if (controls::is_disabled_control_just_pressed(2, 176))
	{
		return true;
	}
	return false;
}

bool func_1009()//Position - 0x98992
{
	if (controls::_is_input_disabled(2))
	{
		if (((controls::is_disabled_control_just_pressed(2, 177) && !controls::is_disabled_control_just_pressed(2, 237)) && !controls::is_disabled_control_just_pressed(2, 238)) && !network::_network_is_text_chat_active())
		{
			return true;
		}
	}
	else if (controls::is_disabled_control_just_pressed(2, 177))
	{
		return true;
	}
	return false;
}

bool func_1010(int iParam0, int iParam1, int iParam2)//Position - 0x989E6
{
	if (!controls::_is_input_disabled(2))
	{
		return false;
	}
	if (ui::is_pause_menu_active() || ui::is_warning_message_active())
	{
		return false;
	}
	if (iParam2)
	{
		ui::_show_cursor_this_frame();
	}
	if (Global_2566787 == -6)
	{
		ui::_set_cursor_sprite(4);
		if (iParam0 && controls::is_control_pressed(2, 237))
		{
			return true;
		}
		else
		{
			Global_2566787 = -1;
			return false;
		}
	}
	if (((Global_2566787 > -1 || Global_2566787 == -3) || Global_2566787 == -2) || ui::_0x3D9ACB1EB139E702())
	{
		ui::_set_cursor_sprite(1);
		return false;
	}
	if (Global_2566787 == -1 && iParam0)
	{
		if (controls::is_control_pressed(2, 237))
		{
			ui::_set_cursor_sprite(4);
			Global_2566787 = -6;
			return true;
		}
		else
		{
			ui::_set_cursor_sprite(3);
			return false;
		}
	}
	ui::_set_cursor_sprite(1);
	return false;
}

void func_1011(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x98AC6
{
	float fVar0;
	float fVar1;
	float fVar2;
	float fVar3;
	float fVar4;
	float fVar5;
	float fVar6;
	float fVar7;
	float fVar8;
	float fVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	
	fVar6 = (0.034722f / 2f);
	iVar13 = -1;
	if (!controls::_is_input_disabled(2))
	{
		Global_2566787 = -1;
		return;
	}
	controls::_0x5B73C77D9EB66E24(1);
	fVar0 = Global_17254;
	fVar2 = (fVar0 + Global_17256);
	fVar3 = Global_17257.f_5600;
	fVar1 = (Global_17257.f_5600 - (IntToFloat(Global_17257.f_5602) * 0.034722f));
	if (iParam2)
	{
		fVar3 = (fVar3 + 0.034722f);
		fVar1 = (fVar1 + 0.034722f);
	}
	if (Global_17257.f_5602 < 1)
	{
		fVar1 = (Global_17257.f_5600 - 0.034722f);
	}
	graphics::_set_screen_draw_position(76, 84);
	graphics::_0xF5A2C681787E579D(-0.05f, -0.05f, 0f, 0f);
	fVar4 = fVar0;
	fVar5 = fVar1;
	graphics::_0x6DD8F5AA635EB4B2(fVar0, fVar1, &fVar0, &fVar1);
	graphics::_0x6DD8F5AA635EB4B2(fVar2, fVar3, &fVar2, &fVar3);
	graphics::_0xE3A3DB414A373DAB();
	func_1013();
	if (Global_2566787 == -6)
	{
		return;
	}
	Global_2566787 = -1;
	fVar7 = Global_2566781;
	fVar8 = Global_2566782;
	if (Global_17257.f_5603 > Global_17257.f_5602)
	{
		if (((Global_2566781 >= fVar0 && Global_2566781 <= fVar2) && Global_2566782 >= fVar3) && Global_2566782 < (fVar3 + fVar6))
		{
			Global_2566787 = -2;
			if (iParam3)
			{
				func_1012(0);
			}
			return;
		}
		if (((Global_2566781 >= fVar0 && Global_2566781 <= fVar2) && Global_2566782 >= (fVar3 + fVar6)) && Global_2566782 < (fVar3 + 0.034722f))
		{
			Global_2566787 = -3;
			if (iParam3)
			{
				func_1012(0);
			}
			return;
		}
	}
	if (((fVar7 >= fVar0 && fVar7 <= fVar2) && fVar8 >= fVar1) && fVar8 <= fVar3)
	{
		fVar9 = (fVar8 - fVar1);
		iVar13 = system::floor((fVar9 / 0.034722f));
		if (Global_17257.f_5603 == -1)
		{
			Global_2566787 = 0;
			iVar13 = 0;
			return;
		}
		iVar11 = 148;
		iVar12 = (iVar11 / Global_17257.f_5602);
		iVar10 = (32 + (iVar11 - (iVar12 * iVar13)));
		if (iParam3)
		{
			if (!iParam1 || iVar13 != 0)
			{
				graphics::_set_screen_draw_position(76, 84);
				graphics::_0xF5A2C681787E579D(-0.05f, -0.05f, 0f, 0f);
				func_957(fVar4, (fVar5 + (IntToFloat(iVar13) * 0.034722f)), Global_17256, (0.034722f - 0.0015f), 255, 255, 255, iVar10);
				graphics::_0xE3A3DB414A373DAB();
			}
		}
		Global_2566787 = Global_17257.f_7520[iVar13];
		return;
	}
	if (!iParam0)
	{
		if (fVar7 < fVar2)
		{
			Global_2566787 = -4;
			return;
		}
		if (fVar8 > 0.9f)
		{
			Global_2566787 = -5;
			return;
		}
	}
	else if (fVar7 < fVar2 && fVar8 < (fVar3 + 0.25f))
	{
		Global_2566787 = -4;
		return;
	}
	Global_2566787 = -1;
}

void func_1012(int iParam0)//Position - 0x98D72
{
	float fVar0;
	float fVar1;
	float fVar2;
	int iVar3;
	
	fVar2 = (0.034722f / 2f);
	if (iParam0)
	{
		iVar3 = 48;
	}
	else
	{
		iVar3 = 210;
	}
	fVar0 = Global_17254;
	fVar1 = Global_17257.f_5600;
	graphics::_set_screen_draw_position(76, 84);
	graphics::_0xF5A2C681787E579D(-0.05f, -0.05f, 0f, 0f);
	if (Global_2566787 == -2)
	{
		func_957(fVar0, fVar1, Global_17256, fVar2, 255, 255, 255, iVar3);
	}
	else if (Global_2566787 == -3)
	{
		func_957(fVar0, (fVar1 + fVar2), Global_17256, fVar2, 255, 255, 255, iVar3);
	}
	graphics::_0xE3A3DB414A373DAB();
}

void func_1013()//Position - 0x98DFB
{
	Global_2566783 = Global_2566781;
	Global_2566784 = Global_2566782;
	Global_2566781 = controls::get_disabled_control_normal(2, 239);
	Global_2566782 = controls::get_disabled_control_normal(2, 240);
	Global_2566785 = (Global_2566781 - Global_2566783);
	Global_2566786 = (Global_2566782 - Global_2566784);
}

void func_1014()//Position - 0x98E43
{
	if (controls::_is_input_disabled(2))
	{
		iLocal_7655 = 174;
		iLocal_7656 = 175;
		iLocal_7657 = 172;
		iLocal_7658 = 173;
		iLocal_7659 = 176;
		iLocal_7660 = 202;
		iLocal_7661 = 51;
		iLocal_7662 = 51;
	}
	else
	{
		iLocal_7655 = 189;
		iLocal_7656 = 190;
		iLocal_7657 = 188;
		iLocal_7658 = 187;
		iLocal_7659 = 201;
		iLocal_7660 = 202;
		iLocal_7661 = 203;
		iLocal_7662 = 203;
	}
	if (iLocal_9745 != iLocal_9746 || controls::_0x6CD79468A1E595C6(0))
	{
		func_170(-1);
		func_100();
		iLocal_9746 = iLocal_9745;
	}
}

void func_1015()//Position - 0x98ECA
{
	func_1016();
	if (iLocal_6555 == 5 && func_737() == 15)
	{
		if (gameplay::is_bit_set(iLocal_9771, 14))
		{
			if (iLocal_9681 || system::vdist2(entity::get_entity_coords(player::player_ped_id(), 1), -1031.02f, -399.0387f, 37.4325f) < 40f)
			{
				gameplay::set_bit(&iLocal_9772, 3);
			}
		}
		else
		{
			iLocal_9772 = iLocal_9771;
		}
	}
	else if (gameplay::is_bit_set(iLocal_9771, 14))
	{
		if (iLocal_9681)
		{
			gameplay::set_bit(&iLocal_9772, 3);
		}
	}
}

void func_1016()//Position - 0x98F52
{
	int iVar0;
	
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		iLocal_9771 = 0;
		iLocal_9681 = false;
		if (iLocal_6559 == 1)
		{
			gameplay::set_bit(&iLocal_9771, 8);
		}
		if (unk1::_is_recording())
		{
			gameplay::set_bit(&iLocal_9771, 9);
		}
		if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
		{
			gameplay::set_bit(&iLocal_9771, 1);
		}
		if (entity::is_entity_in_water(player::player_ped_id()) && !func_1021(player::player_ped_id(), 0))
		{
			gameplay::set_bit(&iLocal_9771, 3);
		}
		if (func_1021(player::player_ped_id(), 0))
		{
			gameplay::set_bit(&iLocal_9771, 4);
		}
		if (((entity::is_entity_in_air(player::player_ped_id()) || (ped::is_ped_in_flying_vehicle(player::player_ped_id()) && entity::is_entity_in_air(ped::get_vehicle_ped_is_in(player::player_ped_id(), 0)))) || func_1020()) || player::is_player_climbing(player::player_id()))
		{
			gameplay::set_bit(&iLocal_9771, 5);
		}
		if (ped::is_ped_on_vehicle(player::player_ped_id()))
		{
			gameplay::set_bit(&iLocal_9771, 6);
		}
		if (player::is_player_being_arrested(player::player_id(), 1))
		{
			gameplay::set_bit(&iLocal_9771, 7);
		}
		if (player::is_player_riding_train(player::player_id()))
		{
			gameplay::set_bit(&iLocal_9771, 10);
		}
		if (player::is_player_wanted_level_greater(player::player_id(), 2))
		{
			gameplay::set_bit(&iLocal_9771, 12);
		}
		if (func_1019())
		{
			gameplay::set_bit(&iLocal_9771, 11);
		}
		if (ped::is_ped_in_cover(player::player_ped_id(), 0))
		{
			gameplay::set_bit(&iLocal_9771, 13);
		}
		if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
		{
			iVar0 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 1);
			if (vehicle::get_ped_in_vehicle_seat(iVar0, -1) != player::player_ped_id())
			{
				gameplay::set_bit(&iLocal_9771, 2);
			}
			if (func_1018(entity::get_entity_model(iVar0)))
			{
				gameplay::set_bit(&iLocal_9771, 15);
			}
			if (func_1017(&iVar0, 1))
			{
				gameplay::set_bit(&iLocal_9771, 3);
			}
		}
		if (ped::is_ped_in_any_boat(player::player_ped_id()))
		{
			gameplay::set_bit(&iLocal_9771, 15);
		}
	}
	else
	{
		if (gameplay::is_bit_set(iLocal_9771, 3) || gameplay::is_bit_set(iLocal_9771, 4))
		{
			iLocal_9681 = true;
		}
		iLocal_9771 = 0;
		gameplay::set_bit(&iLocal_9771, 14);
	}
}

bool func_1017(int iParam0, int iParam1)//Position - 0x9912E
{
	if (entity::does_entity_exist(*iParam0))
	{
		if (!entity::is_entity_dead(*iParam0, 0) || iParam1)
		{
			if (entity::is_entity_in_water(*iParam0))
			{
				return true;
			}
		}
	}
	return false;
}

bool func_1018(int iParam0)//Position - 0x99163
{
	if (iParam0 == joaat("submersible") || iParam0 == joaat("submersible2"))
	{
		return true;
	}
	return false;
}

bool func_1019()//Position - 0x99189
{
	vector3 vVar0;
	
	vVar0 = { entity::get_entity_coords(player::player_ped_id(), 1) };
	vVar0.z = 0f;
	if (system::vdist2(1701.666f, 2586.261f, 0f, vVar0) < 40000f)
	{
		return true;
	}
	return false;
}

bool func_1020()//Position - 0x991C4
{
	vector3 vVar0;
	float fVar3;
	
	if (iLocal_6559 == 1 && func_28(entity::get_entity_model(player::player_ped_id())))
	{
		vVar0 = { entity::get_entity_coords(player::player_ped_id(), 1) };
		vVar0 = { ped::get_ped_bone_coords(player::player_ped_id(), 2108, 0f, 0f, 0f) };
		gameplay::get_ground_z_for_3d_coord(vVar0, &fVar3, 0);
		if ((vVar0.y - fVar3) > 0.3f)
		{
			return true;
		}
	}
	return false;
}

bool func_1021(int iParam0, int iParam1)//Position - 0x99225
{
	if (entity::does_entity_exist(iParam0))
	{
		if (!entity::is_entity_dead(iParam0, 0) || iParam1)
		{
			if (entity::is_entity_in_water(iParam0))
			{
				if (entity::get_entity_submerged_level(iParam0) >= 0.7f)
				{
					return true;
				}
			}
		}
	}
	return false;
}

void func_1022()//Position - 0x99266
{
	int iVar0;
	
	Global_100135 = 0;
	Global_100134 = 0;
	ui::activate_frontend_menu(-2060115030, 0, -1);
	audio::set_audio_flag("LoadMPData", 1);
	iVar0 = 0;
	while (!audio::_0x544810ED9DB6BBE6() && iVar0 < 500)
	{
		system::wait(0);
		iVar0++;
	}
	if (!audio::_0x544810ED9DB6BBE6())
	{
	}
	func_1049(script::get_this_script_name(), 1, 0);
	iLocal_5659 = Global_93123;
	switch (iLocal_5659)
	{
		case 0:
			stats::stat_get_int(joaat("sp0_special_ability"), &iLocal_5660, -1);
			break;
		
		case 1:
			stats::stat_get_int(joaat("sp1_special_ability"), &iLocal_5660, -1);
			break;
		
		case 2:
			stats::stat_get_int(joaat("sp2_special_ability"), &iLocal_5660, -1);
			break;
	}
	func_696(0);
	func_1048();
	entity::set_entity_invincible(player::player_ped_id(), false);
	if (iLocal_7708 <= 0)
	{
		iLocal_7708 = 50;
	}
	func_1047();
	func_1044();
	func_1037();
	func_1036();
	audio::set_audio_flag("IsDirectorModeActive", 1);
	audio::set_audio_flag("PoliceScannerDisabled", 1);
	stats::_0x629526ABA383BCAA();
	gameplay::_0x4EBB7E87AA0DBED4(1);
	ui::_0x808519373FD336A3(1);
	player::set_auto_give_parachute_when_enter_plane(player::player_id(), 0);
	ui::_0x62E849B7EB28E770(1);
	ui::_0xF8DEE0A5600CBB93(1);
	gameplay::_0xD79185689F8FD5DF(0);
	ped::_0x6B0E6172C9A4D902(0);
	streaming::request_anim_dict("director@character_select_intro@male");
	streaming::request_anim_dict("director@character_select_intro@female");
	streaming::request_anim_set("ANIM_GROUP_MOVE_BALLISTIC");
	graphics::_request_hud_scaleform(20);
	ui::clear_help(1);
	ui::clear_prints();
	ui::_0xA8FDB297A8D25FBA();
	player::_0xD2B315B6689D537D(player::player_id(), 0);
	graphics::_get_screen_active_resolution(&iLocal_9788, &iLocal_9789);
	func_1035(&uLocal_9682);
	iLocal_9776 = 1;
	func_1031();
	func_669();
	iLocal_7754 = entity::get_entity_model(player::player_ped_id());
	iLocal_7755 = entity::get_entity_model(player::player_ped_id());
	switch (iLocal_7755)
	{
		case joaat("player_zero"):
			iLocal_6806 = 275;
			break;
		
		case joaat("player_one"):
			iLocal_6806 = 273;
			break;
		
		case joaat("player_two"):
			iLocal_6806 = 274;
			break;
	}
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		ped::clear_ped_wetness(player::player_ped_id());
		ped::clear_ped_blood_damage(player::player_ped_id());
		ped::reset_ped_visible_damage(player::player_ped_id());
	}
	ui::set_waypoint_off();
	iLocal_9737 = -1;
	func_1030();
	if (!func_1029(146, 0))
	{
		func_1024(146, 0, 0);
	}
	if (!func_1029(146, 1))
	{
		func_1024(146, 1, 0);
	}
	if (!func_1029(146, 2))
	{
		func_1024(146, 2, 0);
	}
	if (gameplay::is_orbis_version())
	{
		controls::_0x8290252FFF36ACB5(0, 255, 255, 255);
	}
	func_1023();
	iLocal_9744 = cam::_0xEE778F8C7E1142E2(cam::_0x19CAFA3C87F7C2FF());
	audio::request_script_audio_bank("DLC_GTAO/SNACKS", false, -1);
	uLocal_9806 = func_860();
	uLocal_9807 = func_859();
	uLocal_9808 = func_858(1);
}

void func_1023()//Position - 0x994CC
{
	int iVar0;
	char* sVar1;
	
	if (gameplay::is_xbox360_version() || gameplay::is_durango_version())
	{
		iVar0 = 29;
		network::network_set_rich_presence(8, &iVar0, 1, 1);
	}
	else if (gameplay::is_ps3_version() || gameplay::is_orbis_version())
	{
		sVar1 = "SPMG_29_STR";
		network::_0x3E200C2BCF4164EB(8, sVar1);
	}
}

void func_1024(int iParam0, int iParam1, int iParam2)//Position - 0x99516
{
	Global_2969 = iParam0;
	if (Global_117[iParam0 /*10*/].f_8 != 138)
	{
		func_1026();
		if (iParam1 == 4)
		{
			Global_101186.f_32651[iParam0 /*29*/].f_12[0] = 1;
			Global_101186.f_32651[iParam0 /*29*/].f_12[1] = 1;
			Global_101186.f_32651[iParam0 /*29*/].f_12[2] = 1;
			Global_101186.f_32651[iParam0 /*29*/].f_24[0] = 1;
			Global_101186.f_32651[iParam0 /*29*/].f_24[1] = 1;
			Global_101186.f_32651[iParam0 /*29*/].f_24[2] = 1;
		}
		else
		{
			if (Global_101186.f_32651[iParam0 /*29*/].f_12[iParam1] == 1 && Global_101186.f_32651[iParam0 /*29*/].f_24[iParam1] == 1)
			{
				iParam2 = false;
			}
			Global_101186.f_32651[iParam0 /*29*/].f_12[iParam1] = 1;
			Global_101186.f_32651[iParam0 /*29*/].f_24[iParam1] = 1;
		}
		if (iParam2)
		{
			if (!Global_69521)
			{
				if (iParam1 != 4)
				{
					if (Global_14413 != iParam1)
					{
						Global_2942[iParam1 /*4*/] = { Global_101186.f_32651[iParam0 /*29*/].f_3 };
						Global_2959[iParam1] = 1;
						Global_2964[iParam1] = iParam0;
					}
					else if (iParam0 == Global_14413)
					{
					}
					else
					{
						Global_2893[1 /*6*/] = { Global_101186.f_32651[iParam0 /*29*/].f_3 };
						Global_2893[1 /*6*/].f_5 = iParam1;
						func_1025();
					}
				}
				else
				{
					Global_2893[1 /*6*/] = { Global_101186.f_32651[iParam0 /*29*/].f_3 };
					Global_2893[1 /*6*/].f_5 = iParam1;
					func_1025();
				}
			}
			else
			{
				Global_2893[1 /*6*/] = { Global_101186.f_32651[iParam0 /*29*/].f_3 };
				Global_2893[1 /*6*/].f_5 = iParam1;
				func_1025();
			}
		}
	}
}

void func_1025()//Position - 0x996C0
{
	char cVar0[64];
	char cVar16[64];
	char* sVar32;
	
	StringCopy(&cVar0, ui::_get_label_text(&(Global_101186.f_32651[Global_2969 /*29*/].f_7)), 64);
	if (Global_2988 == 0)
	{
		ui::_set_notification_text_entry("");
		StringCopy(&cVar16, ui::_get_label_text(&(Global_2893[1 /*6*/])), 64);
		sVar32 = ui::_get_label_text("CELL_253");
		ui::_set_notification_message(&cVar0, &cVar0, 0, 3, sVar32, &cVar16);
	}
	else
	{
		ui::_set_notification_text_entry("CELL_255");
		ui::_add_text_component_item_string(&(Global_2893[1 /*6*/]));
		ui::_set_notification_message(&cVar0, &cVar0, 0, 3, "", 0);
	}
	gameplay::clear_bit(&Global_2283, 0);
}

void func_1026()//Position - 0x99743
{
	if (func_211(14))
	{
		if (!entity::is_entity_dead(player::player_ped_id(), 0))
		{
			if (entity::get_entity_model(player::player_ped_id()) == Global_101186.f_32651[0 /*29*/])
			{
				Global_14413 = 0;
			}
			else if (entity::get_entity_model(player::player_ped_id()) == Global_101186.f_32651[1 /*29*/])
			{
				Global_14413 = 1;
			}
			else if (entity::get_entity_model(player::player_ped_id()) == Global_101186.f_32651[2 /*29*/])
			{
				Global_14413 = 2;
			}
			else
			{
				Global_14413 = 0;
			}
		}
	}
	else
	{
		Global_14413 = func_1027();
		if (Global_14413 == 145)
		{
			Global_14413 = 3;
		}
		if (Global_69521)
		{
			Global_14413 = 3;
		}
		if (Global_14413 > 3)
		{
			Global_14413 = 3;
		}
	}
}

var func_1027()//Position - 0x997E5
{
	func_1028();
	return Global_101186.f_1902.f_539.f_3549;
}

void func_1028()//Position - 0x997FE
{
	int iVar0;
	
	if (entity::does_entity_exist(player::player_ped_id()))
	{
		if (func_410(Global_101186.f_1902.f_539.f_3549) != entity::get_entity_model(player::player_ped_id()))
		{
			iVar0 = func_409(player::player_ped_id());
			if (func_64(iVar0) && (!func_211(14) || Global_100138))
			{
				if (Global_101186.f_1902.f_539.f_3549 != iVar0 && func_64(Global_101186.f_1902.f_539.f_3549))
				{
					Global_101186.f_1902.f_539.f_3550 = Global_101186.f_1902.f_539.f_3549;
				}
				Global_101186.f_1902.f_539.f_3551 = iVar0;
				Global_101186.f_1902.f_539.f_3549 = iVar0;
				return;
			}
		}
		else
		{
			if (Global_101186.f_1902.f_539.f_3549 != 145)
			{
				Global_101186.f_1902.f_539.f_3551 = Global_101186.f_1902.f_539.f_3549;
			}
			return;
		}
	}
	Global_101186.f_1902.f_539.f_3549 = 145;
}

bool func_1029(int iParam0, int iParam1)//Position - 0x998FB
{
	if (Global_101186.f_32651[iParam0 /*29*/].f_12[iParam1] == 1)
	{
		return true;
	}
	return false;
}

void func_1030()//Position - 0x99920
{
	int iVar0;
	
	Global_36636 = 1;
	iVar0 = 0;
	while (iVar0 < 6)
	{
		Global_36442[iVar0 /*32*/] = 0;
		Global_36442[iVar0 /*32*/].f_2 = 0;
		Global_36442[iVar0 /*32*/].f_4 = 0;
		Global_36442[iVar0 /*32*/].f_5 = 0;
		Global_36442[iVar0 /*32*/].f_7 = 0;
		Global_36442[iVar0 /*32*/].f_1 = -1;
		Global_36442[iVar0 /*32*/].f_3 = 0;
		iVar0++;
	}
}

void func_1031()//Position - 0x99982
{
	StringCopy(&(Local_9128[0 /*17*/].f_13), func_165(0), 16);
	StringCopy(&(Local_9128[1 /*17*/].f_13), func_165(1), 16);
	func_1033(2, 148.6474f, 17f, 3.3f);
	func_1033(3, 49.6654f, 3.78f, -6.5f);
	func_1033(4, 49.6931f, 0f, -0.4f);
	func_1033(5, 162.0262f, 1.53f, 0);
	func_1033(6, 210.7911f, -1056964608, 0);
	func_1033(7, 168f, 2.6f, 20.8f);
	func_1033(8, 98.1669f, -3.7f, 0);
	func_1033(9, 356.7321f, -2.95f, 1.8f);
	func_1033(10, 40.359f, -0.5f, 13.7f);
	func_1033(11, 263.7209f, -1.4f, 0);
	func_1033(12, 136.4268f, -17.67f, -7f);
	func_1033(13, 313.4251f, -1056964608, 0);
	func_1033(14, 268.4852f, -7.3f, -9.6f);
	func_1033(15, -24.7f, -12.7f, 0);
	func_1033(16, 151.6f, 4.3f, 0);
	func_1033(17, -35f, 1.9f, 0);
	func_1033(18, 72.1f, 11.9f, 0);
	func_1033(19, -157.4f, 20.1f, 0);
	func_1033(20, -39.5f, 16.3f, 0);
	func_1033(21, -172f, 13.4f, 0);
	func_1033(22, 105.2f, -5.9f, 0);
	func_1033(23, 144.8f, -8f, 0);
	func_1033(24, 161.5f, 2.5f, 0);
	func_1033(25, 72.6f, 18.4f, 0);
	func_1033(26, -10.4f, 3.7f, 0);
	func_1033(27, -144.2f, -1.7f, 0);
	func_1033(28, 165.1f, -4.1f, 0);
	func_1032(6, -1349.496f, 734.0758f, 184.0018f, 1.2863f, joaat("sanchez"));
	func_1032(7, 2202.869f, 2484.189f, 87.1479f, 112.4964f, joaat("sanchez"));
	func_1032(9, 92.199f, 3597.861f, 38.7236f, 186.2282f, joaat("hexer"));
	func_1032(10, -1567.03f, 2782.286f, 16.3059f, 77.8481f, joaat("blazer"));
	func_1032(11, -883.6553f, 4427.451f, 19.8718f, 169.3992f, joaat("sanchez"));
	func_1032(12, 471.2471f, 5617.584f, 785.3168f, 219.7432f, joaat("sanchez"));
	func_1032(14, 3332.828f, 5159.648f, 17.3071f, 157.0522f, joaat("tornado3"));
}

void func_1032(int iParam0, vector3 vParam1, float fParam4, int iParam5)//Position - 0x99C60
{
	Local_9128[iParam0 /*17*/].f_6 = { vParam1 };
	Local_9128[iParam0 /*17*/].f_9 = fParam4;
	Local_9128[iParam0 /*17*/].f_10 = iParam5;
}

void func_1033(int iParam0, float fParam1, float fParam2, float fParam3)//Position - 0x99C8D
{
	var uVar0;
	
	uVar0 = iParam0;
	Local_9128[uVar0 /*17*/] = { func_1034(iParam0) };
	Local_9128[uVar0 /*17*/].f_3 = fParam1;
	Local_9128[uVar0 /*17*/].f_4 = fParam2;
	Local_9128[uVar0 /*17*/].f_5 = fParam3;
	StringCopy(&(Local_9128[uVar0 /*17*/].f_13), func_165(iParam0), 16);
}

Vector3 func_1034(int iParam0)//Position - 0x99CDA
{
	switch (iParam0)
	{
		case 0:
			return 0f, 0f, 0f;
			break;
		
		case 1:
			return 0f, 0f, 0f;
			break;
		
		case 2:
			return -1018.202f, -2697.058f, 12.9816f;
			break;
		
		case 3:
			return 592.3612f, -3032.388f, 5.0693f;
			break;
		
		case 4:
			return 202.1544f, -1019.975f, 28.385f;
			break;
		
		case 5:
			return -1624.021f, -968.4926f, 12.0176f;
			break;
		
		case 6:
			return -1347.514f, 726.7493f, 185.1062f;
			break;
		
		case 7:
			return 2206.562f, 2489.094f, 86.7392f;
			break;
		
		case 8:
			return 2039.893f, 3775.585f, 31.1919f;
			break;
		
		case 9:
			return 74.1428f, 3552.799f, 46.8948f;
			break;
		
		case 10:
			return -1570.439f, 2778.444f, 16.1308f;
			break;
		
		case 11:
			return -885.9214f, 4428.677f, 20.0067f;
			break;
		
		case 12:
			return 463.9337f, 5618.899f, 785.1277f;
			break;
		
		case 13:
			return -321.5562f, 6071.332f, 30.3203f;
			break;
		
		case 14:
			return 3352.761f, 5149.705f, 19.1508f;
			break;
		
		case 15:
			return -1873.3f, 2089.5f, 141f;
			break;
		
		case 16:
			return -1050f, -472f, 36.6f;
			break;
		
		case 17:
			return -1376f, 47f, 53.7f;
			break;
		
		case 18:
			return -1059f, 4906f, 211.3f;
			break;
		
		case 19:
			return 2684.1f, 1613.3f, 24.6f;
			break;
		
		case 20:
			return -580.9f, 5246.4f, 70.5f;
			break;
		
		case 21:
			return 2952.4f, 2788.3f, 41.5f;
			break;
		
		case 22:
			return 1661.7f, -9.5f, 173.8f;
			break;
		
		case 23:
			return 1069.1f, -254.1f, 57.8f;
			break;
		
		case 24:
			return -412.6f, 1169.5f, 325.9f;
			break;
		
		case 25:
			return 2072.9f, 2931.4f, 47.5f;
			break;
		
		case 26:
			return -1618.7f, 178.6f, 60.3f;
			break;
		
		case 27:
			return 3068.3f, 2212.3f, 2.9f;
			break;
		
		case 28:
			return 2877.6f, 5910.6f, 369.6f;
			break;
	}
	return 0f, 0f, 0f;
}

void func_1035(var uParam0)//Position - 0x99FE3
{
	int iVar0;
	int iVar1;
	
	iVar1 = (27 - 1);
	iVar0 = 0;
	while (iVar0 <= iVar1)
	{
		(*uParam0)[iVar0] = object::_0x160AA1B32F6139B8(Global_34865[iVar0 /*31*/]);
		iVar0++;
	}
}

void func_1036()//Position - 0x9A015
{
	StringCopy(&(Local_7757[0 /*8*/]), "", 32);
	StringCopy(&(Local_7757[1 /*8*/]), "GENERIC_HI", 32);
	StringCopy(&(Local_7757[2 /*8*/]), "GENERIC_BYE", 32);
	StringCopy(&(Local_7757[3 /*8*/]), "GENERIC_HOWS_IT_GOING", 32);
	StringCopy(&(Local_7757[4 /*8*/]), "GENERIC_AGREE", 32);
	StringCopy(&(Local_7757[5 /*8*/]), "GENERIC_YES", 32);
	StringCopy(&(Local_7757[6 /*8*/]), "GENERIC_NO", 32);
	StringCopy(&(Local_7757[7 /*8*/]), "GENERIC_THANKS", 32);
	StringCopy(&(Local_7757[8 /*8*/]), "GENERIC_WHATEVER", 32);
	StringCopy(&(Local_7757[9 /*8*/]), "GENERIC_CHEER", 32);
	StringCopy(&(Local_7757[10 /*8*/]), "GENERIC_FRIGHTENED_HIGH", 32);
	StringCopy(&(Local_7757[11 /*8*/]), "GENERIC_FRIGHTENED_MED", 32);
	StringCopy(&(Local_7757[12 /*8*/]), "GENERIC_SHOCKED_HIGH", 32);
	StringCopy(&(Local_7757[13 /*8*/]), "GENERIC_SHOCKED_MED", 32);
	StringCopy(&(Local_7757[14 /*8*/]), "GENERIC_INSULT_HIGH", 32);
	StringCopy(&(Local_7757[15 /*8*/]), "GENERIC_INSULT_MED", 32);
	StringCopy(&(Local_7757[16 /*8*/]), "GENERIC_CURSE_HIGH", 32);
	StringCopy(&(Local_7757[17 /*8*/]), "GENERIC_CURSE_MED", 32);
}

void func_1037()//Position - 0x9A105
{
	int iVar0;
	int iVar1;
	int iVar2;
	struct<32> Var3;
	int iVar35;
	int iVar36[20];
	int iVar57;
	
	iVar2 = 0;
	Var3.f_1 = 13;
	Var3.f_15 = 11;
	Var3 = { Var3 };
	iVar35 = 0;
	iVar0 = 0;
	while (iVar0 < Local_6878)
	{
		Local_6878[iVar0 /*32*/] = Global_101186.f_31035.f_107[iVar0];
		iVar1 = 0;
		while (iVar1 < Var3.f_1)
		{
			Local_6878[iVar0 /*32*/].f_1[iVar1] = func_1039(&(Global_101186.f_31035.f_6), iVar2, 6);
			if (Local_6878[iVar0 /*32*/].f_1[iVar1] == 63)
			{
				Local_6878[iVar0 /*32*/].f_1[iVar1] = -1;
			}
			iVar2++;
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 < Var3.f_15)
		{
			Local_6878[iVar0 /*32*/].f_15[iVar1] = func_1039(&(Global_101186.f_31035.f_6), iVar2, 6);
			if (Local_6878[iVar0 /*32*/].f_15[iVar1] == 63)
			{
				Local_6878[iVar0 /*32*/].f_15[iVar1] = -1;
			}
			iVar2++;
			iVar1++;
		}
		if (Local_6878[iVar0 /*32*/] == 327)
		{
			if (Local_7925[0 /*401*/].f_400)
			{
				Local_6878[iVar0 /*32*/].f_27 = Local_7925[0 /*401*/].f_399;
				if (Local_7925[0 /*401*/].f_399 == joaat("mp_m_freemode_01"))
				{
					Local_6878[iVar0 /*32*/].f_29 = 1;
				}
				else if (Local_7925[0 /*401*/].f_399 == joaat("mp_f_freemode_01"))
				{
					Local_6878[iVar0 /*32*/].f_29 = 0;
				}
			}
			else
			{
				iVar36[iVar35] = iVar0;
				iVar35++;
			}
		}
		else if (Local_6878[iVar0 /*32*/] == 328)
		{
			if (Local_7925[1 /*401*/].f_400)
			{
				Local_6878[iVar0 /*32*/].f_27 = Local_7925[1 /*401*/].f_399;
				if (Local_7925[1 /*401*/].f_399 == joaat("mp_m_freemode_01"))
				{
					Local_6878[iVar0 /*32*/].f_29 = 1;
				}
				else if (Local_7925[1 /*401*/].f_399 == joaat("mp_f_freemode_01"))
				{
					Local_6878[iVar0 /*32*/].f_29 = 0;
				}
			}
			else
			{
				iVar36[iVar35] = iVar0;
				iVar35++;
			}
		}
		else
		{
			Local_6878[iVar0 /*32*/].f_29 = gameplay::is_bit_set(Global_101186.f_31035.f_149, iVar0);
			Local_6878[iVar0 /*32*/].f_27 = Global_101186.f_31035.f_128[iVar0];
			Local_6878[iVar0 /*32*/].f_31 = Global_101186.f_31035.f_150[iVar0];
			if (func_46(Local_6878[iVar0 /*32*/].f_27))
			{
				func_743(Local_6878[iVar0 /*32*/], 2, 0, &(Local_6878[iVar0 /*32*/].f_28), Local_6878[iVar0 /*32*/].f_27);
			}
			else if (Local_6878[iVar0 /*32*/].f_29)
			{
				func_743(Local_6878[iVar0 /*32*/], 0, 0, &(Local_6878[iVar0 /*32*/].f_28), Local_6878[iVar0 /*32*/].f_27);
			}
			else
			{
				func_743(Local_6878[iVar0 /*32*/], 1, 0, &(Local_6878[iVar0 /*32*/].f_28), Local_6878[iVar0 /*32*/].f_27);
			}
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < Local_6878)
	{
		if (Local_6878[iVar0 /*32*/] == 327 || Local_6878[iVar0 /*32*/] == 328)
		{
			if (iVar0 <= 9)
			{
				iVar57 = 0;
				while (iVar57 <= 9)
				{
					if (iVar0 != iVar57)
					{
						if (Local_6878[iVar57 /*32*/] == Local_6878[iVar0 /*32*/])
						{
							if (Local_6878[iVar0 /*32*/] == 327)
							{
							}
							iVar36[iVar35] = iVar57;
							iVar35++;
						}
					}
					iVar57++;
				}
			}
			else
			{
				iVar57 = 10;
				while (iVar57 <= 19)
				{
					if (iVar0 != iVar57)
					{
						if (Local_6878[iVar57 /*32*/] == Local_6878[iVar0 /*32*/])
						{
							if (Local_6878[iVar0 /*32*/] == 327)
							{
							}
							iVar36[iVar35] = iVar57;
							iVar35++;
						}
					}
					iVar57++;
				}
			}
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < iVar35)
	{
		func_791(iVar36[iVar0]);
		iVar0++;
	}
	vLocal_7701 = { Global_101186.f_31035.f_171 };
	fLocal_7707 = Global_101186.f_31035.f_174;
	Local_9128[0 /*17*/] = { Global_101186.f_31035.f_175[0 /*3*/] };
	Local_9128[0 /*17*/].f_3 = Global_101186.f_31035.f_182[0];
	Local_9128[0 /*17*/].f_11 = Global_101186.f_31035.f_185[0];
	Local_9128[1 /*17*/] = { Global_101186.f_31035.f_175[1 /*3*/] };
	Local_9128[1 /*17*/].f_3 = Global_101186.f_31035.f_182[1];
	Local_9128[1 /*17*/].f_11 = Global_101186.f_31035.f_185[1];
	func_1038();
}

void func_1038()//Position - 0x9A553
{
	int iVar0;
	int iVar1;
	struct<6> Var2;
	
	iVar0 = 0;
	while (iVar0 < 4)
	{
		iVar1 = 0;
		while (iVar1 < 50)
		{
			Local_4057[iVar0 /*351*/][iVar1 /*7*/] = { Global_101186.f_31035.f_188[(iVar0 * 50 + iVar1) /*3*/] };
			Local_4057[iVar0 /*351*/][iVar1 /*7*/].f_3 = { Global_101186.f_31035.f_789[(iVar0 * 50 + iVar1) /*3*/] };
			Local_4057[iVar0 /*351*/][iVar1 /*7*/].f_6 = Global_101186.f_31035.f_1390[(iVar0 * 50 + iVar1)];
			iVar1++;
		}
		Local_5462[iVar0 /*12*/] = func_796(iVar0, 0);
		Local_5462[iVar0 /*12*/].f_1 = func_796(iVar0, 1);
		Local_5462[iVar0 /*12*/].f_2 = { func_808(iVar0) };
		Local_5462[iVar0 /*12*/].f_6 = { Global_101186.f_31035.f_1591[iVar0 /*6*/] };
		StringCopy(&Var2, "Scene ", 24);
		StringIntConCat(&Var2, iVar0 + 1, 24);
		Local_5462[iVar0 /*12*/].f_6 = { Var2 };
		iVar0++;
	}
}

int func_1039(var uParam0, int iParam1, int iParam2)//Position - 0x9A652
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_1043(iParam1, iParam2);
	iVar1 = func_1042(iParam1, iParam2);
	if (iVar0 >= *uParam0)
	{
	}
	else
	{
		return func_1040((*uParam0)[iVar0], iVar1, iParam2);
	}
	return 0;
}

var func_1040(int iParam0, int iParam1, int iParam2)//Position - 0x9A68B
{
	var uVar0;
	
	uVar0 = func_1041(iParam2, 0);
	return (system::shift_right(iParam0, (iParam1 * iParam2)) && uVar0);
}

var func_1041(int iParam0, int iParam1)//Position - 0x9A6AA
{
	var uVar0;
	int iVar1;
	
	iVar1 = 0;
	while (iVar1 <= (iParam0 - 1))
	{
		gameplay::set_bit(&uVar0, (iParam1 + iVar1));
		iVar1++;
	}
	return uVar0;
}

int func_1042(int iParam0, int iParam1)//Position - 0x9A6D4
{
	int iVar0;
	
	iVar0 = (iParam0 - (func_1043(iParam0, iParam1) * system::floor((32f / IntToFloat(iParam1)))));
	return iVar0;
}

int func_1043(int iParam0, int iParam1)//Position - 0x9A6F9
{
	int iVar0;
	
	iVar0 = system::floor((system::to_float((iParam0 * iParam1)) / IntToFloat((system::floor((32f / IntToFloat(iParam1))) * iParam1))));
	return iVar0;
}

void func_1044()//Position - 0x9A724
{
	ui::request_additional_text("FMMC", 2);
	iLocal_4056 = -1;
	func_1045();
}

void func_1045()//Position - 0x9A73E
{
	int iVar0;
	
	StringCopy(&(Local_222[1 /*4*/]), "FMMC_PLIB_0", 16);
	StringCopy(&(Local_222[2 /*4*/]), "FMMC_PLIB_1", 16);
	StringCopy(&(Local_222[7 /*4*/]), "FMMC_PLIB_7", 16);
	StringCopy(&(Local_222[3 /*4*/]), "FMMC_PLIB_3", 16);
	StringCopy(&(Local_222[4 /*4*/]), "FMMC_PLIB_4", 16);
	StringCopy(&(Local_222[5 /*4*/]), "FMMC_PLIB_5", 16);
	StringCopy(&(Local_222[6 /*4*/]), "FMMC_PLIB_6", 16);
	StringCopy(&(Local_222[8 /*4*/]), "FMMC_PLIB_15", 16);
	StringCopy(&(Local_222[9 /*4*/]), "FMMC_PLIB_8", 16);
	StringCopy(&(Local_222[11 /*4*/]), "FMMC_PLIB_TNR", 16);
	StringCopy(&(Local_222[10 /*4*/]), "FMMC_PLIB_9", 16);
	StringCopy(&(Local_222[12 /*4*/]), "FMMC_PLIB_10", 16);
	StringCopy(&(Local_222[13 /*4*/]), "FMMC_PLIB_11", 16);
	StringCopy(&(Local_222[15 /*4*/]), "FMMC_PLIB_12", 16);
	StringCopy(&(Local_222[14 /*4*/]), "DMPP_WTRCAT", 16);
	iVar0 = 0;
	func_1046(&iVar0, 1, joaat("prop_plas_barier_01a"), 0f, 2f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -565797937, 0f, 2f, 0f, 0.8f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -143315610, 0f, 2f, 0f, 0.8f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 765541575, 0f, 2f, 0f, 0.6f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, joaat("prop_offroad_bale01"), 0f, 2f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -1601837956, 0f, 2f, 0f, 1.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 2084346858, 0f, 2f, 0f, 1.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 1731900299, 0f, 3.5f, -0.05f, 4f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, joaat("prop_haybale_01"), 0f, 2f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, joaat("prop_haybale_02"), 0f, 2f, -0.1f, 1.5f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 1395331371, 0f, 2f, 0f, 1.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, joaat("prop_offroad_tyres01"), 0.25f, 2f, 0f, 1.5f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 812376260, 0f, 2f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, joaat("prop_rub_tyre_03"), 0f, 2f, 0f, 0.5f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 2090810892, 0f, 2.5f, 0f, 2f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -905357089, 0f, 2.5f, 0f, 3f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -666143389, 0f, 2.5f, 0f, 5f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 1465709448, 0f, 2.5f, 0f, 2f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 631705629, 0f, 2.5f, 0f, 3f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, joaat("prop_offroad_barrel01"), 0f, 2f, 0f, 0.5f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -996988174, 0f, 2f, 0f, 1.2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 2139919312, 0f, 2f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -1228223417, 0f, 2f, -0.05f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -1286880215, 0f, 2f, -0.05f, 2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, joaat("prop_barier_conc_02b"), 0f, 3f, -0.05f, 2.3f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, joaat("prop_barier_conc_05a"), 0f, 2f, -0.05f, 2.7f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, joaat("prop_barier_conc_05b"), 0f, 2f, -0.05f, 2.7f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 1172303719, 0f, 2f, -0.05f, 2.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, joaat("prop_mb_sandblock_01"), 0f, 2.5f, -0.2f, 2f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, joaat("prop_mb_sandblock_02"), 0f, 2.5f, -0.2f, 4f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 1708971027, 0f, 2.5f, -0.2f, 4f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, joaat("prop_mb_sandblock_04"), 0f, 2.5f, -0.2f, 4f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 523344868, 0f, 4f, -0.2f, 4.5f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, joaat("prop_mb_hesco_06"), 0f, 5f, 0f, 6f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -1393524934, 0f, 3.75f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -837500542, 0f, 3.75f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 2122752615, 0f, 3.75f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -1314912103, 0f, 3.75f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -1669382392, 0f, 2.5f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 2074061472, 0f, 3f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -1593445012, 0f, 3f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -1880599759, 0f, 3f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -1894591898, 0f, 3.25f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -1519583462, 0f, 3.25f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 1916672189, 0f, 3f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -940719073, 0f, 3f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 1185366416, 0f, 3.25f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, joaat("prop_const_fence02a"), 0f, 4f, 0f, 2f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -679229497, 0f, 4f, 0f, 3f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 2108146567, 0f, 4f, 0f, 1.2f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, joaat("prop_const_fence02b"), 0f, 4f, 0f, 2f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -1147467348, 0f, 4f, 0f, 3f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, joaat("prop_fncwood_16b"), 0f, 3f, 0f, 0.8f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, joaat("prop_fncwood_16c"), 0f, 3f, 0f, 0.6f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 93794225, 0f, 2.5f, -0.4f, 0.8f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 1322893877, 0f, 2.5f, -0.4f, 0.8f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -1178167275, 0f, 2.5f, -0.4f, 1.7f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, -872399736, 0f, 2.5f, -0.4f, 2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 373936410, 0f, 2.5f, -0.4f, 3.5f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, joaat("prop_table_08_side"), 0f, 2f, 0f, 1.5f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 690751374, 0f, 10f, 0f, 7f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, 1275920395, 0f, 7.5f, 0f, 0.5f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 1, joaat("prop_inflategate_01"), 0f, 17.5f, -0.2f, 4f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 2, 1805980844, 0f, 2f, 0f, 0.8f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 2, joaat("prop_bench_05"), 0f, 2f, 0f, 1.1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 2, -71417349, 0f, 2f, 0f, 0.7f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 2, -403891623, 0f, 2f, 0f, 1.1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 2, -1663557985, 0f, 3f, 0f, 2f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 2, 984170102, 0f, 3f, 0f, 2.1f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 3, joaat("prop_elecbox_24"), 0f, 4f, 0f, 4f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 3, joaat("prop_elecbox_24b"), 0f, 4.5f, 0f, 2.5f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 3, joaat("prop_portacabin01"), 0f, 4.5f, 0f, 3.6f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 3, 169792355, 0f, 5f, 0f, 2.5f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 3, -105439435, 0f, 4.5f, 0f, 2.5f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 3, 260517631, 0f, 4f, 0f, 1.9f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 3, 304890764, 0f, 4.25f, 0f, 2.1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 3, 1012842044, 0f, 4f, 0f, 3f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 3, -293536422, 0f, 4f, 0f, 3f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 3, 858993389, 0f, 4.25f, -0.1f, 3.6f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, 1899123601, 0f, 2f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, 1962326206, 0f, 2f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, -1951226014, 0f, 2f, 0f, 1.6f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, 1711856655, 0f, 2.5f, 0f, 1.6f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, joaat("prop_cons_crate"), 0f, 2f, 0f, 1.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, joaat("prop_jyard_block_01a"), 0f, 2f, 0f, 1.4f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, joaat("prop_conc_sacks_02a"), 0f, 2f, -0.025f, 1.4f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, joaat("prop_byard_sleeper01"), 0f, 2f, 0f, 1.1f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, joaat("prop_shuttering01"), 0f, 2f, 0f, 0.8f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, joaat("prop_shuttering04"), 0f, 2f, 0f, 1.3f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, joaat("prop_shuttering02"), 0f, 3f, 0f, 1.3f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, joaat("prop_shuttering03"), 0f, 3f, 0f, 2f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, 1367246936, 0f, 2f, 0f, 2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, -1186441238, 0f, 2f, 0f, 1.4f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, 1861370687, 0f, 2f, 0f, 1.4f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, -740912282, 0f, 3f, 0f, 2.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, -1381557071, 0f, 2.75f, 0f, 2.7f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, -37176073, 0f, 2.75f, 0f, 3.5f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, joaat("prop_pipes_conc_01"), 0f, 1.5f, 0f, 1.6f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 4, 1530421247, 0f, 3.5f, 0f, 4.2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 5, joaat("prop_rub_cont_01b"), 0f, 3.75f, 0f, 4f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 5, joaat("prop_container_ld2"), 0f, 3.75f, 0f, 4.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 5, joaat("prop_container_01mb"), 0f, 3.75f, 0f, 4.3f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 5, 874602658, 0f, 3.75f, 0f, 3.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 5, joaat("prop_container_03mb"), 0f, 3.75f, 0f, 3.3f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 5, joaat("prop_rail_boxcar"), 0f, 5f, 0f, 4.4f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 5, joaat("prop_rail_boxcar3"), 0f, 5f, 0f, 4.2f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 5, joaat("prop_rail_boxcar4"), 0f, 5f, 0f, 4.2f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 5, joaat("prop_rub_railwreck_2"), 0f, 4.5f, 0f, 4.2f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, 1524671283, 0f, 2f, 0f, 1.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, 300547451, 0f, 2f, 0f, 1.4f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, -1726996371, 0f, 3f, 0f, 1.6f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, 1165008631, 0f, 2f, 0f, 0.6f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, -2022916910, 0f, 2f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, -1322183878, 0f, 2f, 0f, 1.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, -1853453107, 0f, 2f, 0f, 1.1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, -3872440, 0f, 3f, 0f, 1.5f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, joaat("prop_mb_cargo_03a"), 0f, 3f, 0f, 2.2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, joaat("prop_mb_cargo_04a"), 0f, 2.5f, 0f, 1.6f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, joaat("prop_air_cargo_04a"), 0f, 2.5f, 0f, 1.8f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, joaat("prop_mb_crate_01b"), 0f, 2.5f, 0f, 1.2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, joaat("prop_mb_cargo_04b"), 0f, 2.5f, 0f, 2.4f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, joaat("prop_mb_cargo_02a"), 0f, 3.25f, 0f, 2.2f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, joaat("prop_air_cargo_01a"), 0f, 2.5f, 0f, 1.5f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, joaat("prop_watercrate_01"), 0f, 2f, 0f, 1.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, joaat("prop_cash_crate_01"), 0f, 1.5f, 0f, 0.4f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, -82704061, 0f, 2.5f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, 769923921, 0f, 1.75f, 0f, 0.4f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, 1363150739, 0f, 2.25f, 0f, 0.5f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, 917457845, 0f, 2.25f, 0f, 0.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, 1099892058, 0f, 2.5f, 0f, 0.5f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, -1034034125, 0f, 2f, 0f, 0.6f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, -455396574, 0f, 3f, 0f, 0.6f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 6, joaat("prop_byard_floatpile"), 0f, 3f, 0f, 1.7f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 7, joaat("prop_bin_13a"), 0f, 2f, 0f, 0.8f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 7, joaat("prop_bin_14a"), 0f, 2.5f, 0f, 1.2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 7, joaat("prop_dumpster_3a"), 0f, 3f, 0f, 1.6f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 7, joaat("prop_dumpster_4b"), 0f, 3f, 0f, 1.9f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 7, 218085040, 0f, 2.75f, 0f, 1.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 7, 666561306, 0f, 2.75f, 0f, 1.5f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 7, -58485588, 0f, 2.75f, 0f, 1.5f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 7, joaat("prop_skip_06a"), 0f, 3.5f, 0f, 3.1f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 8, -1344435013, 0f, 1.75f, 0f, 0.7f, 0, 0, 7f, 1065353216);
	func_1046(&iVar0, 8, -1088738506, 0f, 1.75f, 0f, 0.7f, 0, 0, 7f, 1065353216);
	func_1046(&iVar0, 8, -1935686084, 0f, 1.75f, 0f, 0.7f, 0, 0, 7f, 1065353216);
	func_1046(&iVar0, 8, 786272259, 0f, 1.75f, 0f, 0.2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 8, 1270590574, 0f, 2f, 0f, 0.4f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 8, 2138646444, 0f, 2.75f, 0f, 0.6f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 8, -672016228, 0f, 2f, 0f, 0.5f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 8, -1918614878, 0f, 2.75f, 0f, 0.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 8, 1257553220, 0f, 2.75f, 0f, 0.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 8, -1029296059, 0f, 2f, 0f, 0.4f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 8, -1980225301, 0f, 1.75f, 0f, 0.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 8, 1246158990, 0f, 2f, 0f, 1.2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 8, 1890640474, 0f, 3.5f, 0f, 2.7f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 8, -46303329, 0f, 3.5f, 0f, 3.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 8, -9837968, 0f, 3.5f, 0f, 3.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 8, -353447166, 0f, 3.5f, -0.05f, 3.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 9, -2138350253, 0f, 2.5f, 0f, 1.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 9, joaat("prop_elecbox_16"), 0f, 3f, 0f, 2.2f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 9, joaat("prop_elecbox_14"), 0f, 2.5f, 0f, 1.2f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 9, -1333576134, 0f, 3.25f, 0f, 2.3f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 9, 1820092997, 0f, 2.75f, 0f, 2f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 9, -1001532663, 0f, 3f, 0f, 1.8f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 9, joaat("prop_ind_mech_02a"), 0f, 2.75f, 0f, 1.7f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 9, joaat("prop_ind_mech_02b"), 0f, 3f, 0f, 1.3f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 9, joaat("prop_sub_trans_01a"), 0f, 5f, 0f, 3.2f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 9, joaat("prop_sub_trans_02a"), 0f, 4f, 0f, 1.9f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 9, joaat("prop_sub_trans_04a"), 0f, 3.5f, 0f, 1.8f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 9, -57215983, 0f, 4.5f, 0f, 1.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 9, 54873101, 0f, 3.75f, 0f, 2.4f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 9, -1576911260, 0f, 2.75f, 0f, 1.7f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 9, joaat("prop_ind_deiseltank"), 0f, 5f, -0.05f, 3.7f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 11, 1052756483, 0f, 4.5f, -0.05f, 0.3f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 11, -492137526, 0f, 7f, -0.25f, 0.4f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 11, -503017940, 0f, 2.5f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 11, 702880916, 0f, 3.25f, 0f, 1.2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 11, -1203783005, 0f, 2.25f, 0f, 1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 11, 1435537088, 0f, 2.25f, -0.125f, 0.8f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 11, 933214217, 0f, 2.25f, 0f, 0.7f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 11, 390804950, 0f, 2f, 0f, 1.2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 11, 725387438, 0f, 2.25f, -0.125f, 2.2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 11, 2042668880, 0f, 2.75f, -0.05f, 2.8f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 11, -73584559, 0f, 18.5f, -0.1f, 2.1f, 1, 1, 1056964608, 0.2f);
	func_1046(&iVar0, 11, -1279773008, 0f, 18.5f, -0.1f, 1.6f, 1, 1, 1056964608, 0.2f);
	func_1046(&iVar0, 11, -1656246279, 0.75f, 2.75f, 0f, 0.6f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 11, 11906616, 0f, 2.75f, -0.85f, 1f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 10, -1359996601, 0f, 2f, 0f, 1.8f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 10, -1061569318, 0f, 2.5f, 0f, 2f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 10, 1290523964, 0f, 3f, 0f, 2.2f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 10, joaat("prop_skip_04"), 0f, 3f, 0f, 2f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 10, joaat("prop_skip_03"), 0f, 2.5f, 0f, 2.1f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 10, joaat("prop_skip_08a"), 0f, 3f, 0f, 2.4f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 10, -1977592297, 0f, 2.5f, -0.325f, 2.6f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, 1560354582, 0f, 4f, 0f, 1.1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, -1097090961, 0f, 2.75f, 0f, 0.2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, 240277467, 0f, 2.75f, 0f, 0.2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, -733912134, 0f, 2.75f, 0f, 0.1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, -1333126068, 0f, 2.75f, 0f, 0.1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, -1454939221, 0f, 2.75f, 0f, 0.2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, -1547577184, 0f, 2.75f, 0f, 0.2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, 219009290, 0f, 3.5f, 0f, 0.15f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, 532969079, 0f, 3.5f, 0f, 0.15f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, -1651641860, 0f, 3.5f, 0f, 0.15f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, 793482617, 0f, 3.5f, 0f, 0.15f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, joaat("prop_roadcone02c"), 0f, 2f, 0f, 0.2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, joaat("prop_roadcone02a"), 0f, 2f, 0f, 0.2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, joaat("prop_roadcone01a"), 0f, 2f, 0f, 0.25f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, 10928689, 0f, 2f, 0f, 0.2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, 1572208841, 0f, 2.75f, 0f, 0.15f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, 1325339411, 0f, 2.25f, -0.19f, 1.3f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, 2129093333, 0f, 2f, 0f, 2.1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, -1941093436, 0f, 2f, 0f, 0.05f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 12, 1644490552, 0f, 2f, 0f, 0.05f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 13, joaat("prop_food_van_01"), 0f, 2.5f, 0f, 2.1f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 13, joaat("prop_food_van_02"), 0f, 2.5f, 0f, 2.1f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 13, -531344027, 0f, 5f, -0.1f, 4f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 13, joaat("prop_truktrailer_01a"), 0f, 5.75f, 0f, 4f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 13, -125664540, 0f, 3f, 0f, 2.8f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 15, joaat("prop_rub_buswreck_01"), 0f, 4f, -0.1f, 2.3f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 15, joaat("prop_rub_buswreck_06"), 0f, 4f, -0.05f, 3.3f, 1, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 15, 1069797899, 0f, 2f, 0f, 1.9f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 15, 1434516869, 0f, 2f, 0f, 1.9f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 15, -896997473, 0f, 2f, 0f, 1.9f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 15, -1748303324, 0f, 2f, -0.15f, 1.8f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 15, 1120812170, 0f, 3f, 0f, 2.2f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 15, -2021659595, 0f, 2f, 0f, 1.5f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 14, joaat("prop_dock_bouy_1"), 0f, 6f, 0f, 1.4f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 14, joaat("prop_dock_bouy_2"), 0f, 6f, 0f, 1.4f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 14, joaat("prop_byard_float_02"), 0f, 3f, 0f, 1.1f, 0, 1, 1056964608, 1065353216);
	func_1046(&iVar0, 14, joaat("prop_jetski_ramp_01"), 0f, 3f, 0f, 1.4f, 0, 1, 1056964608, 1065353216);
	Local_5514 = { Local_5514 };
	Local_5514.f_7 = 0;
	Local_5514.f_8 = 0;
	iLocal_3539[0] = 1;
	uLocal_287[0] = uLocal_287[0];
	Local_304[0 /*14*/] = { Local_304[0 /*14*/] };
	Local_3544[0 /*10*/] = { Local_3544[0 /*10*/] };
}

void func_1046(int iParam0, int iParam1, int iParam2, float fParam3, float fParam4, float fParam5, float fParam6, int iParam7, int iParam8, int iParam9, int iParam10)//Position - 0x9C6CD
{
	StringCopy(&(Local_304[*iParam0 /*14*/]), func_15(iParam2), 16);
	Local_304[*iParam0 /*14*/].f_4 = iParam1;
	Local_304[*iParam0 /*14*/].f_5 = iParam2;
	Local_304[*iParam0 /*14*/].f_9 = fParam3;
	Local_304[*iParam0 /*14*/].f_10 = fParam5;
	Local_304[*iParam0 /*14*/].f_11 = fParam4;
	Local_304[*iParam0 /*14*/].f_13 = fParam6;
	Local_304[*iParam0 /*14*/].f_6 = iParam7;
	Local_304[*iParam0 /*14*/].f_7 = iParam8;
	Local_304[*iParam0 /*14*/].f_8 = iParam9;
	Local_304[*iParam0 /*14*/].f_12 = iParam10;
	uLocal_287[iParam1]++;
	*iParam0++;
}

void func_1047()//Position - 0x9C775
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	func_748();
	iVar0 = 0;
	while (iVar0 < 2)
	{
		if (iLocal_7750)
		{
			if (network::network_is_signed_online())
			{
				iVar1 = func_688(384, iVar0);
				if (iVar1 != -1 && iVar1 != 0)
				{
					if (iVar0 == 0)
					{
						iVar2 = 107;
					}
					else if (iVar0 == 1)
					{
						iVar2 = 108;
					}
					iVar3 = func_746(iVar0);
					if (func_680(&Local_8728, iVar2, iVar3))
					{
						Local_7925[iVar0 /*401*/] = { Local_8728 };
						Local_7925[iVar0 /*401*/].f_400 = 1;
					}
				}
				else
				{
					Local_7925[iVar0 /*401*/].f_400 = 0;
				}
			}
			else
			{
				Local_7925[iVar0 /*401*/].f_400 = 0;
			}
		}
		else
		{
			Local_7925[iVar0 /*401*/].f_400 = 0;
		}
		iVar0++;
	}
}

void func_1048()//Position - 0x9C834
{
	int iVar0;
	int iVar1[9];
	int iVar11;
	
	iLocal_7520[4] = 3;
	iLocal_7520[3] = 3;
	gameplay::_get_weather_type_transition(&(uLocal_7709[0]), &(uLocal_7709[1]), &fLocal_7714);
	iLocal_7712 = time::get_clock_hours();
	iLocal_7713 = time::get_clock_minutes();
	iLocal_7520[0] = func_915(iLocal_7712, iLocal_7713);
	if (fLocal_7714 > 0.6f)
	{
		iVar0 = uLocal_7709[1];
	}
	else
	{
		iVar0 = uLocal_7709[0];
	}
	iVar1[0] = gameplay::get_hash_key("CLEAR");
	iVar1[1] = gameplay::get_hash_key("CLOUDS");
	iVar1[2] = gameplay::get_hash_key("OVERCAST");
	iVar1[3] = gameplay::get_hash_key("HAZY");
	iVar1[4] = gameplay::get_hash_key("XMAS");
	iVar1[5] = gameplay::get_hash_key("SMOG");
	iVar1[6] = gameplay::get_hash_key("FOGGY");
	iVar1[7] = gameplay::get_hash_key("RAIN");
	iVar1[8] = gameplay::get_hash_key("THUNDER");
	iLocal_7520[1] = 0;
	iVar11 = 0;
	while (iVar11 < iVar1)
	{
		if (iVar1[iVar11] == iVar0)
		{
			iLocal_7520[1] = iVar11;
		}
		iVar11++;
	}
	iVar11 = 6;
	while (iVar11 <= 13)
	{
		iLocal_7520[iVar11] = 1;
		iVar11++;
	}
	iVar11 = 0;
	while (iVar11 <= 13)
	{
		iLocal_7572[iVar11] = iLocal_7520[iVar11];
		iVar11++;
	}
	iLocal_7572[4] = 0;
	iLocal_7572[3] = 0;
	iLocal_7572[5] = 1;
	iLocal_7572[2] = 4;
	iLocal_7572[6] = 0;
	iLocal_7572[13] = 0;
}

void func_1049(char[4] cParam0, int iParam1, int iParam2)//Position - 0x9C9AB
{
	if (Global_91310 != 10 && Global_91310 != 9)
	{
		StringCopy(&Global_93115, cParam0, 32);
		func_1051(&Global_93123, cParam0, 0, "Start", iParam1, iParam2);
		func_1050();
		Global_85821 = 0;
	}
}

void func_1050()//Position - 0x9C9F1
{
	int iVar0;
	int iVar1;
	
	Global_95528 = Global_93123;
	Global_95528.f_1 = Global_93123.f_1;
	Global_95528.f_6 = Global_93123.f_6;
	Global_95528.f_7 = Global_93123.f_7;
	Global_95528.f_8 = Global_93123.f_8;
	Global_95528.f_2 = Global_93123.f_2;
	Global_95528.f_3 = Global_93123.f_3;
	Global_95528.f_4 = Global_93123.f_4;
	Global_95528.f_5 = Global_93123.f_5;
	iVar1 = 0;
	while (iVar1 < 3)
	{
		Global_95528.f_9[iVar1] = Global_93123.f_9[iVar1];
		Global_95528.f_13[iVar1] = Global_93123.f_13[iVar1];
		Global_95528.f_17[iVar1] = Global_93123.f_17[iVar1];
		Global_95528.f_21[iVar1] = Global_93123.f_21[iVar1];
		Global_95528.f_25[0 /*295*/][iVar1 /*98*/] = { Global_93123.f_25[0 /*295*/][iVar1 /*98*/] };
		Global_95528.f_25[1 /*295*/][iVar1 /*98*/] = { Global_93123.f_25[1 /*295*/][iVar1 /*98*/] };
		iVar0 = 0;
		while (iVar0 < 12)
		{
			Global_95528.f_616[iVar1 /*65*/][iVar0] = Global_93123.f_616[iVar1 /*65*/][iVar0];
			Global_95528.f_616[iVar1 /*65*/].f_13[iVar0] = Global_93123.f_616[iVar1 /*65*/].f_13[iVar0];
			Global_95528.f_616[iVar1 /*65*/].f_26[iVar0] = Global_93123.f_616[iVar1 /*65*/].f_26[iVar0];
			iVar0++;
		}
		Global_95528.f_616[iVar1 /*65*/].f_59 = Global_93123.f_616[iVar1 /*65*/].f_59;
		Global_95528.f_616[iVar1 /*65*/].f_60 = Global_93123.f_616[iVar1 /*65*/].f_60;
		Global_95528.f_616[iVar1 /*65*/].f_61 = Global_93123.f_616[iVar1 /*65*/].f_61;
		Global_95528.f_616[iVar1 /*65*/].f_62 = Global_93123.f_616[iVar1 /*65*/].f_62;
		Global_95528.f_616[iVar1 /*65*/].f_63 = Global_93123.f_616[iVar1 /*65*/].f_63;
		Global_95528.f_616[iVar1 /*65*/].f_64 = Global_93123.f_616[iVar1 /*65*/].f_64;
		iVar0 = 0;
		while (iVar0 < 9)
		{
			Global_95528.f_616[iVar1 /*65*/].f_39[iVar0] = Global_93123.f_616[iVar1 /*65*/].f_39[iVar0];
			Global_95528.f_616[iVar1 /*65*/].f_49[iVar0] = Global_93123.f_616[iVar1 /*65*/].f_49[iVar0];
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 < 44)
		{
			Global_95528.f_812[iVar1 /*284*/][iVar0 /*3*/] = { Global_93123.f_812[iVar1 /*284*/][iVar0 /*3*/] };
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 < 50)
		{
			Global_95528.f_812[iVar1 /*284*/].f_133[iVar0 /*3*/] = { Global_93123.f_812[iVar1 /*284*/].f_133[iVar0 /*3*/] };
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 < 4)
		{
			Global_95528.f_1665[iVar1 /*32*/][iVar0] = Global_93123.f_1665[iVar1 /*32*/][iVar0];
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 < 10)
		{
			Global_95528.f_1665[iVar1 /*32*/].f_5[iVar0] = Global_93123.f_1665[iVar1 /*32*/].f_5[iVar0];
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 < 15)
		{
			Global_95528.f_1665[iVar1 /*32*/].f_16[iVar0] = Global_93123.f_1665[iVar1 /*32*/].f_16[iVar0];
			iVar0++;
		}
		Global_95528.f_1762[iVar1] = Global_93123.f_1762[iVar1];
		iVar0 = 0;
		while (iVar0 <= 3)
		{
			Global_95528.f_2259[iVar1 /*15*/][iVar0] = Global_93123.f_2259[iVar1 /*15*/][iVar0];
			Global_95528.f_2259[iVar1 /*15*/].f_5[iVar0] = Global_93123.f_2259[iVar1 /*15*/].f_5[iVar0];
			Global_95528.f_2259[iVar1 /*15*/].f_10[iVar0] = Global_93123.f_2259[iVar1 /*15*/].f_10[iVar0];
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 <= 2)
		{
			Global_95528.f_1766[iVar1 /*164*/][iVar0] = Global_93123.f_1766[iVar1 /*164*/][iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_4[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_4[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_8[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_8[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_12[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_12[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_16[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_16[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_20[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_20[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_24[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_24[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_28[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_28[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_32[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_32[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_36[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_36[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_40[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_40[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_44[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_44[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_48[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_48[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_52[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_52[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_56[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_56[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_60[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_60[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_64[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_64[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_68[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_68[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_72[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_72[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_76[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_76[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_80[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_80[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_84[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_84[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_88[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_88[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_92[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_92[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_96[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_96[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_100[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_100[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_104[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_104[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_108[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_108[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_112[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_112[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_116[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_116[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_120[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_120[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_124[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_124[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_128[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_128[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_132[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_132[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_136[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_136[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_140[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_140[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_144[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_144[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_148[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_148[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_152[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_152[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_156[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_156[iVar0];
			Global_95528.f_1766[iVar1 /*164*/].f_160[iVar0] = Global_93123.f_1766[iVar1 /*164*/].f_160[iVar0];
			iVar0++;
		}
		iVar1++;
	}
	Global_95528.f_2305 = { Global_93123.f_2305 };
	Global_95528.f_2305.f_3 = Global_93123.f_2305.f_3;
	Global_95528.f_2311 = { Global_93123.f_2311 };
	Global_95528.f_2311.f_3 = { Global_93123.f_2311.f_3 };
	Global_95528.f_2311.f_6 = Global_93123.f_2311.f_6;
	Global_95528.f_2311.f_8 = Global_95528.f_2311.f_8;
	Global_95528.f_2311.f_7 = Global_93123.f_2311.f_7;
	Global_95528.f_2311.f_9 = Global_93123.f_2311.f_9;
	Global_95528.f_2311.f_11 = Global_93123.f_2311.f_11;
	Global_95528.f_2311.f_10 = Global_93123.f_2311.f_10;
	Global_95528.f_2311.f_12 = Global_93123.f_2311.f_12;
	Global_95528.f_2311.f_12.f_1 = { Global_93123.f_2311.f_12.f_1 };
	Global_95528.f_2311.f_12.f_5 = Global_93123.f_2311.f_12.f_5;
	Global_95528.f_2311.f_12.f_6 = Global_93123.f_2311.f_12.f_6;
	Global_95528.f_2311.f_12.f_7 = Global_93123.f_2311.f_12.f_7;
	Global_95528.f_2311.f_12.f_8 = Global_93123.f_2311.f_12.f_8;
	Global_95528.f_2311.f_12.f_9 = { Global_93123.f_2311.f_12.f_9 };
	Global_95528.f_2311.f_12.f_59 = { Global_93123.f_2311.f_12.f_59 };
	Global_95528.f_2311.f_12.f_62 = Global_93123.f_2311.f_12.f_62;
	Global_95528.f_2311.f_12.f_63 = Global_93123.f_2311.f_12.f_63;
	Global_95528.f_2311.f_12.f_64 = Global_93123.f_2311.f_12.f_64;
	Global_95528.f_2311.f_12.f_65 = Global_93123.f_2311.f_12.f_65;
	Global_95528.f_2311.f_12.f_77 = Global_93123.f_2311.f_12.f_77;
	Global_95528.f_2311.f_12.f_66 = Global_93123.f_2311.f_12.f_66;
	Global_95528.f_2311.f_12.f_67 = Global_93123.f_2311.f_12.f_67;
	Global_95528.f_2311.f_12.f_68 = Global_93123.f_2311.f_12.f_68;
	Global_95528.f_2311.f_12.f_69 = Global_93123.f_2311.f_12.f_69;
	Global_95528.f_2311.f_12.f_71 = Global_93123.f_2311.f_12.f_71;
	Global_95528.f_2311.f_12.f_72 = Global_93123.f_2311.f_12.f_72;
	Global_95528.f_2311.f_12.f_73 = Global_93123.f_2311.f_12.f_73;
	Global_95528.f_2311.f_12.f_74 = Global_93123.f_2311.f_12.f_74;
	Global_95528.f_2311.f_12.f_75 = Global_93123.f_2311.f_12.f_75;
	Global_95528.f_2311.f_12.f_76 = Global_93123.f_2311.f_12.f_76;
	Global_95528.f_2401 = Global_93123.f_2401;
	Global_95528.f_2401.f_1 = Global_93123.f_2401.f_1;
	Global_95528.f_2401.f_2 = Global_93123.f_2401.f_2;
	Global_95528.f_2401.f_3 = Global_93123.f_2401.f_3;
}

void func_1051(var uParam0, char* sParam1, int iParam2, char* sParam3, int iParam4, int iParam5)//Position - 0x9D685
{
	int iVar0;
	int iVar1;
	
	*uParam0 = func_1027();
	uParam0->f_1 = func_933();
	gameplay::_get_weather_type_transition(&(uParam0->f_6), &(uParam0->f_7), &(uParam0->f_8));
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		func_1076(&(uParam0->f_2305), 0);
		func_1075(player::player_ped_id());
		func_1070(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_101186.f_1902.f_539.f_294[iVar1];
		if (iVar1 == func_1069())
		{
			func_1066(player::player_ped_id(), &(uParam0->f_616[iVar1 /*65*/]), 1);
		}
		else
		{
			iVar0 = 0;
			while (iVar0 < 12)
			{
				uParam0->f_616[iVar1 /*65*/][iVar0] = Global_91100[iVar1 /*65*/][iVar0];
				uParam0->f_616[iVar1 /*65*/].f_13[iVar0] = Global_91100[iVar1 /*65*/].f_13[iVar0];
				iVar0++;
			}
			uParam0->f_616[iVar1 /*65*/].f_59 = Global_91100[iVar1 /*65*/].f_59;
			uParam0->f_616[iVar1 /*65*/].f_60 = Global_91100[iVar1 /*65*/].f_60;
			uParam0->f_616[iVar1 /*65*/].f_61 = Global_91100[iVar1 /*65*/].f_61;
			uParam0->f_616[iVar1 /*65*/].f_62 = Global_91100[iVar1 /*65*/].f_62;
			uParam0->f_616[iVar1 /*65*/].f_63 = Global_91100[iVar1 /*65*/].f_63;
			uParam0->f_616[iVar1 /*65*/].f_64 = Global_91100[iVar1 /*65*/].f_64;
			iVar0 = 0;
			while (iVar0 < 9)
			{
				uParam0->f_616[iVar1 /*65*/].f_39[iVar0] = Global_91100[iVar1 /*65*/].f_39[iVar0];
				uParam0->f_616[iVar1 /*65*/].f_49[iVar0] = Global_91100[iVar1 /*65*/].f_49[iVar0];
				iVar0++;
			}
		}
		iVar0 = 0;
		while (iVar0 < 44)
		{
			uParam0->f_812[iVar1 /*284*/][iVar0 /*3*/] = { Global_101186.f_1902.f_539.f_298[iVar1 /*284*/][iVar0 /*3*/] };
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 < 50)
		{
			uParam0->f_812[iVar1 /*284*/].f_133[iVar0 /*3*/] = { Global_101186.f_1902.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_101186.f_25165.f_233[iVar1 /*69*/].f_1;
		uParam0->f_13[iVar1] = Global_52954[iVar1];
		uParam0->f_25[0 /*295*/][iVar1 /*98*/] = { Global_101186.f_1902.f_539.f_1635[0 /*295*/][iVar1 /*98*/] };
		uParam0->f_25[1 /*295*/][iVar1 /*98*/] = { Global_101186.f_1902.f_539.f_1635[1 /*295*/][iVar1 /*98*/] };
		iVar0 = 0;
		while (iVar0 <= 3)
		{
			uParam0->f_2259[iVar1 /*15*/][iVar0] = Global_101186.f_1902.f_493[iVar1 /*15*/][iVar0];
			uParam0->f_2259[iVar1 /*15*/].f_5[iVar0] = Global_101186.f_1902.f_493[iVar1 /*15*/].f_5[iVar0];
			uParam0->f_2259[iVar1 /*15*/].f_10[iVar0] = Global_101186.f_1902.f_493[iVar1 /*15*/].f_10[iVar0];
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 <= 2)
		{
			uParam0->f_1766[iVar1 /*164*/][iVar0] = Global_101186.f_1902[iVar1 /*164*/][iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_4[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_4[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_8[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_8[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_12[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_12[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_16[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_16[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_20[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_20[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_24[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_24[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_28[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_28[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_32[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_32[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_36[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_36[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_40[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_40[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_44[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_44[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_48[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_48[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_52[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_52[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_56[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_56[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_60[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_60[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_64[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_64[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_68[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_68[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_72[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_72[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_76[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_76[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_80[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_80[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_84[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_84[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_88[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_88[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_92[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_92[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_96[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_96[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_100[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_100[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_104[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_104[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_108[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_108[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_112[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_112[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_116[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_116[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_120[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_120[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_124[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_124[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_128[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_128[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_132[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_132[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_136[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_136[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_140[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_140[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_144[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_144[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_148[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_148[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_152[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_152[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_156[iVar0] = Global_101186.f_1902[iVar1 /*164*/].f_156[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_160[iVar0] = Global_101186.f_1902[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_1053(&(uParam0->f_2311), uParam0, iParam5, 1, 1, 0);
	}
	func_1052(&(uParam0->f_2401));
	sParam3 = sParam3;
	iParam2 = iParam2;
}

bool func_1052(var uParam0)//Position - 0x9E50D
{
	*uParam0 = Global_87492;
	uParam0->f_1 = Global_87493;
	uParam0->f_2 = 0;
	uParam0->f_3 = 0;
	return true;
}

void func_1053(var uParam0, var uParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0x9E52F
{
	int iVar0;
	
	if (iParam2 == 0)
	{
		iParam2 = player::player_ped_id();
	}
	if (entity::does_entity_exist(iParam2))
	{
		uParam1->f_5 = func_409(iParam2);
	}
	if (func_1063(iParam2, &iVar0, iParam3, iParam5))
	{
		func_1054(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_1054(uParam0, uParam1, iVar0, iParam4);
			}
		}
	}
}

bool func_1054(var uParam0, var uParam1, int iParam2, int iParam3)//Position - 0x9E5B7
{
	if (vehicle::is_vehicle_driveable(iParam2, 0))
	{
		func_1056(uParam0, iParam2, iParam3);
		uParam1->f_4 = iParam2;
		if (func_1055(iParam2))
		{
			uParam1->f_3 = 1;
		}
		else
		{
			uParam1->f_3 = 0;
		}
		return true;
	}
	return false;
}

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

void func_1056(var uParam0, int iParam1, int iParam2)//Position - 0x9E625
{
	func_1060(iParam1, &(uParam0->f_12));
	uParam0->f_7 = func_1059(iParam1, 145, 0);
	uParam0->f_11 = func_1058(iParam1);
	if (!uParam0->f_7)
	{
		if (!uParam0->f_10)
		{
			uParam0->f_10 = func_1057(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_69255 == 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_1057(int iParam0)//Position - 0x9E701
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 68)
	{
		if (entity::does_entity_exist(Global_68350.f_484[iVar0]))
		{
			if (iParam0 == Global_68350.f_484[iVar0])
			{
				return true;
			}
		}
		iVar0++;
	}
	return false;
}

int func_1058(int iParam0)//Position - 0x9E743
{
	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_88974[iVar0]))
		{
			if (Global_88974[iVar0] == iParam0)
			{
				return Global_88984[iVar0];
			}
		}
		iVar0++;
	}
	return 145;
}

bool func_1059(int iParam0, int iParam1, int iParam2)//Position - 0x9E7A6
{
	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_88974[iVar0]))
		{
			if (Global_88974[iVar0] == iParam0)
			{
				if (iParam1 == 145 || iParam1 == Global_88984[iVar0])
				{
					if (iParam2 == 0 || entity::get_entity_model(iParam0) == func_116(iParam1, iParam2))
					{
						return true;
					}
				}
			}
		}
		iVar0++;
	}
	return false;
}

void func_1060(int iParam0, var uParam1)//Position - 0x9E834
{
	int iVar0;
	
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		func_1062(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_1061(&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_852(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);
		}
	}
}

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

void func_1062(var uParam0)//Position - 0x9EBBC
{
	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_1063(int iParam0, var uParam1, int iParam2, int iParam3)//Position - 0x9EC6D
{
	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_1064(*uParam1, func_1027(), 1))
						{
							sVar0 = script::get_this_script_name();
							if (!gameplay::are_strings_equal(sVar0, "save_anywhere"))
							{
								return false;
							}
							else if (!ped::is_ped_in_any_vehicle(iParam0, 1))
							{
								return false;
							}
						}
						if (iParam3 == 1)
						{
							if (decorator::decor_exist_on(*uParam1, "IgnoredByQuickSave"))
							{
								if (decorator::decor_get_bool(*uParam1, "IgnoredByQuickSave"))
								{
									return false;
								}
							}
						}
						else if (vehicle::is_vehicle_model(*uParam1, joaat("blimp")))
						{
							return false;
						}
						return true;
					}
				}
			}
		}
	}
	return false;
}

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

bool func_1065(int iParam0, int iParam1, char* sParam2, var uParam3)//Position - 0x9EE0E
{
	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_1066(int iParam0, var uParam1, int iParam2)//Position - 0x9EEEE
{
	int iVar0;
	int iVar1;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = func_409(iParam0);
		iVar1 = 0;
		while (iVar1 < 12)
		{
			func_1068(iParam0, iVar1, &(uParam1->f_13[iVar1]), uParam1[iVar1], &(uParam1->f_26[iVar1]), iParam2, 145);
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 < 9)
		{
			func_1067(iParam0, iVar1, &(uParam1->f_39[iVar1]), &(uParam1->f_49[iVar1]), iParam2, 145);
			iVar1++;
		}
		if (func_64(iVar0))
		{
			uParam1->f_59 = Global_101186.f_1902.f_539[iVar0 /*65*/].f_59;
			uParam1->f_60 = Global_101186.f_1902.f_539[iVar0 /*65*/].f_60;
			uParam1->f_61 = Global_101186.f_1902.f_539[iVar0 /*65*/].f_61;
			uParam1->f_62 = Global_101186.f_1902.f_539[iVar0 /*65*/].f_62;
			uParam1->f_63 = Global_101186.f_1902.f_539[iVar0 /*65*/].f_63;
			uParam1->f_64 = Global_101186.f_1902.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_514(161, -1))
			{
				uParam1->f_59 = func_300(2043, Global_69340, 0);
			}
			else
			{
				uParam1->f_59 = func_300(745, Global_69340, 0);
			}
			uParam1->f_60 = func_300(746, Global_69340, 0);
			uParam1->f_61 = func_300(747, Global_69340, 0);
		}
		if (network::network_is_game_in_progress() && iParam0 == player::player_ped_id())
		{
			if (func_514(161, -1))
			{
				uParam1->f_59 = func_300(2043, Global_69340, 0);
			}
			else
			{
				uParam1->f_59 = func_300(745, Global_69340, 0);
			}
		}
	}
}

void func_1067(int iParam0, int iParam1, var uParam2, var uParam3, int iParam4, int iParam5)//Position - 0x9F098
{
	int iVar0;
	
	iVar0 = func_409(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_1068(int iParam0, int iParam1, var uParam2, var uParam3, var uParam4, int iParam5, int iParam6)//Position - 0x9F5E0
{
	int iVar0;
	
	iVar0 = func_409(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_1069()//Position - 0x9F821
{
	func_1028();
	return Global_101186.f_1902.f_539.f_3549;
}

void func_1070(int iParam0, int iParam1)//Position - 0x9F83A
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	iVar0 = func_409(iParam0);
	if (func_64(iVar0) && !ped::is_ped_injured(iParam0))
	{
		if (iParam0 == player::player_ped_id())
		{
			func_1071(iParam0, &(Global_101186.f_1902.f_539.f_298[iVar0 /*284*/]));
			iVar2 = 0;
			while (iVar2 <= (8 - 1))
			{
				Global_101186.f_1902.f_539.f_1151[iVar2 /*4*/][iVar0] = ui::_0xA13E93403F26C812(iVar2);
				if (iParam1)
				{
					iVar1 = ui::_0xA48931185F0536FE();
					if (Global_101186.f_1902.f_539.f_1151[iVar2 /*4*/][iVar0] == iVar1)
					{
						Global_101186.f_1902.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_1071(int iParam0, var uParam1)//Position - 0x9F92D
{
	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_1074(iVar0);
			if (iVar3 != 0)
			{
				vVar4.x = weapon::get_ped_weapontype_in_slot(iParam0, func_1074(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_1072(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_1072(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_57(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++;
		}
	}
}

int func_1072(int iParam0, int iParam1)//Position - 0x9FB91
{
	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_1073(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_1073(int iParam0, var uParam1)//Position - 0xA0650
{
	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_1074(int iParam0)//Position - 0xA068B
{
	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_1075(int iParam0)//Position - 0xA08FF
{
	int iVar0;
	
	iVar0 = func_409(iParam0);
	if (func_64(iVar0) && !ped::is_ped_injured(iParam0))
	{
		Global_101186.f_1902.f_539.f_294[iVar0] = ped::get_ped_armour(iParam0);
	}
}

void func_1076(var uParam0, int iParam1)//Position - 0xA093B
{
	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_69769, 4))
	{
		*uParam0 = { 452.0255f, 5571.85f, 780.1859f };
		uParam0->f_3 = 78.9858f;
	}
	else if (gameplay::is_bit_set(Global_69769, 5))
	{
		*uParam0 = { -745.4462f, 5595.146f, 40.6594f };
		uParam0->f_3 = 261.747f;
	}
	else if (gameplay::is_bit_set(Global_69769, 6))
	{
		*uParam0 = { -1675.521f, -1125.59f, 12.091f };
		uParam0->f_3 = 271.8208f;
	}
	else if (gameplay::is_bit_set(Global_69769, 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_1079(&iVar0))
		{
			if (func_1078(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_1027();
			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_1077(*uParam0, "v_hospital", 307.3065f, -589.9595f, 43.302f))
		{
			*uParam0 = { 279.4137f, -585.8815f, 43.2502f };
			uParam0->f_3 = 48.8028f;
		}
	}
}

bool func_1077(vector3 vParam0, char* sParam3, vector3 vParam4)//Position - 0xA0E98
{
	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_1078(int iParam0, var uParam1, var uParam2)//Position - 0xA0EDC
{
	*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_115(*uParam1, 0f, 0f, 0f, 0);
}

bool func_1079(var uParam0)//Position - 0xA1557
{
	if (!entity::is_entity_dead(player::player_ped_id(), 0) && !ped::is_ped_injured(player::player_ped_id()))
	{
		if (func_1086())
		{
			*uParam0 = func_1082(entity::get_entity_coords(player::player_ped_id(), 0), 5, -1, 0, 1, -1);
			if (func_1081(*uParam0) && !func_1080(*uParam0))
			{
				return true;
			}
		}
	}
	return false;
}

int func_1080(int iParam0)//Position - 0xA15B2
{
	return func_706(iParam0, 0, 1);
}

int func_1081(int iParam0)//Position - 0xA15C2
{
	return func_706(iParam0, 5, 1);
}

int func_1082(vector3 vParam0, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7)//Position - 0xA15D2
{
	int iVar0;
	float fVar1;
	float fVar2;
	int iVar3;
	
	fVar2 = 1000000f;
	iVar3 = -1;
	iVar0 = 0;
	while (iVar0 <= 44)
	{
		if (iParam3 == 5 || iParam3 == func_1085(iVar0))
		{
			if (!iParam5 || func_1084(iVar0))
			{
				fVar1 = gameplay::get_distance_between_coords(vParam0, func_1083(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_1083(int iParam0, int iParam1)//Position - 0xA1674
{
	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_1084(int iParam0)//Position - 0xA1B7A
{
	return func_706(iParam0, 0, 0);
}

int func_1085(int iParam0)//Position - 0xA1B8A
{
	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_1086()//Position - 0xA1DF0
{
	return Global_91362.f_296 > 0;
}

bool func_1087()//Position - 0xA1E01
{
	int iVar0;
	
	Global_100137 = 1;
	iVar0 = func_1097(0, 0, 119);
	if (iVar0 != 0)
	{
		func_1095(iVar0);
		func_1124(0, 0);
		func_1127(0, 0);
	}
	else
	{
		iLocal_5658 = func_1090(&iLocal_5657, 2, 14, 0, 0);
		system::wait(0);
		if (iLocal_5658 == 0)
		{
			func_1124(0, 0);
			func_1127(0, 0);
		}
		else if (iLocal_5658 == 1)
		{
			if ((!func_1089() && !func_1088()) && Global_91349.f_10 == 0)
			{
				func_1124(0, 0);
				gameplay::set_mission_flag(1);
				return true;
			}
			else
			{
				return false;
			}
		}
	}
	return false;
}

var func_1088()//Position - 0xA1E9A
{
	return Global_91349.f_1;
}

var func_1089()//Position - 0xA1EA8
{
	return Global_1318698;
}

int func_1090(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0xA1EB4
{
	int iVar0;
	
	if (iParam1 == 7)
	{
		return 0;
	}
	if (!iParam3)
	{
		if (Global_89121.f_44 == 1)
		{
			return 2;
		}
	}
	if (iParam1 == 0)
	{
		if (func_1094(0))
		{
			return 0;
		}
		Global_35706++;
		*iParam0 = Global_35706;
		player::set_player_invincible(player::get_player_index(), 0);
		Global_17118.f_5 = 0;
		if (iParam2 != 5)
		{
			player::force_cleanup(8);
		}
		Global_35742 = iParam2;
		Global_35704 = *iParam0;
		Global_35705 = iParam4;
		Global_35703 = 0;
		return 1;
	}
	if (*iParam0 != -1)
	{
		if (Global_35703 > 0)
		{
			iVar0 = 0;
			iVar0 = 0;
			while (iVar0 < Global_35703)
			{
				if (Global_35709[iVar0 /*4*/] == *iParam0)
				{
					return 2;
				}
				iVar0++;
			}
		}
		else if (Global_35704 == *iParam0)
		{
			return 1;
		}
		*iParam0 = -1;
	}
	if (*iParam0 == -1)
	{
		if (!func_1092(iParam2))
		{
			return 0;
		}
		if (Global_35703 == 8)
		{
			return 0;
		}
		Global_35706++;
		*iParam0 = Global_35706;
		Global_35709[Global_35703 /*4*/] = Global_35706;
		Global_35709[Global_35703 /*4*/].f_1 = iParam1;
		Global_35709[Global_35703 /*4*/].f_2 = iParam2;
		Global_35709[Global_35703 /*4*/].f_3 = 0;
		Global_35703++;
		if (iParam4 != 0)
		{
			func_1091(iParam0, iParam4);
		}
	}
	return 2;
}

void func_1091(var uParam0, int iParam1)//Position - 0xA1FEB
{
	int iVar0;
	
	if (Global_35703 == 0)
	{
		return;
	}
	if (*uParam0 == -1)
	{
		return;
	}
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < Global_35703)
	{
		if (Global_35709[iVar0 /*4*/] == *uParam0)
		{
			Global_35709[iVar0 /*4*/].f_3 = iParam1;
		}
		iVar0++;
	}
	*uParam0 = -1;
}

int func_1092(int iParam0)//Position - 0xA203A
{
	return func_1093(iParam0, Global_35742);
}

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

bool func_1094(int iParam0)//Position - 0xA222C
{
	if (Global_35742 == 15)
	{
		return false;
	}
	if (func_1092(iParam0))
	{
		return false;
	}
	return true;
}

void func_1095(int iParam0)//Position - 0xA224E
{
	float fVar0;
	int iVar1;
	
	gameplay::set_game_paused(true);
	controls::set_input_exclusive(2, 201);
	fVar0 = 0f;
	while (!controls::is_control_just_pressed(2, 201) || fVar0 < 1f)
	{
		iVar1 = func_1096(iParam0, 119);
		ui::set_warning_message("FBR_GENERIC", 16384, 0, 0, -1, "FBR_DIR_MODE", iVar1, 1);
		system::wait(0);
		fVar0 = (fVar0 + gameplay::get_frame_time());
	}
	gameplay::set_game_paused(false);
}

char* func_1096(int iParam0, int iParam1)//Position - 0xA22B1
{
	iParam1 = iParam1;
	switch (iParam0)
	{
		case 1:
			return "FBR_BLK_CLEAN";
			break;
		
		case 2:
			return "FBR_BLK_RNNNG";
			break;
		
		case 13:
			return "FBR_BLK_DEAD";
			break;
		
		case 3:
			return "FBR_BLK_MISS";
			break;
		
		case 5:
			return "FBR_BLK_SHOP";
			break;
		
		case 4:
			return "FBR_BLK_CUTS";
			break;
		
		case 6:
			return "FBR_BLK_WANT";
			break;
		
		case 7:
			return "FBR_BLK_ONLI";
			break;
		
		case 8:
			return "FBR_BLK_ACT";
			break;
		
		case 9:
			return "FBR_BLK_LOC";
			break;
		
		case 10:
			return "FBR_BLK_VEH";
			break;
		
		case 11:
			return "FBR_BLK_PARA";
			break;
		
		case 12:
			return "FBR_BLK_FALL";
			break;
		
		default:
			return "ERROR";
			break;
	}
	return "ERROR";
}

int func_1097(int iParam0, int iParam1, int iParam2)//Position - 0xA23AF
{
	int iVar0;
	
	iParam2 = iParam2;
	if (entity::is_entity_dead(player::player_ped_id(), 0))
	{
		return 13;
	}
	if (iParam1)
	{
		if (script::_get_number_of_instances_of_streamed_script(script::_get_this_script_hash()) > 1)
		{
			return 2;
		}
	}
	if (func_1122() && !func_211(14))
	{
		return 3;
	}
	if (func_1121())
	{
		return 3;
	}
	if (func_1120())
	{
		return 8;
	}
	if (iParam1)
	{
		if (func_1088())
		{
			return 8;
		}
	}
	if (Global_88563)
	{
		return 3;
	}
	if (Global_25405)
	{
		return 8;
	}
	if (Global_25300)
	{
		return 8;
	}
	if (Global_2621550)
	{
		if (script::_get_number_of_instances_of_streamed_script(-1516147206) > 0)
		{
			return 3;
		}
	}
	else if (Global_2621549)
	{
		if (script::_get_number_of_instances_of_streamed_script(2006115718) > 0)
		{
			return 3;
		}
	}
	else if (script::_get_number_of_instances_of_streamed_script(joaat("mission_stat_watcher")) > 0)
	{
		return 3;
	}
	if (script::_get_number_of_instances_of_streamed_script(joaat("finale_choice")) > 0)
	{
		return 3;
	}
	if (script::_get_number_of_instances_of_streamed_script(joaat("creator")) > 0)
	{
		return 3;
	}
	if (script::_get_number_of_instances_of_streamed_script(joaat("respawn_controller")) > 0)
	{
		return 13;
	}
	if (func_1119(iParam1))
	{
		return 3;
	}
	if (ped::is_ped_falling(player::player_ped_id()) || ped::is_ped_ragdoll(player::player_ped_id()))
	{
		return 12;
	}
	if (func_1118(Global_100211, 256))
	{
		return 3;
	}
	if (((func_1086() || func_1117()) || func_1115()) || func_1114())
	{
		return 5;
	}
	if (func_1114())
	{
		return 5;
	}
	if (func_1113())
	{
		return 5;
	}
	if (func_1112())
	{
		return 5;
	}
	if (func_1117())
	{
		return 5;
	}
	if (func_901() && !Global_100137)
	{
		return 8;
	}
	if (func_1115())
	{
		return 5;
	}
	if (streaming::is_player_switch_in_progress() || func_1111())
	{
		return 4;
	}
	if (func_1110())
	{
		return 4;
	}
	if (entity::does_entity_exist(player::player_ped_id()))
	{
		if (!ped::is_ped_injured(player::player_ped_id()))
		{
			iVar0 = func_1101(60);
			if (iVar0 != 0)
			{
				return iVar0;
			}
			if (ped::is_ped_in_parachute_free_fall(player::player_ped_id()) || ped::get_ped_parachute_state(player::player_ped_id()) != -1)
			{
				return 11;
			}
			if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1) || Global_100233)
			{
				return 10;
			}
		}
	}
	if (Global_25403)
	{
		return 8;
	}
	if (Global_69519)
	{
		return 4;
	}
	if (player::is_player_playing(player::player_id()))
	{
		if (player::get_player_wanted_level(player::player_id()) > 0 || player::is_player_being_arrested(player::player_id(), 1))
		{
			return 6;
		}
		if (player::is_player_climbing(player::player_id()))
		{
			return 8;
		}
		if (ai::is_ped_getting_up(player::player_ped_id()))
		{
			return 8;
		}
	}
	if (network::network_is_game_in_progress())
	{
		return 7;
	}
	if (func_1100())
	{
		return 8;
	}
	if (Global_25154)
	{
		return 3;
	}
	if (cam::is_gameplay_hint_active())
	{
		return 4;
	}
	if (entity::is_entity_in_angled_area(player::player_ped_id(), 439.4357f, -997.4747f, 28.9584f, 428.3288f, -997.0398f, 24.8372f, 8f, 0, true, 0))
	{
		return 9;
	}
	if (entity::is_entity_in_water(player::player_ped_id()))
	{
		return 9;
	}
	if (iParam1)
	{
		if (!func_1098(0))
		{
			return 8;
		}
	}
	if (ped::is_ped_on_vehicle(player::player_ped_id()))
	{
		return 9;
	}
	return 0;
}

bool func_1098(int iParam0)//Position - 0xA26EB
{
	if (ped::is_ped_injured(player::player_ped_id()))
	{
		return false;
	}
	if ((((((((((!player::is_player_control_on(player::player_id()) || !player::is_player_ready_for_cutscene(player::player_id())) || ped::is_ped_shooting(player::player_ped_id())) || ped::is_ped_in_combat(player::player_ped_id(), 0)) || ped::is_ped_in_melee_combat(player::player_ped_id())) || ped::is_ped_being_jacked(player::player_ped_id())) || ped::is_ped_getting_into_a_vehicle(player::player_ped_id())) || ai::is_ped_getting_up(player::player_ped_id())) || entity::is_entity_in_air(player::player_ped_id())) || ped::is_ped_ragdoll(player::player_ped_id())) || player::is_player_being_arrested(player::player_id(), 1))
	{
		return false;
	}
	if ((((((func_1110() || Global_17118.f_4) || func_1099()) || gameplay::is_memory_card_in_use()) || gameplay::is_auto_save_in_progress()) || func_1111()) || func_1121())
	{
		return false;
	}
	if (!iParam0)
	{
		if (gameplay::get_mission_flag())
		{
			return false;
		}
	}
	return true;
}

int func_1099()//Position - 0xA27FB
{
	if (!network::network_is_game_in_progress())
	{
		return Global_89121.f_44 == 1;
	}
	return false;
}

var func_1100()//Position - 0xA2817
{
	return Global_52961;
}

int func_1101(int iParam0)//Position - 0xA2822
{
	vector3 vVar0;
	int iVar3;
	int iVar4;
	
	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) && ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
	{
		return 5;
	}
	vVar0 = { func_119(player::player_id()) };
	if (Global_100273[10 /*10*/].f_1)
	{
		if (system::vdist2(vVar0, 241.9889f, 360.4732f, 105.6166f) < 2f)
		{
			return 3;
		}
	}
	if (func_1109(2) && !func_1109(17))
	{
		if (system::vdist2(vVar0, -59.96629f, -1099.005f, 25.52088f) < 8f)
		{
			if (object::is_point_in_angled_area(vVar0, -61.26628f, -1096.505f, 25.52088f, -58.43333f, -1101.147f, 29.24937f, 1.25f, 0, true))
			{
				return 9;
			}
		}
	}
	if (system::vdist2(vVar0, -740.9346f, 5599.426f, 40.71515f) < 11f)
	{
		if (object::is_point_in_angled_area(vVar0, -746.1299f, 5599.226f, 40.47561f, -737.632f, 5599.364f, 44.1693f, 3.375f, 0, true))
		{
			return 9;
		}
	}
	if (system::vdist2(vVar0, -740.9346f, 5590.426f, 40.71515f) < 11f)
	{
		if (object::is_point_in_angled_area(vVar0, -746.1299f, 5590.667f, 40.4392f, -737.6585f, 5590.592f, 44.52327f, 3.375f, 0, true))
		{
			return 9;
		}
	}
	if (system::vdist2(vVar0, 446.3265f, 5566.35f, 780.2151f) < 11f)
	{
		if (object::is_point_in_angled_area(vVar0, 451.1661f, 5566.451f, 780.1703f, 442.5211f, 5566.374f, 783.9819f, 3.375f, 0, true))
		{
			return 9;
		}
	}
	if (system::vdist2(vVar0, 446.3265f, 5577.35f, 780.2151f) < 11f)
	{
		if (object::is_point_in_angled_area(vVar0, 451.1661f, 5577.867f, 780.1899f, 442.5765f, 5577.579f, 783.9086f, 3.375f, 0, true))
		{
			return 9;
		}
	}
	if (system::vdist2(vVar0, 128.83f, -1297.98f, 29.3f) < 2f || system::vdist2(vVar0, 95.07f, -1284.98f, 29.3f) < 2f)
	{
		return 9;
	}
	if (system::vdist2(vVar0, 1081.951f, -1976.762f, 30.47218f) < 6f && func_1108(26))
	{
		return 9;
	}
	if (!iLocal_36)
	{
		func_1102(iParam0);
	}
	iVar3 = interior::get_interior_from_entity(player::player_ped_id());
	if (iVar3 == 0)
	{
		return 0;
	}
	else if ((iVar3 == Global_100149 || iVar3 == Global_100150) || iVar3 == Global_100151)
	{
		return 9;
	}
	else if (iVar3 == Global_100140)
	{
		return 9;
	}
	else if (iVar3 == Global_100141)
	{
		return 9;
	}
	else if (iVar3 == Global_100144)
	{
		return 9;
	}
	else if (iVar3 == Global_100143)
	{
		return 9;
	}
	else if (iVar3 == Global_100145)
	{
		return 9;
	}
	else if (iVar3 == Global_100146)
	{
		return 9;
	}
	else if (iVar3 == Global_100147)
	{
		return 9;
	}
	else if (iVar3 == Global_100148)
	{
		return 9;
	}
	else if (iVar3 == Global_100152)
	{
		return 9;
	}
	else if (iVar3 == Global_100153)
	{
		return 9;
	}
	else if (iVar3 == Global_100154)
	{
		return 9;
	}
	else if (iVar3 == Global_100155)
	{
		return 9;
	}
	else if (iVar3 == Global_100156)
	{
		return 9;
	}
	else if ((iVar3 == Global_100157 || iVar3 == Global_100158) && func_1109(67))
	{
		return 9;
	}
	iVar4 = 0;
	while (iVar4 <= (19 - 1))
	{
		if (iVar3 == Global_100159[iVar4])
		{
			return 9;
		}
		iVar4++;
	}
	return 0;
}

void func_1102(var uParam0)//Position - 0xA2C4A
{
	int iVar0;
	
	uParam0 = uParam0;
	func_1105(24, &Global_100140);
	func_1105(47, &Global_100141);
	func_1105(10, &Global_100149);
	func_1105(9, &Global_100150);
	func_1105(8, &Global_100151);
	func_1105(21, &Global_100152);
	func_1105(11, &Global_100153);
	func_1105(18, &Global_100157);
	func_1105(19, &Global_100158);
	Global_100144 = interior::get_interior_at_coords_with_type(-76.6618f, 6222.191f, 32.2412f, "V_factory1");
	Global_100143 = interior::get_interior_at_coords_with_type(-98.2637f, 6210.022f, 31.924f, "V_factory2");
	Global_100145 = interior::get_interior_at_coords_with_type(-115.8956f, 6179.749f, 32.4102f, "V_factory3");
	Global_100146 = interior::get_interior_at_coords_with_type(-149.8199f, 6144.978f, 31.3353f, "V_factory4");
	Global_100147 = interior::get_interior_at_coords_with_type(16.3605f, -1100.259f, 28.797f, "v_gun");
	Global_100148 = interior::get_interior_at_coords_with_type(125.1948f, -1284.13f, 28.2847f, "v_strip3");
	Global_100154 = interior::get_interior_at_coords_with_type(-545.5717f, 1987.145f, 126.0262f, "cs6_08_mine_int");
	Global_100155 = interior::get_interior_at_coords_with_type(2330.598f, 2571.935f, 45.6802f, "ch3_01_trlr_int");
	Global_100156 = interior::get_interior_at_coords_with_type(-54.7f, -1092.7f, 26.4f, "v_carshowroom");
	iVar0 = 0;
	while (iVar0 <= (19 - 1))
	{
		Global_100159[iVar0] = interior::get_interior_at_coords(func_1103(iVar0));
		iVar0++;
	}
	iLocal_36 = 1;
}

Vector3 func_1103(int iParam0)//Position - 0xA2DDF
{
	if (!func_1104(iParam0))
	{
		return 0f, 0f, 0f;
	}
	switch (iParam0)
	{
		case 0:
			return -711.8212f, -915.9057f, 18.2377f;
		
		case 1:
			return -52.7185f, -1756.175f, 28.4432f;
		
		case 2:
			return 1159.441f, -325.6666f, 68.2272f;
		
		case 3:
			return 1699.429f, 4928.642f, 41.0858f;
		
		case 4:
			return -1822.926f, 788.9531f, 137.212f;
		
		case 5:
			return 1166.427f, 2703.528f, 37.1574f;
		
		case 6:
			return -2973.414f, 390.6885f, 14.0433f;
		
		case 7:
			return -1225.86f, -903.5782f, 11.3263f;
		
		case 8:
			return 1140.659f, -981.0806f, 45.4158f;
		
		case 9:
			return -1490.275f, -382.8514f, 39.1634f;
		
		case 10:
			return -3240.719f, 1004.508f, 11.8468f;
		
		case 11:
			return -3039.249f, 589.3831f, 6.9251f;
		
		case 12:
			return 544.4275f, 2672.061f, 41.1726f;
		
		case 13:
			return 2558.754f, 385.599f, 107.6391f;
		
		case 14:
			return 2681.511f, 3282.763f, 54.2573f;
		
		case 15:
			return 1731.153f, 6411.633f, 34.0373f;
		
		case 16:
			return 1964.931f, 3741.207f, 31.3599f;
		
		case 17:
			return 29.0707f, -1348.773f, 28.5101f;
		
		case 18:
			return 376.8503f, 323.9777f, 102.5825f;
		
		default:
	}
	return 0f, 0f, 0f;
}

bool func_1104(int iParam0)//Position - 0xA2FC9
{
	if (iParam0 >= 19)
	{
		return false;
	}
	else if (iParam0 <= -1)
	{
		return false;
	}
	return true;
}

var func_1105(int iParam0, var uParam1)//Position - 0xA2FEA
{
	struct<5> Var0;
	
	Var0 = { func_1106(iParam0) };
	*uParam1 = interior::get_interior_at_coords_with_type(Var0, Var0.f_3);
	return Var0.f_4;
}

struct<5> func_1106(int iParam0)//Position - 0xA300F
{
	struct<5> Var0;
	vector3 vVar5;
	
	switch (iParam0)
	{
		case 0:
			Var0 = { -447.4833f, 280.3197f, 77.5215f };
			Var0.f_3 = "v_comedy";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 1:
			Var0 = { -1906.786f, -573.7576f, 19.0773f };
			Var0.f_3 = "v_psycheoffice";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 2:
			Var0 = { 1399.973f, 1148.756f, 113.3336f };
			Var0.f_3 = "v_ranch";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 3:
			Var0 = { -598.6379f, -1608.399f, 26.0108f };
			Var0.f_3 = "v_recycle";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 4:
			Var0 = { -556.5089f, 286.3181f, 81.1763f };
			Var0.f_3 = "v_rockclub";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 5:
			Var0 = { -111.7116f, -11.912f, 69.5196f };
			Var0.f_3 = "v_janitor";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 6:
			Var0 = { 1274.934f, -1714.726f, 53.7715f };
			Var0.f_3 = "v_lesters";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 7:
			Var0 = { 147.433f, -2201.37f, 3.688f };
			Var0.f_3 = "v_torture";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 8:
			Var0 = { 320.9934f, 265.2515f, 82.1221f };
			Var0.f_3 = "v_cinema";
			Var0.f_4 = "v_cinema (Vinewood)";
			break;
		
		case 9:
			Var0 = { -1425.564f, -244.3f, 15.8053f };
			Var0.f_3 = "v_cinema";
			Var0.f_4 = "v_cinema (Morningwood)";
			break;
		
		case 10:
			Var0 = { 377.153f, -717.567f, 10.0536f };
			Var0.f_3 = "v_cinema";
			Var0.f_4 = "v_cinema (Downtown)";
			break;
		
		case 11:
			Var0 = { 245.1564f, 370.211f, 104.7382f };
			Var0.f_3 = "v_epsilonism";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 12:
			Var0 = { 173.1176f, -1003.279f, -99.9999f };
			Var0.f_3 = "v_garages";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 13:
			Var0 = { 199.9715f, -999.6678f, -100f };
			Var0.f_3 = "v_garagem";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 14:
			Var0 = { 228.6058f, -992.0537f, -99.9999f };
			Var0.f_3 = "v_garagel";
			Var0.f_3 = "hei_dlc_garage_high_new";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 15:
			Var0 = { 1854.254f, 3686.739f, 33.2671f };
			Var0.f_3 = "v_sheriff";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 16:
			Var0 = { -444.8907f, 6013.587f, 30.7164f };
			Var0.f_3 = "v_sheriff2";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 17:
			Var0 = { 3522.845f, 3707.965f, 19.9918f };
			Var0.f_3 = "v_lab";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 18:
			Var0 = { 717.2994f, -974.4271f, 23.9142f };
			Var0.f_3 = "v_sweat";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 19:
			Var0 = { 717.299f, -974.4271f, 23.9142f };
			Var0.f_3 = "v_sweatempty";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 20:
			Var0 = { 2449.785f, 4983.825f, 45.8106f };
			Var0.f_3 = "v_farmhouse";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 22:
			Var0 = { 1087.195f, -1988.445f, 28.649f };
			Var0.f_3 = "v_foundry";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 23:
			Var0 = { 982.233f, -2160.382f, 28.4761f };
			Var0.f_3 = "v_abattoir";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 21:
			Var0 = { 479.0568f, -1316.825f, 28.2038f };
			Var0.f_3 = "v_chopshop";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 24:
			Var0 = { -1005.663f, -478.3461f, 49.0265f };
			Var0.f_3 = "v_58_sol_office";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 25:
			vVar5 = { func_1107(1) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (1)";
			break;
		
		case 26:
			vVar5 = { func_1107(2) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (2)";
			break;
		
		case 27:
			vVar5 = { func_1107(3) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (3)";
			break;
		
		case 28:
			vVar5 = { func_1107(4) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (4)";
			break;
		
		case 29:
			vVar5 = { func_1107(5) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (5)";
			break;
		
		case 30:
			vVar5 = { func_1107(6) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (6)";
			break;
		
		case 31:
			vVar5 = { func_1107(7) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (7)";
			break;
		
		case 32:
			Var0 = { Global_1049163[34 /*1924*/].f_146.f_1517 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (8)";
			break;
		
		case 33:
			vVar5 = { func_1107(35) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (9)";
			break;
		
		case 34:
			vVar5 = { func_1107(36) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (10)";
			break;
		
		case 35:
			vVar5 = { func_1107(37) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (11)";
			break;
		
		case 36:
			vVar5 = { func_1107(38) };
			Var0 = { -20.1f, -580.8f, 91.3f };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (12)";
			break;
		
		case 37:
			vVar5 = { func_1107(39) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (13)";
			break;
		
		case 38:
			vVar5 = { func_1107(40) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (14)";
			break;
		
		case 39:
			vVar5 = { func_1107(41) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (15)";
			break;
		
		case 40:
			vVar5 = { func_1107(42) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (16)";
			break;
		
		case 41:
			vVar5 = { func_1107(43) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (17)";
			break;
		
		case 42:
			Var0 = { -470.3754f, -698.5207f, 51.5276f };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (18)";
			break;
		
		case 43:
			Var0 = { -460.6133f, -691.5562f, 69.9067f };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (19)";
			break;
		
		case 44:
			Var0 = { 300.633f, -997.4288f, -99.9727f };
			Var0.f_3 = "hei_dlc_apart_high_new";
			Var0.f_4 = "hei_dlc_apart_high_new (20)";
			break;
		
		case 49:
			Var0 = { -171.3969f, 494.2671f, 134.4935f };
			Var0.f_3 = "apa_v_mp_stilts_b";
			Var0.f_4 = "apa_v_mp_stilts_b (1)";
			break;
		
		case 50:
			Var0 = { 339.4982f, 434.0887f, 146.2206f };
			Var0.f_3 = "apa_v_mp_stilts_b";
			Var0.f_4 = "apa_v_mp_stilts_b (2)";
			break;
		
		case 51:
			Var0 = { -761.3884f, 615.7333f, 140.9805f };
			Var0.f_3 = "apa_v_mp_stilts_b";
			Var0.f_4 = "apa_v_mp_stilts_b (3)";
			break;
		
		case 52:
			Var0 = { -678.1752f, 591.0076f, 142.2196f };
			Var0.f_3 = "apa_v_mp_stilts_b";
			Var0.f_4 = "apa_v_mp_stilts_b (4)";
			break;
		
		case 53:
			Var0 = { 120.0541f, 553.793f, 181.0943f };
			Var0.f_3 = "apa_v_mp_stilts_a";
			Var0.f_4 = "apa_v_mp_stilts_a (5)";
			break;
		
		case 54:
			Var0 = { -571.4039f, 655.2008f, 142.6293f };
			Var0.f_3 = "apa_v_mp_stilts_a";
			Var0.f_4 = "apa_v_mp_stilts_a (7)";
			break;
		
		case 55:
			Var0 = { -742.2565f, 587.6547f, 143.0577f };
			Var0.f_3 = "apa_v_mp_stilts_a";
			Var0.f_4 = "apa_v_mp_stilts_a (8)";
			break;
		
		case 56:
			Var0 = { -857.2222f, 685.051f, 149.6502f };
			Var0.f_3 = "apa_v_mp_stilts_a";
			Var0.f_4 = "apa_v_mp_stilts_a (10)";
			break;
		
		case 57:
			Var0 = { -1287.65f, 443.2707f, 94.6919f };
			Var0.f_3 = "apa_v_mp_stilts_a";
			Var0.f_4 = "apa_v_mp_stilts_a (12)";
			break;
		
		case 58:
			Var0 = { 374.2012f, 416.9688f, 142.5991f };
			Var0.f_3 = "apa_v_mp_stilts_a";
			Var0.f_4 = "apa_v_mp_stilts_a (13)";
			break;
		
		case 45:
			Var0 = { -16.29585f, -684.0385f, 33.50832f };
			Var0.f_3 = "dt1_03_carpark";
			Var0.f_4 = "dt1_03_carpark";
			break;
		
		case 46:
			Var0 = { 341.1f, -1000f, -99.2f };
			Var0.f_3 = "v_apart_midspaz";
			Var0.f_4 = "v_apart_midspaz";
			break;
		
		case 47:
			Var0 = { 199.9716f, -1018.954f, -100f };
			Var0.f_3 = "v_garagem_sp";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 48:
			Var0 = { -1388.001f, -618.4197f, 30.8196f };
			Var0.f_3 = "v_bahama";
			Var0.f_4 = Var0.f_3;
			break;
	}
	switch (iParam0)
	{
		case 59:
			Var0 = { -787.7805f, 334.9232f, 215.8384f };
			Var0.f_3 = "apa_v_mp_h_01";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 60:
			Var0 = { -787.7805f, 334.9232f, 215.8384f };
			Var0.f_3 = "apa_v_mp_h_02";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 61:
			Var0 = { -787.7805f, 334.9232f, 215.8384f };
			Var0.f_3 = "apa_v_mp_h_03";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 62:
			Var0 = { -787.7805f, 334.9232f, 215.8384f };
			Var0.f_3 = "apa_v_mp_h_04";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 63:
			Var0 = { -787.7805f, 334.9232f, 215.8384f };
			Var0.f_3 = "apa_v_mp_h_05";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 64:
			Var0 = { -787.7805f, 334.9232f, 215.8384f };
			Var0.f_3 = "apa_v_mp_h_06";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 65:
			Var0 = { -787.7805f, 334.9232f, 215.8384f };
			Var0.f_3 = "apa_v_mp_h_07";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 66:
			Var0 = { -787.7805f, 334.9232f, 215.8384f };
			Var0.f_3 = "apa_v_mp_h_08";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 67:
			Var0 = { -773.2258f, 322.8252f, 194.8862f };
			Var0.f_3 = "apa_v_mp_h_01";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 68:
			Var0 = { -773.2258f, 322.8252f, 194.8862f };
			Var0.f_3 = "apa_v_mp_h_02";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 69:
			Var0 = { -773.2258f, 322.8252f, 194.8862f };
			Var0.f_3 = "apa_v_mp_h_03";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 70:
			Var0 = { -773.2258f, 322.8252f, 194.8862f };
			Var0.f_3 = "apa_v_mp_h_04";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 71:
			Var0 = { -773.2258f, 322.8252f, 194.8862f };
			Var0.f_3 = "apa_v_mp_h_05";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 72:
			Var0 = { -773.2258f, 322.8252f, 194.8862f };
			Var0.f_3 = "apa_v_mp_h_06";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 73:
			Var0 = { -773.2258f, 322.8252f, 194.8862f };
			Var0.f_3 = "apa_v_mp_h_07";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 74:
			Var0 = { -773.2258f, 322.8252f, 194.8862f };
			Var0.f_3 = "apa_v_mp_h_08";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 75:
			Var0 = { -787.7805f, 334.9232f, 186.1134f };
			Var0.f_3 = "apa_v_mp_h_01";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 76:
			Var0 = { -787.7805f, 334.9232f, 186.1134f };
			Var0.f_3 = "apa_v_mp_h_02";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 77:
			Var0 = { -787.7805f, 334.9232f, 186.1134f };
			Var0.f_3 = "apa_v_mp_h_03";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 78:
			Var0 = { -787.7805f, 334.9232f, 186.1134f };
			Var0.f_3 = "apa_v_mp_h_04";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 79:
			Var0 = { -787.7805f, 334.9232f, 186.1134f };
			Var0.f_3 = "apa_v_mp_h_05";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 80:
			Var0 = { -787.7805f, 334.9232f, 186.1134f };
			Var0.f_3 = "apa_v_mp_h_06";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 81:
			Var0 = { -787.7805f, 334.9232f, 186.1134f };
			Var0.f_3 = "apa_v_mp_h_07";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 82:
			Var0 = { -787.7805f, 334.9232f, 186.1134f };
			Var0.f_3 = "apa_v_mp_h_08";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 83:
			vVar5 = { func_1107(87) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_01a_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 84:
			vVar5 = { func_1107(87) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_01b_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 85:
			vVar5 = { func_1107(87) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_01c_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 86:
			vVar5 = { func_1107(87) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_02a_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 87:
			vVar5 = { func_1107(87) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_02b_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 88:
			vVar5 = { func_1107(87) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_02c_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 89:
			vVar5 = { func_1107(87) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_03a_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 90:
			vVar5 = { func_1107(87) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_03b_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 91:
			vVar5 = { func_1107(87) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_03c_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 92:
			vVar5 = { func_1107(88) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_01a_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 93:
			vVar5 = { func_1107(88) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_01b_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 94:
			vVar5 = { func_1107(88) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_01c_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 95:
			vVar5 = { func_1107(88) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_02a_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 96:
			vVar5 = { func_1107(88) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_02b_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 97:
			vVar5 = { func_1107(88) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_02c_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 98:
			vVar5 = { func_1107(88) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_03a_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 99:
			vVar5 = { func_1107(88) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_03b_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 100:
			vVar5 = { func_1107(88) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_03c_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 101:
			vVar5 = { func_1107(89) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_01a_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 102:
			vVar5 = { func_1107(89) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_01b_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 103:
			vVar5 = { func_1107(89) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_01c_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 104:
			vVar5 = { func_1107(89) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_02a_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 105:
			vVar5 = { func_1107(89) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_02b_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 106:
			vVar5 = { func_1107(89) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_02c_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 107:
			vVar5 = { func_1107(89) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_03a_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 108:
			vVar5 = { func_1107(89) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_03b_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 109:
			vVar5 = { func_1107(89) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_03c_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 110:
			vVar5 = { func_1107(90) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_01a_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 111:
			vVar5 = { func_1107(90) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_01b_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 112:
			vVar5 = { func_1107(90) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_01c_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 113:
			vVar5 = { func_1107(90) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_02a_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 114:
			vVar5 = { func_1107(90) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_02b_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 115:
			vVar5 = { func_1107(90) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_02c_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 116:
			vVar5 = { func_1107(90) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_03a_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 117:
			vVar5 = { func_1107(90) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_03b_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		case 118:
			vVar5 = { func_1107(90) };
			Var0 = { vVar5 + Vector(1f, 0f, 0f) };
			Var0.f_3 = "ex_int_office_03c_dlc";
			Var0.f_4 = Var0.f_3;
			break;
		
		default:
			break;
	}
	return Var0;
}

struct<6> func_1107(int iParam0)//Position - 0xA45E5
{
	struct<6> Var0;
	
	switch (iParam0)
	{
		case -1:
			Var0 = { -794.9184f, 339.6266f, 200.4135f };
			Var0.f_3 = { 0f, 0f, 180f };
			break;
		
		case 1:
			Var0 = { -794.9184f, 339.6266f, 200.4135f };
			Var0.f_3 = { 0f, 0f, 180f };
			break;
		
		case 2:
			Var0 = { -761.0982f, 317.6259f, 169.5963f };
			Var0.f_3 = { 0f, 0f, 0f };
			break;
		
		case 3:
			Var0 = { -761.1888f, 317.6295f, 216.0503f };
			Var0.f_3 = { 0f, 0f, 0f };
			break;
		
		case 4:
			Var0 = { -795.3856f, 340.0188f, 152.7941f };
			Var0.f_3 = { 0f, 0f, 180f };
			break;
		
		case 61:
			Var0 = { -778.5056f, 332.3779f, 212.1968f };
			Var0.f_3 = { 0f, 0f, 90f };
			break;
		
		case 5:
			Var0 = { -258.1807f, -950.6853f, 70.0239f };
			Var0.f_3 = { 0f, 0f, 70f };
			break;
		
		case 6:
			Var0 = { -285.0051f, -957.6552f, 85.3035f };
			Var0.f_3 = { 0f, 0f, -110f };
			break;
		
		case 7:
			Var0 = { -1471.882f, -530.7484f, 62.34918f };
			Var0.f_3 = { 0f, 0f, -145f };
			break;
		
		case 34:
			Var0 = { -1471.882f, -530.7484f, 49.72156f };
			Var0.f_3 = { 0f, 0f, -145f };
			break;
		
		case 62:
			Var0 = { -1463.15f, -540.2369f, 74.2439f };
			Var0.f_3 = { 0f, 0f, -145f };
			break;
		
		case 35:
			Var0 = { -885.3702f, -451.4775f, 119.327f };
			Var0.f_3 = { 0f, 0f, 27.55617f };
			break;
		
		case 36:
			Var0 = { -913.0385f, -438.4284f, 114.3997f };
			Var0.f_3 = { 0f, 0f, -153.3093f };
			break;
		
		case 37:
			Var0 = { -892.5499f, -430.4789f, 88.25368f };
			Var0.f_3 = { 0f, 0f, 116.9193f };
			break;
		
		case 38:
			Var0 = { -35.0462f, -576.317f, 82.90739f };
			Var0.f_3 = { 0f, 0f, 160f };
			break;
		
		case 39:
			Var0 = { -10.3788f, -590.7431f, 93.02542f };
			Var0.f_3 = { 0f, 0f, 70f };
			break;
		
		case 65:
			Var0 = { -22.2487f, -589.1461f, 80.2305f };
			Var0.f_3 = { 0f, 0f, 69.88f };
			break;
		
		case 40:
			Var0 = { -900.6311f, -376.7462f, 78.27306f };
			Var0.f_3 = { 0f, 0f, 26.92611f };
			break;
		
		case 41:
			Var0 = { -929.483f, -374.5104f, 102.2329f };
			Var0.f_3 = { 0f, 0f, -152.5531f };
			break;
		
		case 63:
			Var0 = { -914.4202f, -375.8189f, 114.4743f };
			Var0.f_3 = { 0f, 0f, -63f };
			break;
		
		case 42:
			Var0 = { -617.1647f, 64.6042f, 100.8196f };
			Var0.f_3 = { 0f, 0f, 180f };
			break;
		
		case 43:
			Var0 = { -584.2015f, 42.7133f, 86.4187f };
			Var0.f_3 = { 0f, 0f, 0f };
			break;
		
		case 64:
			Var0 = { -609.5665f, 50.2203f, 98.3998f };
			Var0.f_3 = { 0f, 0f, -90f };
			break;
		
		case 73:
			Var0 = { -171.3969f, 494.2671f, 134.4935f };
			Var0.f_3 = { 0f, 0f, 11f };
			break;
		
		case 74:
			Var0 = { 339.4982f, 434.0887f, 146.2206f };
			Var0.f_3 = { 0f, 0f, -63.5f };
			break;
		
		case 75:
			Var0 = { -761.3884f, 615.7333f, 140.9805f };
			Var0.f_3 = { 0f, 0f, -71.5f };
			break;
		
		case 76:
			Var0 = { -678.1752f, 591.0076f, 142.2196f };
			Var0.f_3 = { 0f, 0f, 40.5f };
			break;
		
		case 77:
			Var0 = { 120.0541f, 553.793f, 181.0943f };
			Var0.f_3 = { 0f, 0f, 6f };
			break;
		
		case 78:
			Var0 = { -571.4039f, 655.2008f, 142.6293f };
			Var0.f_3 = { 0f, 0f, -14.5f };
			break;
		
		case 79:
			Var0 = { -742.2565f, 587.6547f, 143.0577f };
			Var0.f_3 = { 0f, 0f, -29f };
			break;
		
		case 80:
			Var0 = { -857.2222f, 685.051f, 149.6502f };
			Var0.f_3 = { 0f, 0f, 4.5f };
			break;
		
		case 81:
			Var0 = { -1287.65f, 443.2707f, 94.6919f };
			Var0.f_3 = { 0f, 0f, 0f };
			break;
		
		case 82:
			Var0 = { 374.2012f, 416.9688f, 142.6977f };
			Var0.f_3 = { 0f, 0f, -14f };
			break;
		
		case 83:
			Var0 = { -787.7805f, 334.9232f, 186.1134f };
			Var0.f_3 = { 0f, 0f, 90f };
			break;
		
		case 84:
			Var0 = { -787.7805f, 334.9232f, 215.8384f };
			Var0.f_3 = { 0f, 0f, 90f };
			break;
		
		case 85:
			Var0 = { -773.2258f, 322.8252f, 194.8862f };
			Var0.f_3 = { 0f, 0f, -90f };
			break;
		
		case 86:
			Var0 = { -1573.098f, -4085.806f, 9.7851f };
			Var0.f_3 = { 0f, 0f, 162f };
			break;
		
		case 8:
		case 9:
		case 10:
		case 11:
		case 12:
		case 13:
		case 14:
		case 15:
		case 16:
		case 66:
		case 67:
		case 68:
		case 69:
			Var0 = { 342.8157f, -997.4288f, -100f };
			Var0.f_3 = { 0f, 0f, 0f };
			break;
		
		case 17:
		case 18:
		case 19:
		case 20:
		case 21:
		case 22:
		case 23:
		case 70:
		case 71:
		case 72:
			Var0 = { 260.3297f, -997.4288f, -100f };
			Var0.f_3 = { 0f, 0f, 0f };
			break;
		
		case 87:
			Var0 = { -1572.187f, -570.8315f, 109.9879f };
			Var0.f_3 = { 0f, 0f, -54f };
			break;
		
		case 88:
			Var0 = { -1383.954f, -476.7112f, 73.507f };
			Var0.f_3 = { 0f, 0f, 8f };
			break;
		
		case 89:
			Var0 = { -138.0029f, -629.739f, 170.2854f };
			Var0.f_3 = { 0f, 0f, -84f };
			break;
		
		case 90:
			Var0 = { -74.8895f, -817.6883f, 244.8508f };
			Var0.f_3 = { 0f, 0f, 70f };
			break;
	}
	return Var0;
}

bool func_1108(int iParam0)//Position - 0xA4D3D
{
	int iVar0;
	
	if (iParam0 == 94 || iParam0 == -1)
	{
		return false;
	}
	if (Global_85628[iParam0 /*2*/])
	{
		return true;
	}
	iVar0 = 0;
	while (iVar0 < Global_82395)
	{
		if (Global_82395[iVar0 /*5*/] != -1)
		{
			if (Global_69790.f_109[Global_82395[iVar0 /*5*/] /*4*/] == iParam0)
			{
				return true;
			}
		}
		iVar0++;
	}
	return false;
}

int func_1109(int iParam0)//Position - 0xA4DA5
{
	if (iParam0 == 94 || iParam0 == -1)
	{
		return 0;
	}
	return Global_101186.f_7851.f_330[iParam0 /*6*/];
}

var func_1110()//Position - 0xA4DD1
{
	return Global_1315913;
}

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

int func_1112()//Position - 0xA4DF7
{
	return gameplay::is_bit_set(Global_69769, 9);
}

int func_1113()//Position - 0xA4E09
{
	return gameplay::is_bit_set(Global_69769, 8);
}

bool func_1114()//Position - 0xA4E1B
{
	if (!entity::is_entity_dead(player::player_ped_id(), 0) && !ped::is_ped_injured(player::player_ped_id()))
	{
		if (((((((((((((((entity::is_entity_playing_anim(player::player_ped_id(), "misshair_shop@barbers", "player_intro", 3) || entity::is_entity_playing_anim(player::player_ped_id(), "misshair_shop@barbers", "player_base", 3)) || entity::is_entity_playing_anim(player::player_ped_id(), "misshair_shop@barbers", "player_enterchair", 3)) || entity::is_entity_playing_anim(player::player_ped_id(), "misshair_shop@barbers", "player_exitchair", 3)) || entity::is_entity_playing_anim(player::player_ped_id(), "misshair_shop@barbers", "player_idle_a", 3)) || entity::is_entity_playing_anim(player::player_ped_id(), "misshair_shop@barbers", "player_idle_b", 3)) || entity::is_entity_playing_anim(player::player_ped_id(), "misshair_shop@barbers", "player_idle_c", 3)) || entity::is_entity_playing_anim(player::player_ped_id(), "misshair_shop@barbers", "player_idle_d", 3)) || entity::is_entity_playing_anim(player::player_ped_id(), "misshair_shop@hair_dressers", "player_intro", 3)) || entity::is_entity_playing_anim(player::player_ped_id(), "misshair_shop@hair_dressers", "player_base", 3)) || entity::is_entity_playing_anim(player::player_ped_id(), "misshair_shop@hair_dressers", "player_enterchair", 3)) || entity::is_entity_playing_anim(player::player_ped_id(), "misshair_shop@hair_dressers", "player_exitchair", 3)) || entity::is_entity_playing_anim(player::player_ped_id(), "misshair_shop@hair_dressers", "player_idle_a", 3)) || entity::is_entity_playing_anim(player::player_ped_id(), "misshair_shop@hair_dressers", "player_idle_b", 3)) || entity::is_entity_playing_anim(player::player_ped_id(), "misshair_shop@hair_dressers", "player_idle_c", 3)) || entity::is_entity_playing_anim(player::player_ped_id(), "misshair_shop@hair_dressers", "player_idle_d", 3))
		{
			return true;
		}
	}
	return false;
}

bool func_1115()//Position - 0xA4FD0
{
	int iVar0;
	
	if (func_1086())
	{
		iVar0 = 0;
		while (iVar0 < 45)
		{
			if (func_1116(iVar0))
			{
				return true;
			}
			iVar0++;
		}
	}
	return false;
}

int func_1116(int iParam0)//Position - 0xA5000
{
	return func_706(iParam0, 20, 1);
}

int func_1117()//Position - 0xA5011
{
	return Global_91362.f_297 > 0;
}

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

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

var func_1120()//Position - 0xA505C
{
	return Global_69788;
}

bool func_1121()//Position - 0xA5068
{
	if (Global_69781)
	{
		return true;
	}
	else if (Global_55774 && !Global_55780)
	{
		return true;
	}
	return false;
}

bool func_1122()//Position - 0xA5092
{
	if (Global_35742 == 15)
	{
		return false;
	}
	return true;
}

bool func_1123()//Position - 0xA50A7
{
	if (func_1119(0))
	{
		return false;
	}
	if (Global_91349.f_8)
	{
		if (Global_91349.f_10 > 0)
		{
			return false;
		}
	}
	else if (Global_91349.f_10 > 1)
	{
		return false;
	}
	Global_91349.f_10++;
	return true;
}

void func_1124(int iParam0, int iParam1)//Position - 0xA50F2
{
	Global_91349.f_7 = iParam0;
	Global_91349.f_8 = iParam1;
}

void func_1125(int iParam0)//Position - 0xA510A
{
	switch (iParam0)
	{
		case 0:
			time::set_clock_time(0, 0, 0);
			break;
		
		case 1:
			time::set_clock_time(5, 0, 0);
			break;
		
		case 2:
			time::set_clock_time(6, 0, 0);
			break;
		
		case 3:
			time::set_clock_time(8, 0, 0);
			break;
		
		case 4:
			time::set_clock_time(12, 0, 0);
			break;
		
		case 5:
			time::set_clock_time(16, 0, 0);
			break;
		
		case 6:
			time::set_clock_time(18, 30, 0);
			break;
		
		case 7:
			time::set_clock_time(21, 0, 0);
			break;
	}
}

void func_1126()//Position - 0xA519E
{
	int iVar0;
	int iVar1;
	int iVar2;
	vector3 vVar3;
	
	if (iLocal_7587)
	{
		func_801();
		func_877();
		iLocal_7587 = false;
	}
	iVar0 = false;
	iVar1 = gameplay::get_game_timer();
	iVar2 = 2000;
	Global_100135 = 1;
	iLocal_7675 = 1;
	iLocal_5943 = 0;
	while (!player::is_player_playing(player::player_id()))
	{
		if (!iVar0)
		{
			iVar0 = true;
			gameplay::ignore_next_restart(1);
			gameplay::_disable_automatic_respawn(0);
		}
		if (!(cam::is_screen_faded_out() || cam::is_screen_fading_out()) && (iVar1 + iVar2) < gameplay::get_game_timer())
		{
			cam::do_screen_fade_out(800);
		}
		system::wait(0);
	}
	vVar3 = { entity::get_entity_coords(player::player_ped_id(), 0) };
	if (((gameplay::absf(vVar3.x) > 7500f || gameplay::absf(vVar3.y) > 7500f) || vVar3.y > 2500f) || vVar3.y < -1500f)
	{
		entity::set_entity_coords(player::player_ped_id(), vLocal_7608, 0, false, 0, 1);
	}
}

void func_1127(int iParam0, int iParam1)//Position - 0xA5283
{
	int iVar0;
	vector3 vVar1;
	vector3 vVar4;
	int iVar7;
	int iVar8;
	float fVar9;
	
	iVar0 = 0;
	func_1224();
	func_1223();
	switch (iParam0)
	{
		case 0:
			if (iLocal_5657 != -1)
			{
				func_1222(&iLocal_5657);
			}
			player::set_player_invincible(player::player_id(), 0);
			unk_0x6BC97F4F4BB3C04B(player::player_id(), 0);
			entity::set_entity_proofs(player::player_ped_id(), false, false, false, false, false, false, 0, false);
			ped::set_ped_can_ragdoll(player::player_ped_id(), 1);
			player::set_player_control(player::player_id(), true, 0);
			func_1218();
			break;
		
		case 1:
			func_1210();
			cam::do_screen_fade_out(0);
			break;
		
		case 2:
			func_1146(1);
			func_1210();
			graphics::_0xE63D7C6EECECB66B(0);
			system::wait(10);
			if (!ped::is_ped_injured(player::player_ped_id()))
			{
				entity::set_entity_health(player::player_ped_id(), iLocal_7708);
			}
			system::wait(10);
			graphics::_0xE63D7C6EECECB66B(1);
			break;
		
		case 3:
			gameplay::_0x4EBB7E87AA0DBED4(0);
			func_1210();
			func_1146(0);
			graphics::_stop_all_screen_effects();
			if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
			{
				iVar7 = ped::get_vehicle_ped_is_using(player::player_ped_id());
				ai::clear_ped_tasks_immediately(player::player_ped_id());
				entity::set_entity_as_mission_entity(iVar7, true, 0);
				vehicle::delete_vehicle(&iVar7);
				entity::set_vehicle_as_no_longer_needed(&iVar7);
			}
			if (entity::does_entity_exist(iLocal_5941))
			{
				func_853(&iLocal_5941);
			}
			if (ui::does_blip_exist(iLocal_5940))
			{
				ui::remove_blip(&iLocal_5940);
			}
			player::_0xD2B315B6689D537D(player::player_id(), 1);
			if (ped::_0xFEC9A3B1820F3331(player::player_ped_id()))
			{
				ped::_0xB50EB4CCB29704AC(player::player_ped_id());
			}
			if (!func_87(vLocal_7665))
			{
				func_1145();
				vVar1 = { vLocal_7665 - Vector(20f, 20f, 20f) };
				vVar4 = { vLocal_7665 + Vector(20f, 20f, 20f) };
				vehicle::remove_vehicles_from_generators_in_area(vVar1, vVar4, 0);
				iVar8 = ped::add_scenario_blocking_area(vVar1, vVar4, 0, 1, 1, 1);
				fire::stop_fire_in_range(vLocal_7665, 200f);
				gameplay::clear_area(vLocal_7665, 200f, 1, 0, 0, false);
				if (!ped::is_ped_injured(player::player_ped_id()))
				{
					entity::set_entity_coords_no_offset(player::player_ped_id(), vLocal_7665 + Vector(5f, 0f, 0f), 0, 0, 1);
					entity::freeze_entity_position(player::player_ped_id(), true);
					iVar0 = gameplay::get_game_timer();
					func_1144();
					while (!func_1143() && (gameplay::get_game_timer() - iVar0) < 5000)
					{
						system::wait(0);
					}
					entity::set_entity_coords_no_offset(player::player_ped_id(), vLocal_7665, 0, 0, 1);
					entity::freeze_entity_position(player::player_ped_id(), false);
					ped::set_ped_can_ragdoll(player::player_ped_id(), 1);
					player::set_player_control(player::player_id(), true, 0);
					gameplay::get_ground_z_for_3d_coord(vLocal_7665, &fVar9, 0);
					if (fVar9 < (vLocal_7668.y - 0.1f))
					{
						player::start_player_teleport(player::player_id(), vLocal_7665 - Vector(0.6f, 0f, 0f), fLocal_7671, true, false, 1);
					}
					else
					{
						player::start_player_teleport(player::player_id(), vLocal_7665, fLocal_7671, true, true, 1);
					}
					ped::clear_ped_wetness(player::player_ped_id());
					ped::_0xC2EE020F5FB4DB53(player::player_ped_id());
					ped::_0x2208438012482A1A(player::player_ped_id(), 0, 0);
				}
				if (iLocal_7672 != 0)
				{
					interior::refresh_interior(iLocal_7672);
				}
			}
			graphics::_0xE63D7C6EECECB66B(0);
			system::wait(10);
			if (!ped::is_ped_injured(player::player_ped_id()))
			{
				entity::set_entity_health(player::player_ped_id(), iLocal_7708);
			}
			system::wait(10);
			graphics::_0xE63D7C6EECECB66B(1);
			ui::display_hud(true);
			ui::display_radar(true);
			func_1142();
			iVar0 = 0;
			while (!player::_has_player_teleport_finished(player::player_id()))
			{
				system::wait(0);
				iVar0++;
			}
			iVar0 = iVar0;
			func_1129();
			if (iVar8 != 0)
			{
				ped::remove_scenario_blocking_area(iVar8, 0);
			}
			func_1128(&iLocal_9673, vLocal_9677);
			func_1128(&iLocal_9672, vLocal_9674);
			vLocal_7665 = { entity::get_entity_coords(player::player_ped_id(), 1) };
			system::wait(0);
			if (!func_11(vLocal_7665, fLocal_7671, 0, 1, 0))
			{
				if (func_7(&vLocal_7665, &fLocal_7671, 0, 1, 1, 2.5f))
				{
					entity::set_entity_coords_no_offset(player::player_ped_id(), vLocal_7665 + Vector(0.7f, 0f, 0f), 0, 0, 1);
				}
			}
			player::set_player_invincible(player::player_id(), 0);
			unk_0x6BC97F4F4BB3C04B(player::player_id(), 0);
			entity::set_entity_proofs(player::player_ped_id(), false, false, false, false, false, false, 0, false);
			func_24(player::player_ped_id());
			ui::_0x7B21E0BB01E8224A(0);
			ped::set_ped_config_flag(player::player_ped_id(), 409, false);
			iLocal_9741 = gameplay::get_game_timer();
			while (!func_727())
			{
				system::wait(0);
			}
			cam::set_gameplay_cam_relative_heading(0f);
			cam::set_gameplay_cam_relative_pitch(0f, 1065353216);
			iLocal_7672 = interior::get_interior_from_entity(player::player_ped_id());
			if (iLocal_7672 != 0)
			{
				interior::_0x920D853F3E17F1DA(iLocal_7672, interior::get_room_key_from_entity(player::player_ped_id()));
			}
			if (iLocal_7674)
			{
				func_1123();
			}
			break;
	}
	stats::_0x98E2BC1CA26287C3();
	if (iParam0 != 2)
	{
		if (Global_101186.f_1902.f_539.f_1611[0] == 1)
		{
			player::special_ability_unlock(joaat("player_zero"));
		}
		if (Global_101186.f_1902.f_539.f_1611[1] == 1)
		{
			player::special_ability_unlock(joaat("player_one"));
		}
		if (Global_101186.f_1902.f_539.f_1611[2] == 1)
		{
			player::special_ability_unlock(joaat("player_two"));
		}
		if (func_643(entity::get_entity_model(player::player_ped_id())) == iLocal_5659)
		{
			switch (iLocal_5659)
			{
				case 0:
					stats::stat_set_int(joaat("sp0_special_ability"), iLocal_5660, 1);
					break;
				
				case 1:
					stats::stat_set_int(joaat("sp1_special_ability"), iLocal_5660, 1);
					break;
				
				case 2:
					stats::stat_set_int(joaat("sp2_special_ability"), iLocal_5660, 1);
					break;
				}
		}
		player::_0xFFEE8FA29AB9A18E(player::player_id());
	}
	if (iLocal_9747 != 0)
	{
		ped::remove_scenario_blocking_area(iLocal_9747, 0);
		iLocal_9747 = 0;
	}
	if (iParam0 != 0)
	{
		player::clear_player_wanted_level(player::player_id());
	}
	if (!iParam1)
	{
		cam::do_screen_fade_in(800);
	}
	if (gameplay::is_orbis_version())
	{
		controls::_0xCB0360EFEFB2580D(0);
	}
	script::terminate_this_thread();
}

void func_1128(int iParam0, vector3 vParam1)//Position - 0xA57AF
{
	int iVar0;
	vector3 vVar1;
	
	if (entity::does_entity_exist(*iParam0))
	{
		if (!entity::is_entity_dead(*iParam0, 0))
		{
			if (iLocal_9743 == 64)
			{
				entity::set_vehicle_as_no_longer_needed(iParam0);
				*iParam0 = 0;
			}
			else
			{
				iVar0 = entity::get_entity_model(*iParam0);
				func_730(vParam1, &vVar1, entity::get_entity_heading(*iParam0), iVar0);
				if (vehicle::is_vehicle_driveable(*iParam0, 0))
				{
					entity::set_entity_coords(*iParam0, vVar1, 1, false, 0, 1);
					entity::freeze_entity_position(*iParam0, false);
					vehicle::set_vehicle_on_ground_properly(*iParam0);
				}
			}
		}
	}
}

void func_1129()//Position - 0xA5829
{
	int iVar0;
	
	iVar0 = 47;
	while (iVar0 <= 50)
	{
		func_1131(iVar0, func_1141(iVar0));
		iVar0++;
	}
	iVar0 = 38;
	while (iVar0 <= 46)
	{
		func_1131(iVar0, func_1141(iVar0));
		iVar0++;
	}
	iVar0 = 51;
	while (iVar0 <= 53)
	{
		func_1131(iVar0, func_1141(iVar0));
		iVar0++;
	}
	if (func_1109(67) && func_1130(10) == 7)
	{
		func_1131(62, 4);
		func_1131(63, 4);
	}
}

int func_1130(int iParam0)//Position - 0xA58B5
{
	if (iParam0 == 13 || iParam0 == -1)
	{
		return 0;
	}
	return Global_101186.f_7851.f_99.f_205[iParam0];
}

void func_1131(int iParam0, int iParam1)//Position - 0xA58E2
{
	int iVar0;
	
	if (iParam0 != 226)
	{
		if (Global_69521)
		{
			iVar0 = Global_2428549.f_74[iParam0];
		}
		else
		{
			iVar0 = Global_101186.f_6027[iParam0];
		}
		if (iVar0 != iParam1 || gameplay::is_bit_set(Global_31530[(iParam0 / 32)], (iParam0 % 32)))
		{
			if ((((iParam1 == 4 || iParam1 == 3) || iParam1 == 5) || iParam1 == 6) || iParam1 == 2)
			{
				gameplay::set_bit(&(Global_31539[(iParam0 / 32)]), (iParam0 % 32));
				Global_32002[iParam0] = iParam1;
			}
			else if (Global_69521)
			{
				Global_2428549.f_74[iParam0] = iParam1;
			}
			else
			{
				Global_101186.f_6027[iParam0] = iParam1;
			}
			gameplay::set_bit(&(Global_31530[(iParam0 / 32)]), (iParam0 % 32));
			func_1133(iParam0);
			if (gameplay::is_bit_set(Global_31530[(iParam0 / 32)], (iParam0 % 32)))
			{
				func_1132(iParam0);
			}
		}
	}
}

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

void func_1133(int iParam0)//Position - 0xA5A29
{
	struct<7> Var0;
	int iVar7;
	int iVar8;
	int iVar9;
	float fVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	
	if (!func_761())
	{
		return;
	}
	if (ped::is_ped_injured(player::player_ped_id()))
	{
		return;
	}
	Var0 = { func_1140(iParam0) };
	if (gameplay::is_bit_set(Var0.f_4, 2))
	{
		func_1138(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_31539[(iParam0 / 32)], (iParam0 % 32)) && Global_32002[iParam0] == 2) && fVar10 > 210f)
	{
		gameplay::clear_bit(&(Global_31539[(iParam0 / 32)]), (iParam0 % 32));
		Global_31548[iParam0] = 0;
	}
	if (script::_get_number_of_instances_of_streamed_script(joaat("startup_positioning")) == 0)
	{
		if (gameplay::is_bit_set(Global_31775[(iParam0 / 32)], (iParam0 % 32)))
		{
			if (fVar10 < 25f)
			{
				if (Global_91362.f_294 == 0)
				{
					if (!entity::is_entity_dead(player::player_ped_id(), 0))
					{
						Global_91362.f_294 = interior::get_interior_from_entity(player::player_ped_id());
					}
				}
				iVar11 = Global_91362.f_294;
				iVar12 = interior::get_interior_at_coords(Var0);
				if (iVar11 == iVar12 && iVar11 != 0)
				{
					gameplay::set_bit(&(Global_31539[(iParam0 / 32)]), (iParam0 % 32));
					Global_32002[iParam0] = 3;
					gameplay::set_bit(&(Global_31530[(iParam0 / 32)]), (iParam0 % 32));
				}
			}
			gameplay::clear_bit(&(Global_31775[(iParam0 / 32)]), (iParam0 % 32));
		}
	}
	if (gameplay::is_bit_set(Global_31539[(iParam0 / 32)], (iParam0 % 32)))
	{
		iVar9 = Global_32002[iParam0];
	}
	else if (gameplay::is_bit_set(Var0.f_4, 0))
	{
		if (Global_101186.f_7851)
		{
			iVar9 = func_1135(iParam0);
		}
		else
		{
			iVar9 = 0;
		}
		if (func_211(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_1134())
		{
			iVar9 = 0;
		}
		else
		{
			iVar9 = 1;
		}
	}
	else
	{
		iVar9 = Global_101186.f_6027[iParam0];
	}
	if (Global_32229[iParam0] != iVar9)
	{
		iVar7 = true;
	}
	if (gameplay::is_bit_set(Global_31530[(iParam0 / 32)], (iParam0 % 32)))
	{
		if (!gameplay::is_bit_set(Global_31539[(iParam0 / 32)], (iParam0 % 32)) || (Global_31548[iParam0] == 0 && Global_32002[iParam0] != 2))
		{
			iVar7 = true;
		}
	}
	if (iVar7)
	{
		if (!Global_31529)
		{
		}
		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_31530[(iParam0 / 32)]), (iParam0 % 32));
			Global_32229[iParam0] = iVar9;
		}
	}
	if (gameplay::is_bit_set(Global_31539[(iParam0 / 32)], (iParam0 % 32)) && Global_32002[iParam0] != 2)
	{
		gameplay::set_bit(&(Global_31530[(iParam0 / 32)]), (iParam0 % 32));
		func_1132(iParam0);
		if (Global_31548[iParam0] < 2)
		{
			Global_31548[iParam0]++;
		}
	}
}

bool func_1134()//Position - 0xA5F0C
{
	if (player::is_player_wanted_level_greater(player::player_id(), 0))
	{
		return false;
	}
	switch (func_1027())
	{
		case 0:
			if (Global_101186.f_7851.f_99.f_58[65])
			{
				return true;
			}
			break;
		
		case 1:
			if (Global_101186.f_7851.f_99.f_58[66])
			{
				return true;
			}
			break;
		
		case 2:
			if (Global_101186.f_7851.f_99.f_58[65])
			{
				return true;
			}
			break;
	}
	return false;
}

bool func_1135(int iParam0)//Position - 0xA5F8B
{
	int iVar0;
	
	iVar0 = func_1027();
	if (func_1136(iParam0))
	{
		return true;
	}
	if (iParam0 == 49)
	{
		if (iVar0 == 1)
		{
			if (gameplay::is_bit_set(Global_101186.f_5995[5], 0) || gameplay::is_bit_set(Global_101186.f_5995[6], 0))
			{
				return false;
			}
		}
		if (func_64(iVar0))
		{
			if (gameplay::is_bit_set(Global_86670[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_101186.f_5995[0], 0))
				{
					return false;
				}
			}
			if (func_64(iVar0))
			{
				if (gameplay::is_bit_set(Global_86670[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_101186.f_5995[5], 0))
				{
					return false;
				}
			}
			if (func_64(iVar0))
			{
				if (gameplay::is_bit_set(Global_86670[5], iVar0))
				{
					return false;
				}
			}
			break;
		
		case 50:
			if (iVar0 == 1)
			{
				if (gameplay::is_bit_set(Global_101186.f_5995[6], 0))
				{
					return false;
				}
			}
			if (func_64(iVar0))
			{
				if (gameplay::is_bit_set(Global_86670[6], iVar0))
				{
					return false;
				}
			}
			break;
		
		case 51:
		case 52:
			if (iVar0 == 2)
			{
				if (gameplay::is_bit_set(Global_101186.f_5995[2], 0))
				{
					return false;
				}
				if (func_64(iVar0))
				{
					if (gameplay::is_bit_set(Global_86670[2], iVar0))
					{
						return false;
					}
				}
			}
			else if (iVar0 == 0)
			{
				if (gameplay::is_bit_set(Global_101186.f_5995[1], 0))
				{
					return false;
				}
				if (func_64(iVar0))
				{
					if (gameplay::is_bit_set(Global_86670[1], iVar0))
					{
						return false;
					}
				}
			}
			break;
		
		case 53:
			if (iVar0 == 2)
			{
				if (gameplay::is_bit_set(Global_101186.f_5995[3], 0))
				{
					return false;
				}
			}
			if (func_64(iVar0))
			{
				if (gameplay::is_bit_set(Global_86670[3], iVar0))
				{
					return false;
				}
			}
			break;
		
		default:
			return false;
			break;
	}
	return true;
}

bool func_1136(int iParam0)//Position - 0xA61E0
{
	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_1137(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_1137(int iParam0)//Position - 0xA624C
{
	return iParam0;
}

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

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

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

int func_1141(int iParam0)//Position - 0xA9831
{
	int iVar0;
	vector3 vVar1;
	int iVar8;
	
	iVar0 = func_1135(iParam0);
	vVar1 = { func_1140(iParam0) };
	if (iVar0 == 0)
	{
		return 3;
	}
	iVar8 = interior::get_interior_at_coords(vVar1);
	if (iLocal_7672 != iVar8 || iLocal_7672 == 0)
	{
		return 4;
	}
	return 3;
}

void func_1142()//Position - 0xA987E
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	if (34 > 60)
	{
	}
	iVar2 = 0;
	while (iVar2 < 34)
	{
		if (iVar2 <= 31)
		{
			iVar0 = 9;
			iVar1 = iVar2;
		}
		else
		{
			iVar0 = 10;
			iVar1 = (iVar2 - 32);
		}
		if (gameplay::is_bit_set(Global_101186.f_7851.f_99.f_219[iVar0], iVar1))
		{
			if (!gameplay::is_string_null_or_empty(&(Global_85822[iVar2 /*18*/])))
			{
				if (script::_get_number_of_instances_of_streamed_script(Global_85822[iVar2 /*18*/].f_17) > 0)
				{
				}
				else
				{
					script::request_script(&(Global_85822[iVar2 /*18*/]));
				}
			}
			else
			{
				gameplay::clear_bit(&(Global_101186.f_7851.f_99.f_219[iVar0]), iVar1);
			}
		}
		iVar2++;
	}
	iVar3 = false;
	while (!iVar3)
	{
		iVar3 = true;
		iVar2 = 0;
		while (iVar2 < 34)
		{
			if (iVar2 <= 31)
			{
				iVar0 = 9;
				iVar1 = iVar2;
			}
			else
			{
				iVar0 = 10;
				iVar1 = (iVar2 - 32);
			}
			if (gameplay::is_bit_set(Global_101186.f_7851.f_99.f_219[iVar0], iVar1))
			{
				if (script::_get_number_of_instances_of_streamed_script(Global_85822[iVar2 /*18*/].f_17) == 0)
				{
					if (!script::has_script_loaded(&(Global_85822[iVar2 /*18*/])))
					{
						iVar3 = false;
					}
					else
					{
						system::start_new_script(&(Global_85822[iVar2 /*18*/]), Global_85822[iVar2 /*18*/].f_16);
						script::set_script_as_no_longer_needed(&(Global_85822[iVar2 /*18*/]));
					}
				}
			}
			iVar2++;
		}
		system::wait(0);
	}
}

int func_1143()//Position - 0xA99C4
{
	return !Global_68350.f_553;
}

void func_1144()//Position - 0xA99D4
{
	Global_68350.f_553 = 1;
	Global_68350.f_554 = 0;
}

void func_1145()//Position - 0xA99EC
{
}

void func_1146(int iParam0)//Position - 0xA99F4
{
	if (gameplay::are_strings_equal(&Global_93115, script::get_this_script_name()))
	{
		if (!iParam0)
		{
			weapon::remove_all_ped_weapons(player::player_ped_id(), 1);
		}
		func_1147(&Global_93123, iParam0);
	}
}

void func_1147(var uParam0, int iParam1)//Position - 0xA9A24
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	
	time::set_clock_time(func_918(uParam0->f_1), func_917(uParam0->f_1), func_916(uParam0->f_1));
	time::set_clock_date(func_928(uParam0->f_1), func_929(uParam0->f_1), func_930(uParam0->f_1));
	gameplay::_set_weather_type_transition(uParam0->f_6, uParam0->f_7, uParam0->f_8);
	if (!iParam1)
	{
		if (!func_1165(*uParam0))
		{
			return;
		}
		func_1164(uParam0);
		func_1162(uParam0);
		stats::stat_set_int(joaat("sp0_special_ability"), uParam0->f_1762[0], 1);
		stats::stat_set_int(joaat("sp1_special_ability"), uParam0->f_1762[1], 1);
		stats::stat_set_int(joaat("sp2_special_ability"), uParam0->f_1762[2], 1);
		if (player::is_player_playing(player::player_id()))
		{
			player::_0xFFEE8FA29AB9A18E(player::player_id());
		}
		iVar1 = 0;
		iVar1 = 0;
		while (iVar1 <= 34)
		{
			if (!gameplay::is_string_null_or_empty(&(Global_101186.f_12907[iVar1 /*104*/])) && (iVar1 <= 20 || iVar1 >= 24))
			{
				if (Global_101186.f_12907[iVar1 /*104*/].f_18.f_3 == 31)
				{
				}
				func_920(&iVar0, Global_101186.f_12907[iVar1 /*104*/].f_18, Global_101186.f_12907[iVar1 /*104*/].f_18.f_1, Global_101186.f_12907[iVar1 /*104*/].f_18.f_2, Global_101186.f_12907[iVar1 /*104*/].f_18.f_3, (Global_101186.f_12907[iVar1 /*104*/].f_18.f_4 - 1), Global_101186.f_12907[iVar1 /*104*/].f_18.f_5);
				if (func_1160(iVar0, uParam0->f_1))
				{
					func_1159(&(Global_101186.f_12907[iVar1 /*104*/]), 1);
					func_1157(&(Global_101186.f_12907[iVar1 /*104*/]));
				}
			}
			iVar1++;
		}
		ui::hide_hud_component_this_frame(3);
		iVar2 = 0;
		while (iVar2 < 3)
		{
			Global_101186.f_1902.f_539.f_1635[0 /*295*/][iVar2 /*98*/] = { uParam0->f_25[0 /*295*/][iVar2 /*98*/] };
			Global_101186.f_1902.f_539.f_1635[1 /*295*/][iVar2 /*98*/] = { uParam0->f_25[1 /*295*/][iVar2 /*98*/] };
			if (Global_101186.f_25165.f_233[iVar2 /*69*/].f_1 != uParam0->f_9[iVar2])
			{
				while (Global_101186.f_25165.f_233[iVar2 /*69*/].f_1 != uParam0->f_9[iVar2] && iVar3 < 11)
				{
					func_1156(iVar2);
					iVar3++;
				}
			}
			iVar5 = (Global_52954[iVar2] - uParam0->f_13[iVar2]);
			if (iVar5 != 0)
			{
				Global_52954[iVar2] = uParam0->f_13[iVar2];
				func_1155(iVar2);
			}
			iVar4 = 0;
			while (iVar4 <= 3)
			{
				Global_101186.f_1902.f_493[iVar2 /*15*/][iVar4] = uParam0->f_2259[iVar2 /*15*/][iVar4];
				Global_101186.f_1902.f_493[iVar2 /*15*/].f_5[iVar4] = uParam0->f_2259[iVar2 /*15*/].f_5[iVar4];
				Global_101186.f_1902.f_493[iVar2 /*15*/].f_10[iVar4] = uParam0->f_2259[iVar2 /*15*/].f_10[iVar4];
				iVar4++;
			}
			iVar4 = 0;
			while (iVar4 <= 2)
			{
				Global_101186.f_1902[iVar2 /*164*/][iVar4] = uParam0->f_1766[iVar2 /*164*/][iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_4[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_4[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_8[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_8[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_12[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_12[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_16[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_16[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_20[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_20[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_24[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_24[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_28[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_28[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_32[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_32[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_36[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_36[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_40[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_40[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_44[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_44[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_48[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_48[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_52[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_52[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_56[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_56[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_60[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_60[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_64[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_64[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_68[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_68[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_72[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_72[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_76[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_76[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_80[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_80[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_84[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_84[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_88[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_88[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_92[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_92[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_96[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_96[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_100[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_100[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_104[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_104[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_108[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_108[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_112[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_112[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_116[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_116[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_120[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_120[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_124[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_124[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_128[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_128[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_132[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_132[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_136[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_136[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_140[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_140[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_144[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_144[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_148[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_148[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_152[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_152[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_156[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_156[iVar4];
				Global_101186.f_1902[iVar2 /*164*/].f_160[iVar4] = uParam0->f_1766[iVar2 /*164*/].f_160[iVar4];
				iVar4++;
			}
			iVar2++;
		}
		if (!ped::is_ped_injured(player::player_ped_id()))
		{
			func_509(player::player_ped_id(), &(Global_91100[func_409(player::player_ped_id()) /*65*/]), 0, 0);
			func_1154(player::player_ped_id());
			func_1152(player::player_ped_id(), 1, 0);
			ped::clear_ped_wetness(player::player_ped_id());
			ped::clear_ped_blood_damage(player::player_ped_id());
			ped::reset_ped_visible_damage(player::player_ped_id());
			if (weapon::has_ped_got_weapon(player::player_ped_id(), uParam0->f_2, 0))
			{
				weapon::set_current_ped_weapon(player::player_ped_id(), uParam0->f_2, true);
			}
			entity::set_entity_health(player::player_ped_id(), ped::get_ped_max_health(player::player_ped_id()));
			if (player::is_player_playing(player::player_id()))
			{
				player::reset_player_stamina(player::player_id());
			}
			func_399(player::player_ped_id());
		}
	}
	func_1151(0);
	func_1151(1);
	func_1151(2);
	func_1151(3);
	func_1151(4);
	func_1151(5);
	func_1151(6);
	func_1151(7);
	func_1151(8);
	func_1148(&(Global_101186.f_1902.f_539), -1);
}

void func_1148(var uParam0, int iParam1)//Position - 0xAA319
{
	int iVar0;
	int iVar1;
	vector3 vVar2;
	float fVar5;
	
	if (iParam1 == 94)
	{
		return;
	}
	iVar0 = 0;
	while (iVar0 < 3)
	{
		iVar1 = Global_101186.f_17299[iVar0];
		if ((((iVar1 == 8 || iVar1 == 9) || iVar1 == 10) || (((iVar1 == 11 || iVar1 == 34) || iVar1 == 72) || iVar1 == 73)) && !gameplay::is_bit_set(Global_101186.f_7851.f_99.f_219[0], 9))
		{
		}
		else
		{
			vVar2 = { 0f, 0f, 0f };
			fVar5 = 0f;
			if (!func_1150(Global_101186.f_17299[iVar0], &vVar2, &fVar5))
			{
				Global_101186.f_17299[iVar0] = 318;
				func_1149(&(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_89033[iVar0 /*29*/] = { 0f, 0f, 0f };
				Global_89033[iVar0 /*29*/].f_9 = 0f;
				Global_89033[iVar0 /*29*/].f_12 = 0f;
				Global_89033[iVar0 /*29*/].f_3 = { 0f, 0f, 0f };
				Global_89033[iVar0 /*29*/].f_10 = 0f;
				Global_89033[iVar0 /*29*/].f_13 = 0f;
				Global_89033[iVar0 /*29*/].f_6 = { 0f, 0f, 0f };
				Global_89033[iVar0 /*29*/].f_11 = 0f;
				Global_89033[iVar0 /*29*/].f_14 = 0f;
				Global_89033[iVar0 /*29*/].f_17 = { 0f, 0f, 0f };
				Global_89033[iVar0 /*29*/].f_26 = 0f;
				Global_89033[iVar0 /*29*/].f_20 = { 0f, 0f, 0f };
				Global_89033[iVar0 /*29*/].f_27 = 0f;
				Global_89033[iVar0 /*29*/].f_23 = { 0f, 0f, 0f };
				Global_89033[iVar0 /*29*/].f_28 = 0f;
			}
		}
		iVar0++;
	}
}

void func_1149(var uParam0)//Position - 0xAA4E2
{
	*uParam0 = -15;
}

int func_1150(int iParam0, var uParam1, float fParam2)//Position - 0xAA4F0
{
	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_1150(8, uParam1, fParam2);
			break;
		
		case 10:
			return func_1150(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_1151(int iParam0)//Position - 0xAAE5F
{
	if (iParam0 == -1)
	{
		return;
	}
	Global_68350[iParam0] = 0;
	Global_68350.f_69[iParam0] = 0;
}

void func_1152(int iParam0, int iParam1, int iParam2)//Position - 0xAAE84
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = func_409(iParam0);
	if (func_64(iVar0) && !ped::is_ped_injured(iParam0))
	{
		func_1153(iParam0, &(Global_101186.f_1902.f_539.f_298[iVar0 /*284*/]), iParam1);
		iVar1 = 0;
		while (iVar1 <= (8 - 1))
		{
			ui::_0x72C1056D678BB7D8(Global_101186.f_1902.f_539.f_1151[iVar1 /*4*/][iVar0]);
			if (iParam2)
			{
				if (iVar1 == Global_101186.f_1902.f_539.f_1184 || (Global_101186.f_1902.f_539.f_1184 == -1 && iVar1 == 4))
				{
					if (Global_101186.f_1902.f_539.f_1151[iVar1 /*4*/][iVar0] != 0 && Global_101186.f_1902.f_539.f_1151[iVar1 /*4*/][iVar0] != joaat("weapon_molotov"))
					{
						if (weapon::has_ped_got_weapon(iParam0, Global_101186.f_1902.f_539.f_1151[iVar1 /*4*/][iVar0], 0))
						{
							weapon::set_current_ped_weapon(iParam0, Global_101186.f_1902.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_1153(int iParam0, var uParam1, int iParam2)//Position - 0xAAFE5
{
	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_1074(iVar5);
				if (iVar1 != 0 && iVar1 != 1993361168)
				{
					iVar2 = weapon::get_ped_weapontype_in_slot(iParam0, iVar1);
					if (iVar2 != 0 && iVar2 != joaat("weapon_unarmed"))
					{
						if (func_56(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_57(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_1074(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_56(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_1072(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_1072(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_1072(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_1072(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_1073(iVar3, &Var9);
			if (iVar8 != -1 && !func_57(Var9.f_1))
			{
				if (dlc1::_is_dlc_data_empty(Var9) || func_57(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));
			}
		}
	}
}

void func_1154(int iParam0)//Position - 0xAB5DB
{
	int iVar0;
	
	iVar0 = func_409(iParam0);
	if (func_64(iVar0) && !ped::is_ped_injured(iParam0))
	{
		ped::add_armour_to_ped(iParam0, (Global_101186.f_1902.f_539.f_294[iVar0] - ped::get_ped_armour(iParam0)));
	}
}

void func_1155(int iParam0)//Position - 0xAB61E
{
	int iVar0;
	
	iVar0 = Global_52954[iParam0];
	switch (iParam0)
	{
		case 0:
			stats::stat_set_int(joaat("sp0_total_cash"), iVar0, 1);
			break;
		
		case 1:
			stats::stat_set_int(joaat("sp1_total_cash"), iVar0, 1);
			break;
		
		case 2:
			stats::stat_set_int(joaat("sp2_total_cash"), iVar0, 1);
			break;
	}
}

void func_1156(int iParam0)//Position - 0xAB678
{
	int iVar0;
	int iVar1;
	
	Global_101186.f_25165.f_233[iParam0 /*69*/].f_1 = (Global_101186.f_25165.f_233[iParam0 /*69*/].f_1 - 1);
	if (Global_101186.f_25165.f_233[iParam0 /*69*/].f_1 < 0)
	{
		Global_101186.f_25165.f_233[iParam0 /*69*/].f_1 = 10;
	}
	iVar0 = Global_101186.f_25165.f_233[iParam0 /*69*/].f_2[Global_101186.f_25165.f_233[iParam0 /*69*/].f_1 /*6*/];
	iVar1 = Global_101186.f_25165.f_233[iParam0 /*69*/].f_2[Global_101186.f_25165.f_233[iParam0 /*69*/].f_1 /*6*/].f_2;
	switch (iVar0)
	{
		case 1:
			Global_52954[iParam0] = (Global_52954[iParam0] - iVar1);
			break;
		
		case 0:
			Global_52954[iParam0] = (Global_52954[iParam0] + iVar1);
			break;
	}
	Global_101186.f_25165.f_233[iParam0 /*69*/].f_2[Global_101186.f_25165.f_233[iParam0 /*69*/].f_1 /*6*/].f_2 = 0;
	Global_101186.f_25165.f_233[iParam0 /*69*/].f_2[Global_101186.f_25165.f_233[iParam0 /*69*/].f_1 /*6*/].f_1 = 0;
	Global_101186.f_25165.f_233[iParam0 /*69*/] = (Global_101186.f_25165.f_233[iParam0 /*69*/] - 1);
	func_1155(iParam0);
}

void func_1157(char* sParam0)//Position - 0xAB7AD
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 35)
	{
		if (!gameplay::is_string_null(&(Global_101186.f_12907[iVar0 /*104*/])))
		{
			if (gameplay::are_strings_equal(&(Global_101186.f_12907[iVar0 /*104*/]), sParam0))
			{
				if (Global_101186.f_12907[iVar0 /*104*/].f_24 == 2)
				{
				}
				else
				{
					Global_101186.f_12907[iVar0 /*104*/].f_99[0] = 0;
					Global_101186.f_12907[iVar0 /*104*/].f_99[1] = 0;
					Global_101186.f_12907[iVar0 /*104*/].f_99[2] = 0;
					if (!func_1158(iVar0))
					{
						Global_101186.f_12907[iVar0 /*104*/].f_24 = 0;
						Global_101186.f_12907[iVar0 /*104*/].f_28 = 0;
					}
				}
			}
		}
		iVar0++;
	}
}

bool func_1158(int iParam0)//Position - 0xAB85C
{
	if ((Global_101186.f_12907[iParam0 /*104*/].f_99[0] == 1 || Global_101186.f_12907[iParam0 /*104*/].f_99[1] == 1) || Global_101186.f_12907[iParam0 /*104*/].f_99[2] == 1)
	{
		return true;
	}
	return false;
}

void func_1159(char* sParam0, int iParam1)//Position - 0xAB8B1
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 35)
	{
		if (!gameplay::is_string_null(&(Global_101186.f_12907[iVar0 /*104*/])))
		{
			if (gameplay::are_strings_equal(&(Global_101186.f_12907[iVar0 /*104*/]), sParam0))
			{
				if (Global_101186.f_12907[iVar0 /*104*/].f_24 == 0)
				{
				}
				Global_101186.f_12907[iVar0 /*104*/].f_24 = 1;
				if (Global_101186.f_12907[iVar0 /*104*/].f_25 == 1)
				{
					if (Global_101186.f_12907[iVar0 /*104*/].f_99[0] == 1)
					{
						Global_101186.f_12817[0 /*20*/].f_17 = 0;
					}
					if (Global_101186.f_12907[iVar0 /*104*/].f_99[1] == 1)
					{
						Global_101186.f_12817[1 /*20*/].f_17 = 0;
					}
					if (Global_101186.f_12907[iVar0 /*104*/].f_99[2] == 1)
					{
						Global_101186.f_12817[2 /*20*/].f_17 = 0;
					}
					if (Global_101186.f_12907[iVar0 /*104*/].f_99[3] == 1)
					{
						Global_101186.f_12817[3 /*20*/].f_17 = 0;
					}
					Global_101186.f_12907[iVar0 /*104*/].f_25 = 0;
					if (iParam1 == 1)
					{
						Global_101186.f_12907[iVar0 /*104*/].f_27 = 1;
					}
				}
			}
		}
		iVar0++;
	}
}

bool func_1160(int iParam0, int iParam1)//Position - 0xAB9C9
{
	int iVar0;
	int iVar1;
	
	if (!func_1161(iParam1) || !func_1161(iParam0))
	{
		return true;
	}
	iVar0 = func_930(iParam0);
	iVar1 = func_930(iParam1);
	if (iVar0 > iVar1)
	{
		return true;
	}
	else if (iVar0 < iVar1)
	{
		return false;
	}
	iVar0 = func_929(iParam0);
	iVar1 = func_929(iParam1);
	if (iVar0 > iVar1)
	{
		return true;
	}
	else if (iVar0 < iVar1)
	{
		return false;
	}
	iVar0 = func_928(iParam0);
	iVar1 = func_928(iParam1);
	if (iVar0 > iVar1)
	{
		return true;
	}
	else if (iVar0 < iVar1)
	{
		return false;
	}
	iVar0 = func_918(iParam0);
	iVar1 = func_918(iParam1);
	if (iVar0 > iVar1)
	{
		return true;
	}
	else if (iVar0 < iVar1)
	{
		return false;
	}
	iVar0 = func_917(iParam0);
	iVar1 = func_917(iParam1);
	if (iVar0 > iVar1)
	{
		return true;
	}
	else if (iVar0 < iVar1)
	{
		return false;
	}
	iVar0 = func_916(iParam0);
	iVar1 = func_916(iParam1);
	if (iVar0 > iVar1)
	{
		return true;
	}
	return false;
}

bool func_1161(int iParam0)//Position - 0xABAD5
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	
	if (iParam0 == -15)
	{
		return false;
	}
	iVar0 = func_916(iParam0);
	if (iVar0 < 0 || iVar0 >= 60)
	{
		return false;
	}
	iVar1 = func_917(iParam0);
	if (iVar1 < 0 || iVar1 >= 60)
	{
		return false;
	}
	iVar2 = func_918(iParam0);
	if (iVar2 < 0 || iVar2 > 23)
	{
		return false;
	}
	iVar3 = func_930(iParam0);
	if ((iVar3 <= 0 || iVar3 > 2043) || iVar3 < 1979)
	{
		return false;
	}
	iVar4 = func_929(iParam0);
	if (iVar4 < 0 || iVar4 > 11)
	{
		return false;
	}
	iVar5 = func_928(iParam0);
	if (iVar5 < 1 || iVar5 > func_927(iVar4, iVar3))
	{
		return false;
	}
	return true;
}

void func_1162(var uParam0)//Position - 0xABBB1
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 3)
	{
		Global_101186.f_1902.f_539.f_294[iVar0] = uParam0->f_17[iVar0];
		iVar1 = 0;
		while (iVar1 < 44)
		{
			Global_101186.f_1902.f_539.f_298[iVar0 /*284*/][iVar1 /*3*/] = { uParam0->f_812[iVar0 /*284*/][iVar1 /*3*/] };
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 < 50)
		{
			Global_101186.f_1902.f_539.f_298[iVar0 /*284*/].f_133[iVar1 /*3*/] = { uParam0->f_812[iVar0 /*284*/].f_133[iVar1 /*3*/] };
			iVar1++;
		}
		iVar0++;
	}
	func_1163(uParam0);
}

void func_1163(var uParam0)//Position - 0xABC64
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 3)
	{
		switch (iVar0)
		{
			case 0:
				stats::stat_set_int(joaat("sp0_weap_purch_0"), uParam0->f_1665[iVar0 /*32*/][0], 1);
				stats::stat_set_int(joaat("sp0_weap_purch_1"), uParam0->f_1665[iVar0 /*32*/][1], 1);
				stats::stat_set_int(joaat("sp0_weap_addon_purch_0"), uParam0->f_1665[iVar0 /*32*/].f_5[0], 1);
				stats::stat_set_int(joaat("sp0_weap_addon_purch_1"), uParam0->f_1665[iVar0 /*32*/].f_5[1], 1);
				stats::stat_set_int(joaat("sp0_weap_addon_purch_2"), uParam0->f_1665[iVar0 /*32*/].f_5[2], 1);
				stats::stat_set_int(joaat("sp0_weap_addon_purch_3"), uParam0->f_1665[iVar0 /*32*/].f_5[3], 1);
				stats::stat_set_int(joaat("sp0_weap_addon_purch_4"), uParam0->f_1665[iVar0 /*32*/].f_5[4], 1);
				stats::stat_set_int(joaat("sp0_weap_tint_purch_0"), uParam0->f_1665[iVar0 /*32*/].f_16[0], 1);
				stats::stat_set_int(joaat("sp0_weap_tint_purch_1"), uParam0->f_1665[iVar0 /*32*/].f_16[1], 1);
				stats::stat_set_int(joaat("sp0_weap_tint_purch_2"), uParam0->f_1665[iVar0 /*32*/].f_16[2], 1);
				stats::stat_set_int(joaat("sp0_weap_tint_purch_3"), uParam0->f_1665[iVar0 /*32*/].f_16[3], 1);
				stats::stat_set_int(joaat("sp0_weap_tint_purch_4"), uParam0->f_1665[iVar0 /*32*/].f_16[4], 1);
				stats::stat_set_int(joaat("sp0_weap_tint_purch_5"), uParam0->f_1665[iVar0 /*32*/].f_16[5], 1);
				stats::stat_set_int(joaat("sp0_weap_tint_purch_6"), uParam0->f_1665[iVar0 /*32*/].f_16[6], 1);
				stats::stat_set_int(joaat("sp0_weap_tint_purch_7"), uParam0->f_1665[iVar0 /*32*/].f_16[7], 1);
				stats::stat_set_int(joaat("sp0_weap_tint_purch_8"), uParam0->f_1665[iVar0 /*32*/].f_16[8], 1);
				stats::stat_set_int(joaat("sp0_weap_tint_purch_9"), uParam0->f_1665[iVar0 /*32*/].f_16[9], 1);
				stats::stat_set_int(joaat("sp0_weap_tint_purch_10"), uParam0->f_1665[iVar0 /*32*/].f_16[10], 1);
				stats::stat_set_int(joaat("sp0_weap_tint_purch_11"), uParam0->f_1665[iVar0 /*32*/].f_16[11], 1);
				break;
			
			case 1:
				stats::stat_set_int(joaat("sp1_weap_purch_0"), uParam0->f_1665[iVar0 /*32*/][0], 1);
				stats::stat_set_int(joaat("sp1_weap_purch_1"), uParam0->f_1665[iVar0 /*32*/][1], 1);
				stats::stat_set_int(joaat("sp1_weap_addon_purch_0"), uParam0->f_1665[iVar0 /*32*/].f_5[0], 1);
				stats::stat_set_int(joaat("sp1_weap_addon_purch_1"), uParam0->f_1665[iVar0 /*32*/].f_5[1], 1);
				stats::stat_set_int(joaat("sp1_weap_addon_purch_2"), uParam0->f_1665[iVar0 /*32*/].f_5[2], 1);
				stats::stat_set_int(joaat("sp1_weap_addon_purch_3"), uParam0->f_1665[iVar0 /*32*/].f_5[3], 1);
				stats::stat_set_int(joaat("sp1_weap_addon_purch_4"), uParam0->f_1665[iVar0 /*32*/].f_5[4], 1);
				stats::stat_set_int(joaat("sp1_weap_tint_purch_0"), uParam0->f_1665[iVar0 /*32*/].f_16[0], 1);
				stats::stat_set_int(joaat("sp1_weap_tint_purch_1"), uParam0->f_1665[iVar0 /*32*/].f_16[1], 1);
				stats::stat_set_int(joaat("sp1_weap_tint_purch_2"), uParam0->f_1665[iVar0 /*32*/].f_16[2], 1);
				stats::stat_set_int(joaat("sp1_weap_tint_purch_3"), uParam0->f_1665[iVar0 /*32*/].f_16[3], 1);
				stats::stat_set_int(joaat("sp1_weap_tint_purch_4"), uParam0->f_1665[iVar0 /*32*/].f_16[4], 1);
				stats::stat_set_int(joaat("sp1_weap_tint_purch_5"), uParam0->f_1665[iVar0 /*32*/].f_16[5], 1);
				stats::stat_set_int(joaat("sp1_weap_tint_purch_6"), uParam0->f_1665[iVar0 /*32*/].f_16[6], 1);
				stats::stat_set_int(joaat("sp1_weap_tint_purch_7"), uParam0->f_1665[iVar0 /*32*/].f_16[7], 1);
				stats::stat_set_int(joaat("sp1_weap_tint_purch_8"), uParam0->f_1665[iVar0 /*32*/].f_16[8], 1);
				stats::stat_set_int(joaat("sp1_weap_tint_purch_9"), uParam0->f_1665[iVar0 /*32*/].f_16[9], 1);
				stats::stat_set_int(joaat("sp1_weap_tint_purch_10"), uParam0->f_1665[iVar0 /*32*/].f_16[10], 1);
				stats::stat_set_int(joaat("sp1_weap_tint_purch_11"), uParam0->f_1665[iVar0 /*32*/].f_16[11], 1);
				break;
			
			case 2:
				stats::stat_set_int(joaat("sp2_weap_purch_0"), uParam0->f_1665[iVar0 /*32*/][0], 1);
				stats::stat_set_int(joaat("sp2_weap_purch_1"), uParam0->f_1665[iVar0 /*32*/][1], 1);
				stats::stat_set_int(joaat("sp2_weap_addon_purch_0"), uParam0->f_1665[iVar0 /*32*/].f_5[0], 1);
				stats::stat_set_int(joaat("sp2_weap_addon_purch_1"), uParam0->f_1665[iVar0 /*32*/].f_5[1], 1);
				stats::stat_set_int(joaat("sp2_weap_addon_purch_2"), uParam0->f_1665[iVar0 /*32*/].f_5[2], 1);
				stats::stat_set_int(joaat("sp2_weap_addon_purch_3"), uParam0->f_1665[iVar0 /*32*/].f_5[3], 1);
				stats::stat_set_int(joaat("sp2_weap_addon_purch_4"), uParam0->f_1665[iVar0 /*32*/].f_5[4], 1);
				stats::stat_set_int(joaat("sp2_weap_tint_purch_0"), uParam0->f_1665[iVar0 /*32*/].f_16[0], 1);
				stats::stat_set_int(joaat("sp2_weap_tint_purch_1"), uParam0->f_1665[iVar0 /*32*/].f_16[1], 1);
				stats::stat_set_int(joaat("sp2_weap_tint_purch_2"), uParam0->f_1665[iVar0 /*32*/].f_16[2], 1);
				stats::stat_set_int(joaat("sp2_weap_tint_purch_3"), uParam0->f_1665[iVar0 /*32*/].f_16[3], 1);
				stats::stat_set_int(joaat("sp2_weap_tint_purch_4"), uParam0->f_1665[iVar0 /*32*/].f_16[4], 1);
				stats::stat_set_int(joaat("sp2_weap_tint_purch_5"), uParam0->f_1665[iVar0 /*32*/].f_16[5], 1);
				stats::stat_set_int(joaat("sp2_weap_tint_purch_6"), uParam0->f_1665[iVar0 /*32*/].f_16[6], 1);
				stats::stat_set_int(joaat("sp2_weap_tint_purch_7"), uParam0->f_1665[iVar0 /*32*/].f_16[7], 1);
				stats::stat_set_int(joaat("sp2_weap_tint_purch_8"), uParam0->f_1665[iVar0 /*32*/].f_16[8], 1);
				stats::stat_set_int(joaat("sp2_weap_tint_purch_9"), uParam0->f_1665[iVar0 /*32*/].f_16[9], 1);
				stats::stat_set_int(joaat("sp2_weap_tint_purch_10"), uParam0->f_1665[iVar0 /*32*/].f_16[10], 1);
				stats::stat_set_int(joaat("sp2_weap_tint_purch_11"), uParam0->f_1665[iVar0 /*32*/].f_16[11], 1);
				break;
		}
		iVar0++;
	}
}

void func_1164(var uParam0)//Position - 0xAC232
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 3)
	{
		iVar1 = 0;
		while (iVar1 < 12)
		{
			Global_91100[iVar0 /*65*/][iVar1] = uParam0->f_616[iVar0 /*65*/][iVar1];
			Global_91100[iVar0 /*65*/].f_13[iVar1] = uParam0->f_616[iVar0 /*65*/].f_13[iVar1];
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 < 9)
		{
			Global_91100[iVar0 /*65*/].f_39[iVar1] = uParam0->f_616[iVar0 /*65*/].f_39[iVar1];
			Global_91100[iVar0 /*65*/].f_49[iVar1] = uParam0->f_616[iVar0 /*65*/].f_49[iVar1];
			iVar1++;
		}
		Global_91100[iVar0 /*65*/].f_59 = uParam0->f_616[iVar0 /*65*/].f_59;
		Global_91100[iVar0 /*65*/].f_60 = uParam0->f_616[iVar0 /*65*/].f_60;
		Global_91100[iVar0 /*65*/].f_61 = uParam0->f_616[iVar0 /*65*/].f_61;
		Global_91100[iVar0 /*65*/].f_62 = uParam0->f_616[iVar0 /*65*/].f_62;
		Global_91100[iVar0 /*65*/].f_63 = uParam0->f_616[iVar0 /*65*/].f_63;
		Global_91100[iVar0 /*65*/].f_64 = uParam0->f_616[iVar0 /*65*/].f_64;
		iVar0++;
	}
}

bool func_1165(int iParam0)//Position - 0xAC360
{
	int iVar0;
	vector3 vVar1;
	var uVar4;
	var uVar5;
	int iVar6;
	
	switch (iParam0)
	{
		case 0:
			iVar0 = 0;
			break;
		
		case 1:
			iVar0 = 1;
			break;
		
		case 2:
			iVar0 = 2;
			break;
		
		default:
			return false;
			break;
	}
	iVar6 = func_1027();
	if (iVar6 != 145)
	{
		vVar1 = { Global_101186.f_1902.f_539.f_1528[iVar6 /*3*/] };
		uVar4 = Global_101186.f_1902.f_539.f_1538[iVar6];
		uVar5 = Global_101186.f_1902.f_539.f_1542[iVar6];
	}
	while (!func_1166(iVar0, 1))
	{
		system::wait(0);
	}
	if (iVar6 != 145)
	{
		Global_101186.f_1902.f_539.f_1528[iVar6 /*3*/] = { vVar1 };
		Global_101186.f_1902.f_539.f_1538[iVar6] = uVar4;
		Global_101186.f_1902.f_539.f_1542[iVar6] = uVar5;
	}
	return true;
}

bool func_1166(int iParam0, int iParam1)//Position - 0xAC43C
{
	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_1209(iParam0);
	iVar1 = func_410(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_1208(&(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_1198(&(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_1169(&Global_17072, 0, 0, 0);
	func_1167(iParam0);
	return true;
}

void func_1167(int iParam0)//Position - 0xAC596
{
	return;
	Global_17118.f_126 = 1;
	Global_17118.f_127 = func_1168(iParam0);
	Global_17118.f_129 = gameplay::get_game_timer();
}

int func_1168(int iParam0)//Position - 0xAC5BB
{
	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_1169(var uParam0, int iParam1, int iParam2, int iParam3)//Position - 0xAC5F5
{
	int iVar0;
	int iVar1;
	int iVar2;
	float fVar3;
	int iVar4;
	var uVar5;
	char cVar6[64];
	int iVar22;
	var uVar23;
	char* sVar24;
	
	if (!uParam0->f_39)
	{
		if (uParam0->f_7 == 4)
		{
			return true;
		}
	}
	if ((!ped::is_ped_injured((*uParam0)[uParam0->f_7]) && !ped::is_ped_injured(player::player_ped_id())) && (*uParam0)[uParam0->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((*uParam0)[uParam0->f_7]) && !fire::is_entity_on_fire((*uParam0)[uParam0->f_7])) && !ped::is_ped_getting_into_a_vehicle((*uParam0)[uParam0->f_7]))
			{
				ai::clear_ped_tasks_immediately((*uParam0)[uParam0->f_7]);
			}
			else
			{
				ai::clear_ped_tasks((*uParam0)[uParam0->f_7]);
			}
		}
		iVar0 = player::player_ped_id();
		iVar1 = func_1027();
		if (!uParam0->f_23)
		{
			func_1192(iVar0, 0);
		}
		func_1190(iVar1, &iVar0);
		ped::set_ped_config_flag(iVar0, 32, true);
		ped::set_ped_config_flag(iVar0, 250, true);
		iVar2 = func_1209(uParam0->f_7);
		func_1192((*uParam0)[uParam0->f_7], 0);
		fVar3 = (((system::to_float(entity::get_entity_health((*uParam0)[uParam0->f_7])) - 100f) / (system::to_float(ped::get_ped_max_health((*uParam0)[uParam0->f_7])) - 100f)) * 100f);
		switch (func_409(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_64(func_1027()))
		{
			if (player::is_special_ability_active(player::player_id()))
			{
				player::special_ability_deactivate_fast(player::player_id());
			}
		}
		player::change_player_ped(player::player_id(), (*uParam0)[uParam0->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_1094(0) || func_1094(3))
		{
			if (Global_17118.f_13)
			{
				iVar4 = 0;
				while (iVar4 < 7)
				{
					if (gameplay::is_bit_set(Global_82395[iVar4 /*5*/].f_1, 2))
					{
						uVar5 = Global_82395[iVar4 /*5*/];
						StringCopy(&cVar6, "MISS_SWITCH_", 64);
						StringConCat(&cVar6, &(Global_82431[Global_69790.f_109[uVar5 /*4*/] /*34*/]), 64);
						stats::stat_increment(gameplay::get_hash_key(&cVar6), 1f);
					}
					iVar4++;
				}
			}
		}
		Global_17118.f_13 = 0;
		uParam0->f_5 = func_1189(iVar1);
		if (uParam0->f_5 == 4)
		{
			uParam0->f_5 = 3;
		}
		(*uParam0)[uParam0->f_5] = iVar0;
		(*uParam0)[uParam0->f_7] = 0;
		uParam0->f_6 = func_1189(iVar2);
		uParam0->f_7 = 4;
		iVar22 = player::player_ped_id();
		entity::set_entity_visible(player::player_ped_id(), true, 0);
		func_1188(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_1188(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_88925 = 1;
		func_1187(player::player_ped_id());
		func_1186();
		func_1185(iVar2);
		func_1183();
		func_1180(iVar2);
		func_1177(func_1178(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_1176(67));
		}
		if (player::is_player_playing(player::player_id()))
		{
			player::_0xD2B315B6689D537D(player::player_id(), func_1176(68));
		}
		func_1173(iVar2, &iVar22);
		if (((func_211(0) || func_211(3)) || func_211(2)) || func_211(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_1172())
		{
			func_1170();
		}
		Global_88562 = 0;
		return true;
	}
	else
	{
		if (ped::is_ped_injured(player::player_ped_id()))
		{
		}
		if (ped::is_ped_injured((*uParam0)[uParam0->f_7]))
		{
		}
		if (player::player_ped_id() == (*uParam0)[uParam0->f_7])
		{
		}
	}
	return false;
}

void func_1170()//Position - 0xACADF
{
	if (Global_88955)
	{
		func_1028();
		graphics::_0xBF59707B3E5ED531(func_1171(Global_101186.f_1902.f_539.f_3549));
	}
	else
	{
		graphics::_0xBF59707B3E5ED531("");
	}
}

char* func_1171(var uParam0)//Position - 0xACB12
{
	uParam0 = uParam0;
	return "";
}

var func_1172()//Position - 0xACB22
{
	return Global_17116;
}

void func_1173(int iParam0, int iParam1)//Position - 0xACB2D
{
	switch (iParam0)
	{
		case 0:
			func_1174(4, *iParam1);
			func_1174(7, *iParam1);
			func_1174(8, *iParam1);
			func_1174(11, *iParam1);
			break;
		
		case 1:
			if (Global_101186.f_7851.f_330[2 /*6*/])
			{
				func_1174(4, *iParam1);
			}
			func_1174(7, *iParam1);
			func_1174(8, *iParam1);
			func_1174(11, *iParam1);
			if (Global_101186.f_7851.f_99.f_58[126])
			{
				func_1174(12, *iParam1);
			}
			break;
		
		case 2:
			if (Global_101186.f_7851.f_330[20 /*6*/])
			{
				func_1174(4, *iParam1);
			}
			func_1174(7, *iParam1);
			func_1174(8, *iParam1);
			func_1174(11, *iParam1);
			break;
	}
}

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

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

int func_1176(int iParam0)//Position - 0xACCE4
{
	if (iParam0 == 146 || iParam0 == -1)
	{
		return 0;
	}
	return Global_101186.f_7851.f_99.f_58[iParam0];
}

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

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

int func_1179(int iParam0)//Position - 0xACF30
{
	return gameplay::is_bit_set(Global_101186.f_5995[iParam0], 0);
}

void func_1180(int iParam0)//Position - 0xACF48
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 8)
	{
		func_1181(iParam0, iVar0);
		iVar0++;
	}
}

void func_1181(int iParam0, int iParam1)//Position - 0xACF6B
{
	int iVar0;
	float fVar1;
	int iVar2;
	int iVar3;
	
	if (((iParam0 != 0 || iParam0 != 1) || iParam0 != 2) || iParam0 != 3)
	{
		return;
	}
	func_1182(iParam0, iParam1, &iVar2, &iVar3);
	if (network::network_is_game_in_progress())
	{
		iVar0 = func_300(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_88926 = 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_1182(int iParam0, int iParam1, var uParam2, var uParam3)//Position - 0xAD057
{
	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_1183()//Position - 0xAD2AE
{
	struct<50> Var0;
	
	if ((ped::is_ped_injured(player::player_ped_id()) || !func_64(func_1027())) || !func_516())
	{
		return;
	}
	Var0 = 12;
	Var0.f_13 = 12;
	Var0.f_26 = 12;
	Var0.f_39 = 9;
	Var0.f_49 = 9;
	func_1066(player::player_ped_id(), &Var0, 1);
	func_1184(1306, Var0[0], -1, 1);
	func_1184(1307, Var0[1], -1, 1);
	func_1184(1308, Var0[2], -1, 1);
	func_1184(1309, Var0[3], -1, 1);
	func_1184(1310, Var0[4], -1, 1);
	func_1184(1311, Var0[5], -1, 1);
	func_1184(1312, Var0[6], -1, 1);
	func_1184(1313, Var0[7], -1, 1);
	func_1184(1314, Var0[8], -1, 1);
	func_1184(1315, Var0[9], -1, 1);
	func_1184(1316, Var0[10], -1, 1);
	func_1184(1317, Var0[11], -1, 1);
	func_1184(1318, Var0.f_13[0], -1, 1);
	func_1184(1319, Var0.f_13[1], -1, 1);
	func_1184(1320, Var0.f_13[2], -1, 1);
	func_1184(1321, Var0.f_13[3], -1, 1);
	func_1184(1322, Var0.f_13[4], -1, 1);
	func_1184(1323, Var0.f_13[5], -1, 1);
	func_1184(1324, Var0.f_13[6], -1, 1);
	func_1184(1325, Var0.f_13[7], -1, 1);
	func_1184(1326, Var0.f_13[8], -1, 1);
	func_1184(1327, Var0.f_13[9], -1, 1);
	func_1184(1328, Var0.f_13[10], -1, 1);
	func_1184(1329, Var0.f_13[11], -1, 1);
	func_1184(1330, Var0.f_26[0], -1, 1);
	func_1184(1331, Var0.f_26[1], -1, 1);
	func_1184(1332, Var0.f_26[2], -1, 1);
	func_1184(1333, Var0.f_26[3], -1, 1);
	func_1184(1334, Var0.f_26[4], -1, 1);
	func_1184(1335, Var0.f_26[5], -1, 1);
	func_1184(1336, Var0.f_26[6], -1, 1);
	func_1184(1337, Var0.f_26[7], -1, 1);
	func_1184(1338, Var0.f_26[8], -1, 1);
	func_1184(1339, Var0.f_26[9], -1, 1);
	func_1184(1340, Var0.f_26[10], -1, 1);
	func_1184(1341, Var0.f_26[11], -1, 1);
	func_1184(1342, Var0.f_39[0], -1, 1);
	func_1184(1343, Var0.f_39[1], -1, 1);
	func_1184(1344, Var0.f_39[2], -1, 1);
	func_1184(1345, Var0.f_39[3], -1, 1);
	func_1184(1346, Var0.f_39[4], -1, 1);
	func_1184(1347, Var0.f_39[5], -1, 1);
	func_1184(1348, Var0.f_39[6], -1, 1);
	func_1184(1349, Var0.f_39[7], -1, 1);
	func_1184(1350, Var0.f_39[8], -1, 1);
	func_1184(1351, Var0.f_49[0], -1, 1);
	func_1184(1352, Var0.f_49[1], -1, 1);
	func_1184(1353, Var0.f_49[2], -1, 1);
	func_1184(1354, Var0.f_49[3], -1, 1);
	func_1184(1355, Var0.f_49[4], -1, 1);
	func_1184(1356, Var0.f_49[5], -1, 1);
	func_1184(1357, Var0.f_49[6], -1, 1);
	func_1184(1358, Var0.f_49[7], -1, 1);
	func_1184(1359, Var0.f_49[8], -1, 1);
	func_1184(1360, func_1027(), -1, 1);
	stats::stat_set_bool(joaat("clo_stored_initial"), true, 1);
	Global_101186.f_1902.f_539.f_3543 = 1;
}

var func_1184(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0xAD6C1
{
	int iVar0;
	int iVar1;
	var uVar2;
	
	if (iParam2 == -1)
	{
		iParam2 = func_268();
	}
	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_1185(int iParam0)//Position - 0xADA38
{
	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_86646, 1862763509);
			ped::set_relationship_between_groups(1, 1862763509, Global_86646);
			ped::set_relationship_between_groups(1, Global_86647, 1862763509);
			ped::set_relationship_between_groups(1, 1862763509, Global_86647);
			ped::set_relationship_between_groups(1, Global_86648, 1862763509);
			ped::set_relationship_between_groups(1, 1862763509, Global_86648);
			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_86646, 1862763509);
			ped::set_relationship_between_groups(1, 1862763509, Global_86646);
			ped::set_relationship_between_groups(1, Global_86647, 1862763509);
			ped::set_relationship_between_groups(1, 1862763509, Global_86647);
			ped::set_relationship_between_groups(1, Global_86648, 1862763509);
			ped::set_relationship_between_groups(1, 1862763509, Global_86648);
			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_86646, 1862763509);
			ped::set_relationship_between_groups(1, 1862763509, Global_86646);
			ped::set_relationship_between_groups(1, Global_86647, 1862763509);
			ped::set_relationship_between_groups(1, 1862763509, Global_86647);
			ped::set_relationship_between_groups(1, Global_86648, 1862763509);
			ped::set_relationship_between_groups(1, 1862763509, Global_86648);
			break;
		
		default:
			break;
	}
}

void func_1186()//Position - 0xADBEC
{
	int iVar0;
	int iVar1;
	
	func_1028();
	iVar0 = ui::get_main_player_blip_id();
	if (ui::does_blip_exist(iVar0))
	{
		iVar1 = Global_101186.f_1902.f_539.f_3549;
		if (func_211(14))
		{
			iVar1 = func_409(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_1187(int iParam0)//Position - 0xADC73
{
	int iVar0;
	var uVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	struct<2> Var6;
	
	iVar0 = 0;
	while (iVar0 < 44)
	{
		iVar2 = func_1074(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_1188(int iParam0)//Position - 0xADD35
{
	int iVar0;
	
	iVar0 = func_409(iParam0);
	if (func_64(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_101186.f_1902.f_539.f_290[iVar0] <= 0f)
		{
			Global_101186.f_1902.f_539.f_290[iVar0] = 100f;
		}
		else if (Global_101186.f_1902.f_539.f_290[iVar0] <= 10f)
		{
			Global_101186.f_1902.f_539.f_290[iVar0] = 10f;
		}
		entity::set_entity_health(iParam0, system::round((((Global_101186.f_1902.f_539.f_290[iVar0] / 100f) * (system::to_float(ped::get_ped_max_health(iParam0)) - 100f)) + 100f)));
	}
}

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

void func_1190(int iParam0, int iParam1)//Position - 0xADE5C
{
	switch (iParam0)
	{
		case 0:
			func_1191(4, *iParam1, 0);
			func_1191(7, *iParam1, 0);
			func_1191(8, *iParam1, 0);
			func_1191(11, *iParam1, 0);
			break;
		
		case 1:
			func_1191(4, *iParam1, 0);
			func_1191(7, *iParam1, 0);
			func_1191(8, *iParam1, 0);
			func_1191(11, *iParam1, 0);
			if (Global_101186.f_7851.f_99.f_58[126])
			{
				func_1191(12, *iParam1, 0);
			}
			break;
		
		case 2:
			func_1191(4, *iParam1, 0);
			func_1191(7, *iParam1, 0);
			func_1191(8, *iParam1, 0);
			func_1191(11, *iParam1, 0);
			break;
	}
}

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

void func_1192(int iParam0, int iParam1)//Position - 0xADFD0
{
	func_1197(iParam0);
	func_1070(iParam0, iParam1);
	func_1196(iParam0);
	func_1075(iParam0);
	func_1195(iParam0);
	func_1194(iParam0);
	func_1193(iParam0);
}

void func_1193(int iParam0)//Position - 0xAE004
{
	int iVar0;
	
	iVar0 = func_409(iParam0);
	if (func_64(iVar0) && !ped::is_ped_injured(iParam0))
	{
		if (iParam0 == player::player_ped_id())
		{
			Global_101186.f_1902.f_539.f_1556[iVar0] = player::get_player_wanted_level(player::player_id());
		}
	}
}

void func_1194(int iParam0)//Position - 0xAE04B
{
	int iVar0;
	
	iVar0 = func_409(iParam0);
	if (func_64(iVar0) && !ped::is_ped_injured(iParam0))
	{
		Global_101186.f_1902.f_539.f_1546[iVar0 /*3*/] = { entity::get_entity_velocity(iParam0) };
	}
}

void func_1195(int iParam0)//Position - 0xAE089
{
	int iVar0;
	
	iVar0 = func_409(iParam0);
	if (func_64(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_101186.f_1902.f_539.f_1528[iVar0 /*3*/] = { entity::get_entity_coords(iParam0, 1) };
		Global_101186.f_1902.f_539.f_1538[iVar0] = entity::get_entity_heading(iParam0);
		Global_101186.f_1902.f_539.f_1542[iVar0] = interior::get_room_key_from_entity(iParam0);
		if (Global_101186.f_1902.f_539.f_1528[iVar0 /*3*/] >= 8000f)
		{
			Global_101186.f_1902.f_539.f_1528[iVar0 /*3*/] = 7500f;
		}
		else if (Global_101186.f_1902.f_539.f_1528[iVar0 /*3*/] <= -8000f)
		{
			Global_101186.f_1902.f_539.f_1528[iVar0 /*3*/] = -7500f;
		}
		if (Global_101186.f_1902.f_539.f_1528[iVar0 /*3*/].f_1 >= 8000f)
		{
			Global_101186.f_1902.f_539.f_1528[iVar0 /*3*/].f_1 = 7500f;
		}
		else if (Global_101186.f_1902.f_539.f_1528[iVar0 /*3*/].f_1 <= -8000f)
		{
			Global_101186.f_1902.f_539.f_1528[iVar0 /*3*/].f_1 = -7500f;
		}
		if (Global_101186.f_1902.f_539.f_1528[iVar0 /*3*/].f_2 >= 2500f)
		{
			Global_101186.f_1902.f_539.f_1528[iVar0 /*3*/].f_2 = 2000f;
		}
	}
}

void func_1196(int iParam0)//Position - 0xAE216
{
	int iVar0;
	
	iVar0 = func_409(iParam0);
	if (func_64(iVar0) && !ped::is_ped_injured(iParam0))
	{
		Global_101186.f_1902.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_1197(int iParam0)//Position - 0xAE273
{
	int iVar0;
	
	iVar0 = func_409(iParam0);
	if (func_64(iVar0) && !ped::is_ped_injured(iParam0))
	{
		Global_101186.f_1902.f_539.f_1524[iVar0] = func_933();
	}
}

bool func_1198(int iParam0, int iParam1, vector3 vParam2, float fParam5, int iParam6, int iParam7, int iParam8)//Position - 0xAE2AD
{
	int iVar0;
	
	if (func_64(iParam1))
	{
		iVar0 = func_410(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_1207(*iParam0, iParam1, iParam7);
			ped::_0xE861D0B05C7662B8(*iParam0, 0, 0);
			func_411(*iParam0);
			func_1152(*iParam0, 1, 0);
			func_1154(*iParam0);
			func_399(*iParam0);
			func_1200(*iParam0, iParam8);
			func_1199(*iParam0);
			if (iParam6)
			{
				streaming::set_model_as_no_longer_needed(iVar0);
			}
			return true;
		}
	}
	return false;
}

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

bool func_1200(int iParam0, int iParam1)//Position - 0xAE3C5
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_409(iParam0);
	if (func_1206(iVar0))
	{
		func_1205(iVar0, 0);
		func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
		func_1204(iParam0, 1);
		return true;
	}
	if (!iParam1)
	{
		if (func_1202(iParam0))
		{
			func_1205(iVar0, 0);
			func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
			func_1204(iParam0, 1);
			return true;
		}
	}
	iVar1 = false;
	switch (iVar0)
	{
		case 0:
			if (Global_101186.f_7851.f_99.f_58[120] && !Global_101186.f_7851.f_99.f_58[122])
			{
				func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				Global_101186.f_7851.f_99.f_58[121] = 1;
				return true;
			}
			if (Global_101186.f_7851.f_99.f_58[123])
			{
				Global_101186.f_7851.f_99.f_58[123] = 0;
				if (!ped::is_ped_injured(iParam0))
				{
					if (func_501(iParam0, 3, 169))
					{
						func_644(iParam0, 3, 85, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
						return true;
					}
				}
			}
			if (func_501(iParam0, 12, 6))
			{
				func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				return true;
			}
			if (func_501(iParam0, 12, 17))
			{
				if (!func_1201(entity::get_entity_model(iParam0), 12, 17))
				{
					func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
					return true;
				}
			}
			if (func_501(iParam0, 12, 20))
			{
				if (!func_1201(entity::get_entity_model(iParam0), 12, 20))
				{
					func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
					return true;
				}
			}
			if (func_501(iParam0, 12, 21))
			{
				if (!func_1201(entity::get_entity_model(iParam0), 12, 21))
				{
					func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
					return true;
				}
			}
			if (func_501(iParam0, 12, 22))
			{
				if (!func_1201(entity::get_entity_model(iParam0), 12, 22))
				{
					func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
					return true;
				}
			}
			if (func_501(iParam0, 12, 11))
			{
				func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				return true;
			}
			if (func_501(iParam0, 12, 10))
			{
				func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				return true;
			}
			if (func_501(iParam0, 12, 50))
			{
				func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				return true;
			}
			if (func_501(iParam0, 14, 59))
			{
				func_644(iParam0, 14, 1, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				iVar1 = true;
			}
			if (func_501(iParam0, 8, 22))
			{
				func_644(iParam0, 8, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				iVar1 = true;
			}
			if (iVar1)
			{
				return true;
			}
			if (func_501(iParam0, 12, 14))
			{
				func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				return true;
			}
			break;
		
		case 1:
			if (func_501(iParam0, 12, 13))
			{
				if (!func_1201(entity::get_entity_model(iParam0), 12, 13))
				{
					func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
					return true;
				}
			}
			if (func_501(iParam0, 12, 14))
			{
				if (!func_1201(entity::get_entity_model(iParam0), 12, 14))
				{
					func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
					return true;
				}
			}
			if (func_501(iParam0, 12, 15))
			{
				if (!func_1201(entity::get_entity_model(iParam0), 12, 15))
				{
					func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
					return true;
				}
			}
			if (func_501(iParam0, 12, 4))
			{
				func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				return true;
			}
			if (func_501(iParam0, 12, 3))
			{
				func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				return true;
			}
			if (func_501(iParam0, 14, 82))
			{
				func_644(iParam0, 14, 1, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				iVar1 = true;
			}
			if (func_501(iParam0, 8, 76))
			{
				func_644(iParam0, 8, 26, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				iVar1 = true;
			}
			if (iVar1)
			{
				return true;
			}
			if (func_501(iParam0, 12, 1))
			{
				func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				return true;
			}
			break;
		
		case 2:
			if (func_501(iParam0, 12, 12))
			{
				func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				return true;
			}
			if (func_501(iParam0, 12, 15))
			{
				func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				return true;
			}
			if (!iParam1)
			{
				if (func_501(iParam0, 3, 71))
				{
					func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
					return true;
				}
			}
			if (func_501(iParam0, 12, 17))
			{
				if (!func_1201(entity::get_entity_model(iParam0), 12, 17))
				{
					func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
					return true;
				}
			}
			if (func_501(iParam0, 12, 18))
			{
				if (!func_1201(entity::get_entity_model(iParam0), 12, 18))
				{
					func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
					return true;
				}
			}
			if (func_501(iParam0, 12, 19))
			{
				if (!func_1201(entity::get_entity_model(iParam0), 12, 19))
				{
					func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
					return true;
				}
			}
			if (func_501(iParam0, 12, 7))
			{
				func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				return true;
			}
			if (func_501(iParam0, 12, 6))
			{
				func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				return true;
			}
			if (func_501(iParam0, 14, 88))
			{
				func_644(iParam0, 14, 1, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				iVar1 = true;
			}
			if (func_501(iParam0, 8, 17))
			{
				func_644(iParam0, 8, 15, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				iVar1 = true;
			}
			if (iVar1)
			{
				return true;
			}
			if (func_501(iParam0, 12, 11))
			{
				func_644(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0);
				return true;
			}
			break;
	}
	return false;
}

int func_1201(int iParam0, int iParam1, int iParam2)//Position - 0xAEA01
{
	Global_69342[1 /*14*/] = { func_415(iParam0, iParam1, iParam2) };
	return gameplay::is_bit_set(Global_69342[1 /*14*/].f_6, 1);
}

int func_1202(int iParam0)//Position - 0xAEA2B
{
	int iVar0;
	int iVar1;
	
	iVar1 = entity::get_entity_model(iParam0);
	iVar0 = func_495(iParam0, 4);
	return func_1203(iVar1, 4, iVar0);
}

bool func_1203(int iParam0, int iParam1, int iParam2)//Position - 0xAEA4D
{
	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_1204(int iParam0, int iParam1)//Position - 0xAEB36
{
	int iVar0;
	int iVar1;
	struct<65> Var2;
	int iVar67;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = func_409(iParam0);
		if (func_64(iVar0))
		{
			if (iVar0 == 2)
			{
				iVar1 = func_494(iParam0, 4, -1);
				if (iVar1 == 93)
				{
					func_659(iVar0);
					func_509(iParam0, &(Global_101186.f_1902.f_539[iVar0 /*65*/]), 0, 0);
				}
			}
			Var2 = 12;
			Var2.f_13 = 12;
			Var2.f_26 = 12;
			Var2.f_39 = 9;
			Var2.f_49 = 9;
			func_1066(iParam0, &Var2, 1);
			Global_91100[iVar0 /*65*/] = { Var2 };
			if (iParam0 == player::player_ped_id())
			{
				func_1183();
			}
			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_211(0) && !func_211(1)) && !func_211(2)) && !func_211(3)) && !func_211(4)) && !func_211(9)) && !func_211(10)))
				{
					Global_101186.f_1902.f_539[iVar0 /*65*/] = { Var2 };
					Global_101186.f_1902.f_539.f_1619[iVar0] = func_660(iParam0);
					iVar67 = 0;
					while (iVar67 < 12)
					{
						Global_101186.f_1902.f_539.f_204[iVar67 /*4*/][iVar0] = func_495(iParam0, func_491(iVar67));
						iVar67++;
					}
					iVar67 = 0;
					while (iVar67 < 12)
					{
						Global_101186.f_1902.f_539.f_204[iVar67 /*4*/][iVar0] = func_495(iParam0, func_491(iVar67));
						iVar67++;
					}
					if (iVar0 == 0)
					{
						if (Global_101186.f_7851.f_99.f_58[121])
						{
							Global_101186.f_7851.f_99.f_58[122] = 1;
						}
					}
				}
			}
		}
	}
}

void func_1205(int iParam0, int iParam1)//Position - 0xAED1C
{
	if (!func_64(iParam0))
	{
		return;
	}
	Global_101186.f_1902.f_539.f_1560[iParam0] = iParam1;
}

int func_1206(int iParam0)//Position - 0xAED44
{
	if (!func_64(iParam0))
	{
		return 0;
	}
	return Global_101186.f_1902.f_539.f_1560[iParam0];
}

bool func_1207(int iParam0, int iParam1, int iParam2)//Position - 0xAED6B
{
	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_89121[iVar0]))
	{
		iVar1 = -1;
		iVar2 = 0;
		while (iVar2 < Global_91300)
		{
			if (iVar1 < 0)
			{
				if (!entity::does_entity_exist(Global_91300[iVar2]))
				{
					iVar1 = iVar2;
				}
			}
			iVar2++;
		}
		if (iVar1 < 0 || iVar1 > Global_91300)
		{
			iVar1 = 0;
		}
		Global_91300[iVar1] = Global_89121[iVar0];
		if (iParam2)
		{
			if (!ped::is_ped_injured(Global_91300[iVar1]))
			{
				if (entity::does_entity_exist(iParam0))
				{
					if (!entity::is_entity_dead(iParam0, 0))
					{
						ai::clear_ped_tasks(Global_91300[iVar1]);
						ai::task_smart_flee_coord(Global_91300[iVar1], entity::get_entity_coords(iParam0, 1), 1000f, -1, 1, 0);
					}
				}
			}
		}
	}
	Global_89121[iVar0] = iParam0;
	Global_101186.f_1902.f_539.f_1524[iParam1] = func_933();
	Global_101186.f_1902.f_539.f_1528[iParam1 /*3*/] = { entity::get_entity_coords(iParam0, 1) };
	Global_101186.f_1902.f_539.f_1538[iParam1] = entity::get_entity_heading(iParam0);
	if (iParam2)
	{
		gameplay::set_bit(&(Global_89121.f_47), iVar0);
	}
	return true;
}

bool func_1208(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0xAEEC2
{
	int iVar0;
	
	if (func_64(iParam1))
	{
		iVar0 = func_410(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_1207(*iParam0, iParam1, iParam5);
				ped::_0xE861D0B05C7662B8(*iParam0, 0, 0);
				func_411(*iParam0);
				func_1152(*iParam0, 1, 0);
				func_1154(*iParam0);
				func_399(*iParam0);
				func_1200(*iParam0, iParam6);
				func_1199(*iParam0);
				if (iParam4)
				{
					streaming::set_model_as_no_longer_needed(iVar0);
				}
			}
			return true;
		}
	}
	return false;
}

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

void func_1210()//Position - 0xAEFA2
{
	int iVar0;
	
	func_1217();
	if (iLocal_7587)
	{
		func_801();
	}
	func_1216(&uLocal_9682);
	func_1218();
	gameplay::_set_rain_fx_intensity(-1f);
	audio::set_audio_flag("LoadMPData", 0);
	audio::set_audio_flag("IsDirectorModeActive", 0);
	audio::set_audio_flag("PoliceScannerDisabled", 0);
	time::pause_clock(false);
	func_699();
	audio::stop_all_alarms(1);
	streaming::remove_anim_dict("director@character_select_intro@male");
	streaming::remove_anim_dict("director@character_select_intro@female");
	streaming::remove_anim_set("ANIM_GROUP_MOVE_BALLISTIC");
	graphics::_0xF44A5456AC3F4F97(20);
	if (streaming::is_ipl_active("Replay"))
	{
		streaming::remove_ipl("Replay");
	}
	func_1214();
	func_1213();
	func_1212();
	if (cam::does_cam_exist(iLocal_7591))
	{
		cam::destroy_cam(iLocal_7591, 0);
	}
	cam::render_script_cams(false, false, 3000, 1, 0, 0);
	audio::set_static_emitter_enabled("SE_DMOD_Trailer_Radio", false);
	audio::set_ambient_zone_state("AZ_DMOD_TRAILER_01", 0, 1);
	streaming::set_ped_population_budget(3);
	streaming::set_vehicle_population_budget(3);
	audio::stop_audio_scene("Director_Mode_No_Cars_Scene");
	audio::set_ambient_zone_list_state("AZL_VEHICLE_RADIO_EMITTER_ZONES", 1, 1);
	ui::_0x62E849B7EB28E770(0);
	ui::_0xF8DEE0A5600CBB93(0);
	player::set_wanted_level_multiplier(1f);
	player::set_max_wanted_level(5);
	player::clear_player_wanted_level(player::player_id());
	decisionevent::remove_all_shocking_events(0);
	func_38(0);
	func_35();
	iVar0 = 1;
	while (iVar0 <= 8)
	{
		func_33(iVar0, 0);
		iVar0++;
	}
	Global_25159 = 0;
	gameplay::_0xD79185689F8FD5DF(1);
	func_735(1);
	iLocal_7597 = 0;
	func_365(1, -1);
	func_94(1);
	graphics::set_scaleform_movie_as_no_longer_needed(&iLocal_7922);
	if (iLocal_5657 != -1)
	{
		func_1222(&iLocal_5657);
	}
	controls::enable_control_action(0, 46, 1);
	controls::enable_control_action(0, 36, 1);
	controls::enable_control_action(0, 82, 1);
	controls::enable_control_action(0, 81, 1);
	player::_0xCAC57395B151135F(player::player_id(), 1);
	ui::_0x808519373FD336A3(0);
	player::set_auto_give_parachute_when_enter_plane(player::player_id(), 1);
	func_698(0);
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		ped::set_ped_config_flag(player::player_ped_id(), 272, false);
		ped::set_ped_config_flag(player::player_ped_id(), 400, false);
		ped::set_ped_config_flag(player::player_ped_id(), 169, false);
	}
	ped::set_enable_scuba(player::player_ped_id(), 0);
	ped::set_ped_max_time_underwater(player::player_ped_id(), -1f);
	ped::set_ped_dies_in_water(player::player_ped_id(), 1);
	ped::_0x6B0E6172C9A4D902(1);
	ui::set_waypoint_off();
	func_873(1);
	vehicle::set_all_vehicle_generators_active();
	pathfind::set_roads_back_to_original(-10000f, -10000f, -200f, 10000f, 10000f, 1000f, 1);
	vehicle::_display_distant_vehicles(1);
	graphics::disable_vehicle_distantlights(0);
	vehicle::set_random_trains(1);
	vehicle::set_random_boats(1);
	ui::set_frontend_active(0);
	graphics::_0xC6372ECD45D73BCD(0);
	graphics::_set_2d_layer(4);
	if (player::is_player_playing(player::player_id()))
	{
		player::set_player_can_use_cover(player::player_id(), 1);
	}
	cam::_0x2A2173E46DAECD12(cam::_0x19CAFA3C87F7C2FF(), iLocal_9744);
	audio::release_named_script_audio_bank("DLC_GTAO/SNACKS");
	func_1211();
}

void func_1211()//Position - 0xAF204
{
	vector3 vVar0[24];
	
	if (gameplay::is_xbox360_version() || gameplay::is_durango_version())
	{
		network::network_set_rich_presence(StackVal, 0, 0, 0);
	}
	else if (gameplay::is_ps3_version() || gameplay::is_orbis_version())
	{
		StringCopy(&cVar0, "PRESENCE_0_STR", 24);
		network::_0x3E200C2BCF4164EB(0, &cVar0);
	}
}

void func_1212()//Position - 0xAF248
{
	if (iLocal_9769 == 1)
	{
		func_757(174, iLocal_9769, 0, 1, 0);
	}
}

void func_1213()//Position - 0xAF263
{
	if (iLocal_9768)
	{
		func_757(147, iLocal_9766, 0, 1, 0);
		func_757(148, iLocal_9767, 0, 1, 0);
	}
}

void func_1214()//Position - 0xAF289
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 8)
	{
		if (Global_88576[iVar0 /*17*/] && !Global_88576[iVar0 /*17*/].f_1)
		{
			if (Global_88576[iVar0 /*17*/].f_3 == 0)
			{
				if ((Global_88576[iVar0 /*17*/].f_5 != 88 && Global_88576[iVar0 /*17*/].f_5 != 89) && Global_88576[iVar0 /*17*/].f_5 != 92)
				{
					func_1215(Global_88576[iVar0 /*17*/].f_5, 1);
				}
			}
		}
		iVar0++;
	}
}

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

void func_1216(var uParam0)//Position - 0xAF34E
{
	int iVar0;
	int iVar1;
	
	iVar1 = (27 - 1);
	iVar0 = 0;
	while (iVar0 <= iVar1)
	{
		object::_set_door_acceleration_limit(Global_34865[iVar0 /*31*/], (*uParam0)[iVar0], 1, 0);
		iVar0++;
	}
}

void func_1217()//Position - 0xAF382
{
	func_877();
	ui::clear_additional_text(2, false);
	func_16(0);
}

void func_1218()//Position - 0xAF399
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	struct<32> Var4;
	
	iVar3 = 0;
	Var4.f_1 = 13;
	Var4.f_15 = 11;
	Var4 = { Var4 };
	iVar0 = 0;
	while (iVar0 < Local_6878)
	{
		iVar1 = 0;
		while (iVar1 < Var4.f_1)
		{
			iVar2 = Local_6878[iVar0 /*32*/].f_1[iVar1];
			func_1220(&(Global_101186.f_31035.f_6), iVar3, 6, iVar2);
			iVar3++;
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 < Var4.f_15)
		{
			iVar2 = Local_6878[iVar0 /*32*/].f_15[iVar1];
			func_1220(&(Global_101186.f_31035.f_6), iVar3, 6, iVar2);
			iVar3++;
			iVar1++;
		}
		Global_101186.f_31035.f_107[iVar0] = Local_6878[iVar0 /*32*/];
		Global_101186.f_31035.f_128[iVar0] = Local_6878[iVar0 /*32*/].f_27;
		if (Local_6878[iVar0 /*32*/].f_29)
		{
			gameplay::set_bit(&(Global_101186.f_31035.f_149), iVar0);
		}
		else
		{
			gameplay::clear_bit(&(Global_101186.f_31035.f_149), iVar0);
		}
		Global_101186.f_31035.f_150[iVar0] = Local_6878[iVar0 /*32*/].f_31;
		iVar0++;
	}
	Global_101186.f_31035.f_171 = { vLocal_7701 };
	Global_101186.f_31035.f_174 = fLocal_7707;
	Global_101186.f_31035.f_175[0 /*3*/] = { Local_9128[0 /*17*/] };
	Global_101186.f_31035.f_182[0] = Local_9128[0 /*17*/].f_3;
	Global_101186.f_31035.f_185[0] = Local_9128[0 /*17*/].f_11;
	Global_101186.f_31035.f_175[1 /*3*/] = { Local_9128[1 /*17*/] };
	Global_101186.f_31035.f_182[1] = Local_9128[1 /*17*/].f_3;
	Global_101186.f_31035.f_185[1] = Local_9128[1 /*17*/].f_11;
	func_1219();
}

void func_1219()//Position - 0xAF554
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 4)
	{
		iVar1 = 0;
		while (iVar1 < 50)
		{
			Global_101186.f_31035.f_188[(iVar0 * 50 + iVar1) /*3*/] = { Local_4057[iVar0 /*351*/][iVar1 /*7*/] };
			Global_101186.f_31035.f_789[(iVar0 * 50 + iVar1) /*3*/] = { Local_4057[iVar0 /*351*/][iVar1 /*7*/].f_3 };
			Global_101186.f_31035.f_1390[(iVar0 * 50 + iVar1)] = Local_4057[iVar0 /*351*/][iVar1 /*7*/].f_6;
			iVar1++;
		}
		Global_101186.f_31035.f_1591[iVar0 /*6*/] = { Local_5462[iVar0 /*12*/].f_6 };
		iVar0++;
	}
}

void func_1220(var uParam0, int iParam1, int iParam2, int iParam3)//Position - 0xAF604
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_1043(iParam1, iParam2);
	iVar1 = func_1042(iParam1, iParam2);
	if (iVar0 >= *uParam0)
	{
	}
	else
	{
		func_1221(uParam0[iVar0], iVar1, iParam2, iParam3);
	}
}

void func_1221(var uParam0, int iParam1, int iParam2, int iParam3)//Position - 0xAF63B
{
	var uVar0;
	
	uVar0 = func_1041(iParam2, (iParam1 * iParam2));
	*uParam0 = (*uParam0 - (*uParam0 && uVar0));
	*uParam0 = (*uParam0 || system::shift_left(iParam3, (iParam1 * iParam2)));
}

void func_1222(int iParam0)//Position - 0xAF66F
{
	if (*iParam0 == -1)
	{
		return;
	}
	if (!*iParam0 == Global_35704)
	{
		*iParam0 = -1;
		return;
	}
	*iParam0 = -1;
	Global_35703 = 0;
	Global_35705 = 0;
	Global_35742 = 15;
	Global_55777 = 0;
	Global_55778 = 0;
}

void func_1223()//Position - 0xAF6AC
{
	func_697(2, 0);
	func_697(3, 0);
	func_697(4, 0);
	func_697(5, 0);
	func_697(7, 0);
	func_697(10, 0);
	func_697(15, 0);
	func_697(16, 0);
	func_697(17, 0);
	func_697(19, 0);
	func_697(18, 0);
}

void func_1224()//Position - 0xAF6FC
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= 24)
	{
		if (func_21(iVar0))
		{
			func_20(iVar0, 0);
		}
		iVar0++;
	}
}

void func_1225()//Position - 0xAF727
{
	int iVar0;
	int iVar1;
	
	func_1210();
	func_1146(0);
	func_39(1);
	Global_91349 = 0;
	func_1124(1, 1);
	ui::_0x808519373FD336A3(0);
	gameplay::_0x4EBB7E87AA0DBED4(0);
	func_1123();
	if (script::_get_number_of_instances_of_streamed_script(joaat("autosave_controller")) == 0)
	{
		script::_request_streamed_script(joaat("autosave_controller"));
		while (!script::_has_streamed_script_loaded(joaat("autosave_controller")))
		{
			system::wait(0);
		}
		system::_start_new_streamed_script(joaat("autosave_controller"), 1424);
		script::_set_streamed_script_as_no_longer_needed(joaat("autosave_controller"));
	}
	iVar0 = gameplay::get_game_timer();
	iVar1 = 5;
	while (!func_1088() && iVar1 > 0)
	{
		iVar1 = (iVar1 - 1);
		system::wait(0);
	}
	while (func_1088())
	{
		system::wait(0);
	}
	func_1124(0, 0);
}

bool func_1226()//Position - 0xAF7D5
{
	if (iLocal_6555 == 18)
	{
		return true;
	}
	return false;
}

void func_1227()//Position - 0xAF7EA
{
	Global_100139 = (system::floor(system::pow(2f, system::to_float(30))) - 1);
}

