text: #region Local Var
  	var uLocal_0 = 0;
  	var uLocal_1 = 0;
  	int iLocal_2 = 0;
  	int iLocal_3 = 0;
  	int iLocal_4 = 0;
  	int iLocal_5 = 0;
  	int iLocal_6 = 0;
  	int iLocal_7 = 0;
  	int iLocal_8 = 0;
  	int iLocal_9 = 0;
  	int iLocal_10 = 0;
  	int iLocal_11 = 0;
  	var uLocal_12 = 0;
  	var uLocal_13 = 0;
  	float fLocal_14 = 0f;
  	var uLocal_15 = 0;
  	var uLocal_16 = 0;
  	int iLocal_17 = 0;
  	var uLocal_18 = 0;
  	var uLocal_19 = 0;
  	char* sLocal_20 = NULL;
  	float fLocal_21 = 0f;
  	var uLocal_22 = 0;
  	var uLocal_23 = 0;
  	var uLocal_24 = 0;
  	float fLocal_25 = 0f;
  	float fLocal_26 = 0f;
  	var uLocal_27 = 0;
  	int iLocal_28 = 0;
  	var uLocal_29 = 0;
  	var uLocal_30 = 0;
  	float fLocal_31 = 0f;
  	float fLocal_32 = 0f;
  	float fLocal_33 = 0f;
  	var uLocal_34 = 0;
  	var uLocal_35 = 0;
  	var uLocal_36 = 0;
  	var uLocal_37 = 0;
  	var uLocal_38 = 0;
  	int iLocal_39 = 0;
  	int iLocal_40 = 0;
  	int iLocal_41 = 0;
  	int iLocal_42 = 0;
  	var uLocal_43 = 0;
  	var uLocal_44 = 0;
  	struct<3> Local_45 = { 0, 0, 0 } ;
  	var uLocal_46 = 0;
  	var uLocal_47 = 0;
  	var uLocal_48 = 1132396544;
  	var uLocal_49 = 1132396544;
  	var uLocal_50 = 1132396544;
  	var uLocal_51 = 0;
  	var uLocal_52 = -1082130432;
  	var uLocal_53 = 0;
  	var uLocal_54 = 0;
  	var uLocal_55 = 8;
  	var uLocal_56 = 0;
  	var uLocal_57 = 0;
  	var uLocal_58 = 0;
  	var uLocal_59 = 0;
  	var uLocal_60 = 0;
  	var uLocal_61 = 0;
  	var uLocal_62 = 0;
  	var uLocal_63 = 0;
  	var uLocal_64 = 0;
  	var uLocal_65 = 0;
  	var uLocal_66 = 0;
  	var uLocal_67 = 0;
  	var uLocal_68 = 0;
  	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 = 0;
  	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 = 0;
  	var uLocal_112 = -1;
  	var uLocal_113 = 1092616192;
  	var uLocal_114 = 0;
  	var uLocal_115 = 0;
  	bool bLocal_116 = 0;
  	int iLocal_117 = 0;
  	int iLocal_118 = 0;
  	int iLocal_119 = 0;
  	struct<7> Local_120 = { 0, 0, 1097859072, 1500, 45, 1103626240, 5 } ;
  	struct<4> Local_121 = { 0, 0, 0, 0 } ;
  	var uLocal_122 = 0;
  	float fLocal_123 = 0f;
  	float fLocal_124 = 0f;
  	float fLocal_125 = 0f;
  	bool bLocal_126 = 0;
  	bool bLocal_127 = 0;
  	int iLocal_128 = 0;
  	var uLocal_129 = 0;
  	var uLocal_130 = 0;
  	var uLocal_131 = 0;
  	int iLocal_132 = 0;
  	var uLocal_133 = 0;
  	int iLocal_134 = 0;
  	int iLocal_135 = 0;
  	var uLocal_136 = 0;
  	var uLocal_137 = 0;
  	var uLocal_138 = 0;
  	var uLocal_139 = 0;
  	var uLocal_140 = 0;
  	var uLocal_141 = 0;
  	var uLocal_142 = 0;
  	var uLocal_143 = 0;
  	var uLocal_144 = 0;
  	var uLocal_145 = 0;
  	var uLocal_146 = 0;
  	var uLocal_147 = 0;
  	var uLocal_148 = 0;
  	var uLocal_149 = 0;
  	var uLocal_150 = 0;
  	var uLocal_151 = 0;
  	var uLocal_152 = 0;
  	var uLocal_153 = 0;
  	var uLocal_154 = 0;
  	var uLocal_155 = 0;
  	var uLocal_156 = 0;
  	var uLocal_157 = 0;
  	var uLocal_158 = 0;
  	var uLocal_159 = 0;
  	var uLocal_160 = 0;
  	var uLocal_161 = 0;
  	var uLocal_162 = 0;
  	var uLocal_163 = 0;
  	var uLocal_164 = 0;
  	var uLocal_165 = 0;
  	var uLocal_166 = 0;
  	var uLocal_167 = 0;
  	var uLocal_168 = 0;
  	var uLocal_169 = 0;
  	var uLocal_170 = 0;
  	var uLocal_171 = 3;
  	var uLocal_172 = 0;
  	var uLocal_173 = 0;
  	var uLocal_174 = 0;
  	var uLocal_175 = 1;
  	var uLocal_176 = 0;
  	var uLocal_177 = 0;
  	var uLocal_178 = 0;
  	var uLocal_179 = 0;
  	var uLocal_180 = 0;
  	var uLocal_181 = 0;
  	var uLocal_182 = 0;
  	var uLocal_183 = 0;
  	var uLocal_184 = 0;
  	var uLocal_185 = 0;
  	var uLocal_186 = 0;
  	var uLocal_187 = 0;
  	var uLocal_188 = 0;
  	var uLocal_189 = 0;
  	var uLocal_190 = 0;
  	var uLocal_191 = 0;
  	var uLocal_192 = 2;
  	var uLocal_193 = 0;
  	var uLocal_194 = 0;
  	var uLocal_195 = 0;
  	var uLocal_196 = 13;
  	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 = 13;
  	var uLocal_211 = 0;
  	var uLocal_212 = 0;
  	var uLocal_213 = 0;
  	var uLocal_214 = 0;
  	var uLocal_215 = 0;
  	var uLocal_216 = 0;
  	var uLocal_217 = 0;
  	var uLocal_218 = 0;
  	var uLocal_219 = 0;
  	var uLocal_220 = 0;
  	var uLocal_221 = 0;
  	var uLocal_222 = 0;
  	var uLocal_223 = 0;
  	var uLocal_224 = 0;
  	var uLocal_225 = 0;
  	var uLocal_226 = 0;
  	var uLocal_227 = 0;
  	var uLocal_228 = 0;
  	var uLocal_229 = 0;
  	var uLocal_230 = 0;
  	var uLocal_231 = 0;
  	var uLocal_232 = 0;
  	var uLocal_233 = 0;
  	var uLocal_234 = 0;
  	var uLocal_235 = 0;
  	var uLocal_236 = 0;
  	var uLocal_237 = 0;
  	var uLocal_238 = 0;
  	var uLocal_239 = 0;
  	var uLocal_240 = 0;
  	var uLocal_241 = 0;
  	var uLocal_242 = 0;
  	var uLocal_243 = 0;
  	var uLocal_244 = 0;
  	var uLocal_245 = 0;
  	var uLocal_246 = 0;
  	var uLocal_247 = 0;
  	var uLocal_248 = 0;
  	var uLocal_249 = 0;
  	var uLocal_250 = 0;
  	var uLocal_251 = 0;
  	var uLocal_252 = 0;
  	var uLocal_253 = 0;
  	var uLocal_254 = 0;
  	var uLocal_255 = 0;
  	var uLocal_256 = 0;
  	var uLocal_257 = 0;
  	var uLocal_258 = 0;
  	var uLocal_259 = 0;
  	var uLocal_260 = 0;
  	var uLocal_261 = 0;
  	var uLocal_262 = 0;
  	var uLocal_263 = 0;
  	var uLocal_264 = 0;
  	var uLocal_265 = 0;
  	var uLocal_266 = 0;
  	var uLocal_267 = 0;
  	var uLocal_268 = 0;
  	var uLocal_269 = 0;
  	var uLocal_270 = 0;
  	var uLocal_271 = 0;
  	var uLocal_272 = 0;
  	var uLocal_273 = 0;
  	var uLocal_274 = 0;
  	var uLocal_275 = 0;
  	var uLocal_276 = 0;
  	var uLocal_277 = 0;
  	var uLocal_278 = 0;
  	var uLocal_279 = 0;
  	var uLocal_280 = 0;
  	var uLocal_281 = 0;
  	var uLocal_282 = 0;
  	var uLocal_283 = 0;
  	var uLocal_284 = 0;
  	var uLocal_285 = 0;
  	var uLocal_286 = 0;
  	var uLocal_287 = 0;
  	var uLocal_288 = 0;
  	var uLocal_289 = 0;
  	var uLocal_290 = 0;
  	var uLocal_291 = 0;
  	var uLocal_292 = 0;
  	var uLocal_293 = 0;
  	var uLocal_294 = 0;
  	var uLocal_295 = 0;
  	var uLocal_296 = 0;
  	var uLocal_297 = 0;
  	var uLocal_298 = 0;
  	var uLocal_299 = 0;
  	var uLocal_300 = 0;
  	var uLocal_301 = 0;
  	var uLocal_302 = 0;
  	var uLocal_303 = 0;
  	var uLocal_304 = 0;
  	var uLocal_305 = 0;
  	var uLocal_306 = 0;
  	var uLocal_307 = 0;
  	var uLocal_308 = 0;
  	var uLocal_309 = 0;
  	var uLocal_310 = 0;
  	var uLocal_311 = 0;
  	var uLocal_312 = 0;
  	var uLocal_313 = 0;
  	var uLocal_314 = 0;
  	var uLocal_315 = 0;
  	var uLocal_316 = 0;
  	var uLocal_317 = 0;
  	var uLocal_318 = 0;
  	var uLocal_319 = 0;
  	var uLocal_320 = 0;
  	var uLocal_321 = 0;
  	var uLocal_322 = 0;
  	var uLocal_323 = 0;
  	var uLocal_324 = 0;
  	var uLocal_325 = 0;
  	var uLocal_326 = 0;
  	var uLocal_327 = 0;
  	var uLocal_328 = 0;
  	var uLocal_329 = 0;
  	var uLocal_330 = 0;
  	var uLocal_331 = 0;
  	var uLocal_332 = 0;
  	var uLocal_333 = 0;
  	var uLocal_334 = 0;
  	var uLocal_335 = 0;
  	var uLocal_336 = 0;
  	var uLocal_337 = 0;
  	var uLocal_338 = 0;
  	var uLocal_339 = 0;
  	var uLocal_340 = 0;
  	var uLocal_341 = 0;
  	var uLocal_342 = 0;
  	var uLocal_343 = 0;
  	var uLocal_344 = 0;
  	var uLocal_345 = 0;
  	var uLocal_346 = 0;
  	var uLocal_347 = 0;
  	var uLocal_348 = 0;
  	var uLocal_349 = 0;
  	var uLocal_350 = 0;
  	var uLocal_351 = 0;
  	var uLocal_352 = 0;
  	var uLocal_353 = 0;
  	var uLocal_354 = 0;
  	var uLocal_355 = 0;
  	var uLocal_356 = 0;
  	var uLocal_357 = 0;
  	var uLocal_358 = 0;
  	var uLocal_359 = 0;
  	var uLocal_360 = 0;
  	var uLocal_361 = 0;
  	var uLocal_362 = 0;
  	var uLocal_363 = 0;
  	var uLocal_364 = 0;
  	var uLocal_365 = 0;
  	var uLocal_366 = 0;
  	var uLocal_367 = 0;
  	var uLocal_368 = 0;
  	var uLocal_369 = 0;
  	var uLocal_370 = 0;
  	var uLocal_371 = 0;
  	var uLocal_372 = 0;
  	var uLocal_373 = 0;
  	var uLocal_374 = 0;
  	var uLocal_375 = 0;
  	var uLocal_376 = 0;
  	var uLocal_377 = 0;
  	var uLocal_378 = 0;
  	var uLocal_379 = 0;
  	var uLocal_380 = 0;
  	var uLocal_381 = 0;
  	var uLocal_382 = 0;
  	var uLocal_383 = 0;
  	var uLocal_384 = 0;
  	var uLocal_385 = 0;
  	var uLocal_386 = 0;
  	var uLocal_387 = 0;
  	var uLocal_388 = 0;
  	var uLocal_389 = 0;
  	var uLocal_390 = 0;
  	var uLocal_391 = 0;
  	var uLocal_392 = 0;
  	var uLocal_393 = 0;
  	var uLocal_394 = 0;
  	var uLocal_395 = 0;
  	var uLocal_396 = 0;
  	var uLocal_397 = 0;
  	var uLocal_398 = 0;
  	var uLocal_399 = 0;
  	var uLocal_400 = 0;
  	var uLocal_401 = 0;
  	var uLocal_402 = 0;
  	var uLocal_403 = 0;
  	var uLocal_404 = 0;
  	var uLocal_405 = 0;
  	var uLocal_406 = 0;
  	var uLocal_407 = 0;
  	var uLocal_408 = 0;
  	var uLocal_409 = 0;
  	var uLocal_410 = 0;
  	var uLocal_411 = 0;
  	var uLocal_412 = 0;
  	var uLocal_413 = 0;
  	var uLocal_414 = 0;
  	var uLocal_415 = 0;
  	var uLocal_416 = 0;
  	var uLocal_417 = 0;
  	var uLocal_418 = 0;
  	var uLocal_419 = 13;
  	var uLocal_420 = 0;
  	var uLocal_421 = 0;
  	var uLocal_422 = 0;
  	var uLocal_423 = 0;
  	var uLocal_424 = 0;
  	var uLocal_425 = 0;
  	var uLocal_426 = 0;
  	var uLocal_427 = 0;
  	var uLocal_428 = 0;
  	var uLocal_429 = 0;
  	var uLocal_430 = 0;
  	var uLocal_431 = 0;
  	var uLocal_432 = 0;
  	var uLocal_433 = 0;
  	var uLocal_434 = 0;
  	var uLocal_435 = 0;
  	var uLocal_436 = 0;
  	var uLocal_437 = 0;
  	var uLocal_438 = 0;
  	var uLocal_439 = 0;
  	var uLocal_440 = 0;
  	var uLocal_441 = 0;
  	var uLocal_442 = 0;
  	var uLocal_443 = 0;
  	var uLocal_444 = 0;
  	var uLocal_445 = 0;
  	var uLocal_446 = 0;
  	var uLocal_447 = 0;
  	var uLocal_448 = 0;
  	var uLocal_449 = 0;
  	var uLocal_450 = 0;
  	var uLocal_451 = 0;
  	var uLocal_452 = 0;
  	var uLocal_453 = 0;
  	var uLocal_454 = 0;
  	var uLocal_455 = 0;
  	var uLocal_456 = 0;
  	var uLocal_457 = 0;
  	var uLocal_458 = 0;
  	var uLocal_459 = 0;
  	var uLocal_460 = 0;
  	var uLocal_461 = 0;
  	var uLocal_462 = 0;
  	var uLocal_463 = 0;
  	var uLocal_464 = 0;
  	var uLocal_465 = 0;
  	var uLocal_466 = 0;
  	var uLocal_467 = 0;
  	var uLocal_468 = 0;
  	var uLocal_469 = 0;
  	var uLocal_470 = 0;
  	var uLocal_471 = 0;
  	var uLocal_472 = 0;
  	var uLocal_473 = 0;
  	var uLocal_474 = 0;
  	var uLocal_475 = 0;
  	var uLocal_476 = 0;
  	var uLocal_477 = 0;
  	var uLocal_478 = 0;
  	var uLocal_479 = 0;
  	var uLocal_480 = 0;
  	var uLocal_481 = 0;
  	var uLocal_482 = 0;
  	var uLocal_483 = 0;
  	var uLocal_484 = 0;
  	var uLocal_485 = 0;
  	var uLocal_486 = 0;
  	var uLocal_487 = 0;
  	var uLocal_488 = 0;
  	var uLocal_489 = 0;
  	var uLocal_490 = 0;
  	var uLocal_491 = 0;
  	var uLocal_492 = 0;
  	var uLocal_493 = 0;
  	var uLocal_494 = 0;
  	var uLocal_495 = 0;
  	var uLocal_496 = 0;
  	var uLocal_497 = 0;
  	var uLocal_498 = 0;
  	var uLocal_499 = 0;
  	var uLocal_500 = 0;
  	var uLocal_501 = 0;
  	var uLocal_502 = 0;
  	var uLocal_503 = 0;
  	var uLocal_504 = 0;
  	var uLocal_505 = 0;
  	var uLocal_506 = 0;
  	var uLocal_507 = 0;
  	var uLocal_508 = 0;
  	var uLocal_509 = 0;
  	var uLocal_510 = 0;
  	var uLocal_511 = 0;
  	var uLocal_512 = 0;
  	var uLocal_513 = 0;
  	var uLocal_514 = 0;
  	var uLocal_515 = 0;
  	var uLocal_516 = 0;
  	var uLocal_517 = 0;
  	var uLocal_518 = 0;
  	var uLocal_519 = 0;
  	var uLocal_520 = 0;
  	var uLocal_521 = 0;
  	var uLocal_522 = 0;
  	var uLocal_523 = 0;
  	var uLocal_524 = 0;
  	var uLocal_525 = 0;
  	var uLocal_526 = 0;
  	var uLocal_527 = 0;
  	var uLocal_528 = 0;
  	var uLocal_529 = 0;
  	var uLocal_530 = 0;
  	var uLocal_531 = 0;
  	var uLocal_532 = 0;
  	var uLocal_533 = 0;
  	var uLocal_534 = 0;
  	var uLocal_535 = 0;
  	var uLocal_536 = 0;
  	var uLocal_537 = 0;
  	var uLocal_538 = 0;
  	var uLocal_539 = 0;
  	var uLocal_540 = 0;
  	var uLocal_541 = 0;
  	var uLocal_542 = 0;
  	var uLocal_543 = 0;
  	var uLocal_544 = 0;
  	var uLocal_545 = 0;
  	var uLocal_546 = 0;
  	var uLocal_547 = 0;
  	var uLocal_548 = 0;
  	var uLocal_549 = 0;
  	var uLocal_550 = 0;
  	var uLocal_551 = 0;
  	var uLocal_552 = 0;
  	var uLocal_553 = 0;
  	var uLocal_554 = 0;
  	var uLocal_555 = 0;
  	var uLocal_556 = 0;
  	var uLocal_557 = 0;
  	var uLocal_558 = 0;
  	var uLocal_559 = 0;
  	var uLocal_560 = 0;
  	var uLocal_561 = 0;
  	var uLocal_562 = 0;
  	var uLocal_563 = 0;
  	var uLocal_564 = 0;
  	var uLocal_565 = 0;
  	var uLocal_566 = 0;
  	var uLocal_567 = 0;
  	var uLocal_568 = 0;
  	var uLocal_569 = 0;
  	var uLocal_570 = 0;
  	var uLocal_571 = 0;
  	var uLocal_572 = 0;
  	var uLocal_573 = 0;
  	var uLocal_574 = 0;
  	var uLocal_575 = 0;
  	var uLocal_576 = 0;
  	var uLocal_577 = 0;
  	var uLocal_578 = 0;
  	var uLocal_579 = 0;
  	var uLocal_580 = 0;
  	var uLocal_581 = 0;
  	var uLocal_582 = 0;
  	var uLocal_583 = 0;
  	var uLocal_584 = 0;
  	var uLocal_585 = 0;
  	var uLocal_586 = 0;
  	var uLocal_587 = 0;
  	var uLocal_588 = 0;
  	var uLocal_589 = 0;
  	var uLocal_590 = 0;
  	var uLocal_591 = 0;
  	var uLocal_592 = 0;
  	var uLocal_593 = 0;
  	var uLocal_594 = 0;
  	var uLocal_595 = 0;
  	var uLocal_596 = 0;
  	var uLocal_597 = 0;
  	var uLocal_598 = 0;
  	var uLocal_599 = 0;
  	var uLocal_600 = 0;
  	var uLocal_601 = 0;
  	var uLocal_602 = 0;
  	var uLocal_603 = 0;
  	var uLocal_604 = 0;
  	var uLocal_605 = 0;
  	var uLocal_606 = 0;
  	var uLocal_607 = 0;
  	var uLocal_608 = 0;
  	var uLocal_609 = 0;
  	var uLocal_610 = 0;
  	var uLocal_611 = 0;
  	var uLocal_612 = 0;
  	var uLocal_613 = 0;
  	var uLocal_614 = 0;
  	var uLocal_615 = 0;
  	var uLocal_616 = 0;
  	var uLocal_617 = 0;
  	var uLocal_618 = 0;
  	var uLocal_619 = 0;
  	var uLocal_620 = 0;
  	var uLocal_621 = 0;
  	var uLocal_622 = 0;
  	var uLocal_623 = 0;
  	var uLocal_624 = 0;
  	var uLocal_625 = 0;
  	var uLocal_626 = 0;
  	var uLocal_627 = 0;
  	var uLocal_628 = 13;
  	var uLocal_629 = 0;
  	var uLocal_630 = 0;
  	var uLocal_631 = 0;
  	var uLocal_632 = 0;
  	var uLocal_633 = 0;
  	var uLocal_634 = 0;
  	var uLocal_635 = 0;
  	var uLocal_636 = 0;
  	var uLocal_637 = 0;
  	var uLocal_638 = 0;
  	var uLocal_639 = 0;
  	var uLocal_640 = 0;
  	var uLocal_641 = 0;
  	var uLocal_642 = 13;
  	var uLocal_643 = 0;
  	var uLocal_644 = 0;
  	var uLocal_645 = 0;
  	var uLocal_646 = 0;
  	var uLocal_647 = 0;
  	var uLocal_648 = 0;
  	var uLocal_649 = 0;
  	var uLocal_650 = 0;
  	var uLocal_651 = 0;
  	var uLocal_652 = 0;
  	var uLocal_653 = 0;
  	var uLocal_654 = 0;
  	var uLocal_655 = 0;
  	var uLocal_656 = 13;
  	var uLocal_657 = 0;
  	var uLocal_658 = 0;
  	var uLocal_659 = 0;
  	var uLocal_660 = 0;
  	var uLocal_661 = 0;
  	var uLocal_662 = 0;
  	var uLocal_663 = 0;
  	var uLocal_664 = 0;
  	var uLocal_665 = 0;
  	var uLocal_666 = 0;
  	var uLocal_667 = 0;
  	var uLocal_668 = 0;
  	var uLocal_669 = 0;
  	var uLocal_670 = 13;
  	var uLocal_671 = 0;
  	var uLocal_672 = 0;
  	var uLocal_673 = 0;
  	var uLocal_674 = 0;
  	var uLocal_675 = 0;
  	var uLocal_676 = 0;
  	var uLocal_677 = 0;
  	var uLocal_678 = 0;
  	var uLocal_679 = 0;
  	var uLocal_680 = 0;
  	var uLocal_681 = 0;
  	var uLocal_682 = 0;
  	var uLocal_683 = 0;
  	var uLocal_684 = 0;
  	var uLocal_685 = 0;
  	var uLocal_686 = 0;
  	var uLocal_687 = 0;
  	var uLocal_688 = 0;
  	var uLocal_689 = 0;
  	var uLocal_690 = 0;
  	var uLocal_691 = 0;
  	var uLocal_692 = 0;
  	var uLocal_693 = 0;
  	var uLocal_694 = 0;
  	var uLocal_695 = 0;
  	var uLocal_696 = 0;
  	var uLocal_697 = 0;
  	var uLocal_698 = 0;
  	var uLocal_699 = 0;
  	var uLocal_700 = 0;
  	var uLocal_701 = 0;
  	var uLocal_702 = 0;
  	var uLocal_703 = 0;
  	var uLocal_704 = 0;
  	var uLocal_705 = 0;
  	var uLocal_706 = 0;
  	var uLocal_707 = 0;
  	var uLocal_708 = 0;
  	var uLocal_709 = 0;
  	var uLocal_710 = 0;
  	var uLocal_711 = 0;
  	var uLocal_712 = 0;
  	var uLocal_713 = 0;
  	var uLocal_714 = 0;
  	var uLocal_715 = 0;
  	struct<61> Local_716 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
  	var uLocal_717 = 0;
  	var uLocal_718 = 0;
  	var uLocal_719 = 0;
  	var uLocal_720 = 0;
  	var uLocal_721 = 0;
  	var uLocal_722 = 0;
  	var uLocal_723 = 0;
  	var uLocal_724 = 0;
  	bool bLocal_725 = 0;
  	int iLocal_726 = 0;
  	var uLocal_727 = 16;
  	var uLocal_728 = 0;
  	var uLocal_729 = 0;
  	var uLocal_730 = 0;
  	var uLocal_731 = 0;
  	var uLocal_732 = 0;
  	var uLocal_733 = 0;
  	var uLocal_734 = 0;
  	var uLocal_735 = 0;
  	var uLocal_736 = 0;
  	var uLocal_737 = 0;
  	var uLocal_738 = 0;
  	var uLocal_739 = 0;
  	var uLocal_740 = 0;
  	var uLocal_741 = 0;
  	var uLocal_742 = 0;
  	var uLocal_743 = 0;
  	var uLocal_744 = 0;
  	var uLocal_745 = 0;
  	var uLocal_746 = 0;
  	var uLocal_747 = 0;
  	var uLocal_748 = 0;
  	var uLocal_749 = 0;
  	var uLocal_750 = 0;
  	var uLocal_751 = 0;
  	var uLocal_752 = 0;
  	var uLocal_753 = 0;
  	var uLocal_754 = 0;
  	var uLocal_755 = 0;
  	var uLocal_756 = 0;
  	var uLocal_757 = 0;
  	var uLocal_758 = 0;
  	var uLocal_759 = 0;
  	var uLocal_760 = 0;
  	var uLocal_761 = 0;
  	var uLocal_762 = 0;
  	var uLocal_763 = 0;
  	var uLocal_764 = 0;
  	var uLocal_765 = 0;
  	var uLocal_766 = 0;
  	var uLocal_767 = 0;
  	var uLocal_768 = 0;
  	var uLocal_769 = 0;
  	var uLocal_770 = 0;
  	var uLocal_771 = 0;
  	var uLocal_772 = 0;
  	var uLocal_773 = 0;
  	var uLocal_774 = 0;
  	var uLocal_775 = 0;
  	var uLocal_776 = 0;
  	var uLocal_777 = 0;
  	var uLocal_778 = 0;
  	var uLocal_779 = 0;
  	var uLocal_780 = 0;
  	var uLocal_781 = 0;
  	var uLocal_782 = 0;
  	var uLocal_783 = 0;
  	var uLocal_784 = 0;
  	var uLocal_785 = 0;
  	var uLocal_786 = 0;
  	var uLocal_787 = 0;
  	var uLocal_788 = 0;
  	var uLocal_789 = 0;
  	var uLocal_790 = 0;
  	var uLocal_791 = 0;
  	var uLocal_792 = 0;
  	var uLocal_793 = 0;
  	var uLocal_794 = 0;
  	var uLocal_795 = 0;
  	var uLocal_796 = 0;
  	var uLocal_797 = 0;
  	var uLocal_798 = 0;
  	var uLocal_799 = 0;
  	var uLocal_800 = 0;
  	var uLocal_801 = 0;
  	var uLocal_802 = 0;
  	var uLocal_803 = 0;
  	var uLocal_804 = 0;
  	var uLocal_805 = 0;
  	var uLocal_806 = 0;
  	var uLocal_807 = 0;
  	var uLocal_808 = 0;
  	var uLocal_809 = 0;
  	var uLocal_810 = 0;
  	var uLocal_811 = 0;
  	var uLocal_812 = 0;
  	var uLocal_813 = 0;
  	var uLocal_814 = 0;
  	var uLocal_815 = 0;
  	var uLocal_816 = 0;
  	var uLocal_817 = 0;
  	var uLocal_818 = 0;
  	var uLocal_819 = 0;
  	var uLocal_820 = 0;
  	var uLocal_821 = 0;
  	var uLocal_822 = 0;
  	var uLocal_823 = 0;
  	var uLocal_824 = 0;
  	var uLocal_825 = 0;
  	var uLocal_826 = 0;
  	var uLocal_827 = 0;
  	var uLocal_828 = 0;
  	var uLocal_829 = 0;
  	var uLocal_830 = 0;
  	var uLocal_831 = 0;
  	var uLocal_832 = 0;
  	var uLocal_833 = 0;
  	var uLocal_834 = 0;
  	var uLocal_835 = 0;
  	var uLocal_836 = 0;
  	var uLocal_837 = 0;
  	var uLocal_838 = 0;
  	var uLocal_839 = 0;
  	var uLocal_840 = 0;
  	var uLocal_841 = 0;
  	var uLocal_842 = 0;
  	var uLocal_843 = 0;
  	var uLocal_844 = 0;
  	var uLocal_845 = 0;
  	var uLocal_846 = 0;
  	var uLocal_847 = 0;
  	var uLocal_848 = 0;
  	var uLocal_849 = 0;
  	var uLocal_850 = 0;
  	var uLocal_851 = 0;
  	var uLocal_852 = 0;
  	var uLocal_853 = 0;
  	var uLocal_854 = 0;
  	var uLocal_855 = 0;
  	var uLocal_856 = 0;
  	var uLocal_857 = 0;
  	var uLocal_858 = 0;
  	var uLocal_859 = 0;
  	var uLocal_860 = 0;
  	var uLocal_861 = 0;
  	var uLocal_862 = 0;
  	var uLocal_863 = 0;
  	var uLocal_864 = 0;
  	var uLocal_865 = 0;
  	var uLocal_866 = 0;
  	var uLocal_867 = 0;
  	var uLocal_868 = 0;
  	var uLocal_869 = 0;
  	var uLocal_870 = 0;
  	var uLocal_871 = 0;
  	var uLocal_872 = 0;
  	var uLocal_873 = 0;
  	var uLocal_874 = 0;
  	var uLocal_875 = 0;
  	var uLocal_876 = 0;
  	var uLocal_877 = 0;
  	var uLocal_878 = 0;
  	var uLocal_879 = 0;
  	var uLocal_880 = 0;
  	var uLocal_881 = 0;
  	var uLocal_882 = 0;
  	var uLocal_883 = 0;
  	var uLocal_884 = 0;
  	var uLocal_885 = 0;
  	var uLocal_886 = 0;
  	var uLocal_887 = 0;
  	var uLocal_888 = 0;
  	var uLocal_889 = 0;
  	var uLocal_890 = 0;
  	var uLocal_891 = 0;
  	var uLocal_892 = 0;
  	var uLocal_893 = 0;
  	var uLocal_894 = 0;
  	var uLocal_895 = 0;
  	var uLocal_896 = 0;
  	var uLocal_897 = 0;
  	var uLocal_898 = 0;
  	var uLocal_899 = 0;
  	var uLocal_900 = 0;
  	var uLocal_901 = 0;
  	var uLocal_902 = 0;
  	var uLocal_903 = 0;
  	var uLocal_904 = 0;
  	var uLocal_905 = 0;
  	var uLocal_906 = 0;
  	var uLocal_907 = 0;
  	var uLocal_908 = 0;
  	var uLocal_909 = 0;
  	var uLocal_910 = 0;
  	var uLocal_911 = 12;
  	var uLocal_912 = 0;
  	var uLocal_913 = 0;
  	var uLocal_914 = 0;
  	var uLocal_915 = 0;
  	var uLocal_916 = 0;
  	var uLocal_917 = 0;
  	var uLocal_918 = 0;
  	var uLocal_919 = 0;
  	var uLocal_920 = 0;
  	var uLocal_921 = 0;
  	var uLocal_922 = 0;
  	var uLocal_923 = 0;
  	var uLocal_924 = 0;
  	var uLocal_925 = 0;
  	var uLocal_926 = 0;
  	var uLocal_927 = 0;
  	var uLocal_928 = 0;
  	var uLocal_929 = 0;
  	var uLocal_930 = 0;
  	var uLocal_931 = 0;
  	var uLocal_932 = 0;
  	var uLocal_933 = 0;
  	var uLocal_934 = 0;
  	var uLocal_935 = 0;
  	var uLocal_936 = 0;
  	var uLocal_937 = 0;
  	var uLocal_938 = 0;
  	var uLocal_939 = 0;
  	var uLocal_940 = 0;
  	var uLocal_941 = 0;
  	var uLocal_942 = 0;
  	var uLocal_943 = 0;
  	var uLocal_944 = 0;
  	var uLocal_945 = 0;
  	var uLocal_946 = 0;
  	var uLocal_947 = 0;
  	char cLocal_948[32] = "";
  	var uLocal_949 = 0;
  	var uLocal_950 = 0;
  	var uLocal_951 = 0;
  	var uLocal_952 = 0;
  	int iLocal_953 = 0;
  	int iLocal_954 = 0;
  	int iLocal_955 = 0;
  	int iLocal_956 = 0;
  	int iLocal_957 = 0;
  	bool bLocal_958 = 0;
  	int iLocal_959 = 0;
  	var uLocal_960 = 0;
  	int* iLocal_961 = NULL;
  	var uLocal_962 = 0;
  	var uLocal_963 = 0;
  	int* iLocal_964 = NULL;
  	var uLocal_965 = 0;
  	var uLocal_966 = 0;
  	int iLocal_967 = 0;
  	int iLocal_968 = 0;
  	int iLocal_969 = 0;
  	int iLocal_970 = 0;
  	struct<183> Local_971 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
  	var uLocal_972 = 0;
  	var uLocal_973 = 0;
  	var uLocal_974 = 0;
  	var uLocal_975 = 0;
  	struct<39> Local_976 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
  	var uLocal_977 = 0;
  	var uLocal_978 = 16;
  	var uLocal_979 = 0;
  	var uLocal_980 = 0;
  	var uLocal_981 = 0;
  	var uLocal_982 = 0;
  	var uLocal_983 = 0;
  	var uLocal_984 = 0;
  	var uLocal_985 = 0;
  	var uLocal_986 = 0;
  	var uLocal_987 = 0;
  	var uLocal_988 = 0;
  	var uLocal_989 = 0;
  	var uLocal_990 = 0;
  	var uLocal_991 = 0;
  	var uLocal_992 = 0;
  	var uLocal_993 = 0;
  	var uLocal_994 = 0;
  	var uLocal_995 = 0;
  	var uLocal_996 = 0;
  	var uLocal_997 = 0;
  	var uLocal_998 = 0;
  	var uLocal_999 = 0;
  	var uLocal_1000 = 0;
  	var uLocal_1001 = 0;
  	var uLocal_1002 = 0;
  	var uLocal_1003 = 0;
  	var uLocal_1004 = 0;
  	var uLocal_1005 = 0;
  	var uLocal_1006 = 0;
  	var uLocal_1007 = 0;
  	var uLocal_1008 = 0;
  	var uLocal_1009 = 0;
  	var uLocal_1010 = 0;
  	var uLocal_1011 = 0;
  	var uLocal_1012 = 0;
  	var uLocal_1013 = 0;
  	var uLocal_1014 = 0;
  	var uLocal_1015 = 0;
  	var uLocal_1016 = 0;
  	var uLocal_1017 = 0;
  	var uLocal_1018 = 0;
  	var uLocal_1019 = 0;
  	var uLocal_1020 = 0;
  	var uLocal_1021 = 0;
  	var uLocal_1022 = 0;
  	var uLocal_1023 = 0;
  	var uLocal_1024 = 0;
  	var uLocal_1025 = 0;
  	var uLocal_1026 = 0;
  	var uLocal_1027 = 0;
  	var uLocal_1028 = 0;
  	var uLocal_1029 = 0;
  	var uLocal_1030 = 0;
  	var uLocal_1031 = 0;
  	var uLocal_1032 = 0;
  	var uLocal_1033 = 0;
  	var uLocal_1034 = 0;
  	var uLocal_1035 = 0;
  	var uLocal_1036 = 0;
  	var uLocal_1037 = 0;
  	var uLocal_1038 = 0;
  	var uLocal_1039 = 0;
  	var uLocal_1040 = 0;
  	var uLocal_1041 = 0;
  	var uLocal_1042 = 0;
  	var uLocal_1043 = 0;
  	var uLocal_1044 = 0;
  	var uLocal_1045 = 0;
  	var uLocal_1046 = 0;
  	var uLocal_1047 = 0;
  	var uLocal_1048 = 0;
  	var uLocal_1049 = 0;
  	var uLocal_1050 = 0;
  	var uLocal_1051 = 0;
  	var uLocal_1052 = 0;
  	var uLocal_1053 = 0;
  	var uLocal_1054 = 0;
  	var uLocal_1055 = 0;
  	var uLocal_1056 = 0;
  	var uLocal_1057 = 0;
  	var uLocal_1058 = 0;
  	var uLocal_1059 = 0;
  	var uLocal_1060 = 0;
  	var uLocal_1061 = 0;
  	var uLocal_1062 = 0;
  	var uLocal_1063 = 0;
  	var uLocal_1064 = 0;
  	var uLocal_1065 = 0;
  	var uLocal_1066 = 0;
  	var uLocal_1067 = 0;
  	var uLocal_1068 = 0;
  	var uLocal_1069 = 0;
  	var uLocal_1070 = 0;
  	var uLocal_1071 = 0;
  	var uLocal_1072 = 0;
  	var uLocal_1073 = 0;
  	var uLocal_1074 = 0;
  	var uLocal_1075 = 0;
  	var uLocal_1076 = 0;
  	var uLocal_1077 = 0;
  	var uLocal_1078 = 0;
  	var uLocal_1079 = 0;
  	var uLocal_1080 = 0;
  	var uLocal_1081 = 0;
  	var uLocal_1082 = 0;
  	var uLocal_1083 = 0;
  	var uLocal_1084 = 0;
  	var uLocal_1085 = 0;
  	var uLocal_1086 = 0;
  	var uLocal_1087 = 0;
  	var uLocal_1088 = 0;
  	var uLocal_1089 = 0;
  	var uLocal_1090 = 0;
  	var uLocal_1091 = 0;
  	var uLocal_1092 = 0;
  	var uLocal_1093 = 0;
  	var uLocal_1094 = 0;
  	var uLocal_1095 = 0;
  	var uLocal_1096 = 0;
  	var uLocal_1097 = 0;
  	var uLocal_1098 = 0;
  	var uLocal_1099 = 0;
  	var uLocal_1100 = 0;
  	var uLocal_1101 = 0;
  	var uLocal_1102 = 0;
  	var uLocal_1103 = 0;
  	var uLocal_1104 = 0;
  	var uLocal_1105 = 0;
  	var uLocal_1106 = 0;
  	var uLocal_1107 = 0;
  	var uLocal_1108 = 0;
  	var uLocal_1109 = 0;
  	var uLocal_1110 = 0;
  	var uLocal_1111 = 0;
  	var uLocal_1112 = 0;
  	var uLocal_1113 = 0;
  	var uLocal_1114 = 0;
  	var uLocal_1115 = 0;
  	var uLocal_1116 = 0;
  	var uLocal_1117 = 0;
  	var uLocal_1118 = 0;
  	var uLocal_1119 = 0;
  	var uLocal_1120 = 0;
  	var uLocal_1121 = 0;
  	var uLocal_1122 = 0;
  	var uLocal_1123 = 0;
  	var uLocal_1124 = 0;
  	var uLocal_1125 = 0;
  	var uLocal_1126 = 0;
  	var uLocal_1127 = 0;
  	var uLocal_1128 = 0;
  	var uLocal_1129 = 0;
  	var uLocal_1130 = 0;
  	var uLocal_1131 = 0;
  	var uLocal_1132 = 0;
  	var uLocal_1133 = 0;
  	var uLocal_1134 = 0;
  	var uLocal_1135 = 0;
  	var uLocal_1136 = 0;
  	var uLocal_1137 = 0;
  	var uLocal_1138 = 0;
  	var uLocal_1139 = 0;
  	var uLocal_1140 = 0;
  	var uLocal_1141 = 0;
  	var uLocal_1142 = 0;
  	var uLocal_1143 = 0;
  	var uLocal_1144 = 0;
  	var uLocal_1145 = 0;
  	var uLocal_1146 = 0;
  	var uLocal_1147 = 0;
  	var uLocal_1148 = 0;
  	int iLocal_1149 = 0;
  	int iLocal_1150 = 0;
  	float fLocal_1151 = 0f;
  	var uLocal_1152 = 0;
  	var uLocal_1153 = 0;
  	var uLocal_1154 = 0;
  	var uLocal_1155 = 0;
  	var uLocal_1156 = 0;
  	var uLocal_1157 = 0;
  	var uLocal_1158 = 0;
  	var uLocal_1159 = 0;
  	var uLocal_1160 = 0;
  	var uLocal_1161 = 0;
  	var uLocal_1162 = 21;
  	var uLocal_1163 = 6;
  	var uLocal_1164 = 0;
  	var uLocal_1165 = 0;
  	var uLocal_1166 = 0;
  	int iLocal_1167 = 0;
  	int iLocal_1168 = 0;
  	int iLocal_1169 = 0;
  	int iLocal_1170 = 0;
  	int iLocal_1171 = 0;
  	int iLocal_1172 = 0;
  	int iLocal_1173 = 0;
  	int iLocal_1174 = 0;
  	struct<3> Local_1175 = { 0, 0, 0 } ;
  	struct<3> Local_1176 = { 0, 0, 0 } ;
  	float fLocal_1177 = 0f;
  	float fLocal_1178 = 0f;
  	var uLocal_1179 = 0;
  	var uLocal_1180 = 0;
  	struct<3> Local_1181 = { 0, 0, 0 } ;
  	struct<3> Local_1182 = { 0, 0, 0 } ;
  	struct<3> Local_1183 = { 0, 0, 0 } ;
  	struct<3> Local_1184 = { 0, 0, 0 } ;
  	int* iLocal_1185 = NULL;
  	var uLocal_1186 = 0;
  	var uLocal_1187 = 0;
  	int* iLocal_1188 = NULL;
  	var uLocal_1189 = 0;
  	var uLocal_1190 = 0;
  	bool bLocal_1191 = 0;
  	int iLocal_1192 = 0;
  	struct<3> Local_1193 = { 0, 0, 0 } ;
  	struct<3> Local_1194 = { 0, 0, 0 } ;
  	int iLocal_1195 = 0;
  	int iLocal_1196 = 0;
  	int* iLocal_1197 = NULL;
  	var uLocal_1198 = 0;
  	var uLocal_1199 = 0;
  	var uLocal_1200 = 0;
  	bool bLocal_1201 = 0;
  	int iLocal_1202 = 0;
  	bool bLocal_1203 = 0;
  	bool bLocal_1204 = 0;
  	int iLocal_1205 = 0;
  	int iLocal_1206 = 0;
  	int iLocal_1207 = 0;
  	int iLocal_1208 = 0;
  	int iLocal_1209 = 0;
  	int iLocal_1210 = 0;
  	int iLocal_1211 = 0;
  	int iLocal_1212 = 0;
  	bool bLocal_1213 = 0;
  	var uLocal_1214 = 0;
  	bool bLocal_1215 = 0;
  	int iLocal_1216 = 0;
  	int iLocal_1217 = 0;
  	var uLocal_1218 = 0;
  	bool bLocal_1219 = 0;
  	int iLocal_1220 = 0;
  	bool bLocal_1221 = 0;
  	int iLocal_1222 = 0;
  	int iLocal_1223 = 0;
  	int iLocal_1224 = 0;
  	bool bLocal_1225 = 0;
  	int iLocal_1226 = 0;
  	int iLocal_1227 = 0;
  	int iLocal_1228 = 0;
  	int iLocal_1229 = 0;
  	int iLocal_1230 = 0;
  	int iLocal_1231 = 0;
  	int iLocal_1232 = 0;
  	int iLocal_1233 = 0;
  	int iLocal_1234 = 0;
  	int iLocal_1235 = 0;
  	int iLocal_1236 = 0;
  	int iLocal_1237 = 0;
  	int iLocal_1238 = 0;
  	int iLocal_1239 = 0;
  	int iLocal_1240 = 0;
  	int iLocal_1241 = 0;
  	int iLocal_1242 = 0;
  	int iLocal_1243 = 0;
  	int iLocal_1244 = 0;
  	int iLocal_1245 = 0;
  	int iLocal_1246 = 0;
  	float fLocal_1247 = 0f;
  	float fLocal_1248 = 0f;
  	float fLocal_1249 = 0f;
  	float fLocal_1250 = 0f;
  	int iLocal_1251 = 0;
  	int iLocal_1252 = 0;
  	struct<3> Local_1253 = { 0, 0, 0 } ;
  	struct<3> Local_1254 = { 0, 0, 0 } ;
  	float fLocal_1255 = 0f;
  	struct<3> Local_1256 = { 0, 0, 0 } ;
  	float fLocal_1257 = 0f;
  	int iLocal_1258 = 0;
  	int iLocal_1259 = 0;
  	int iLocal_1260 = 0;
  	int iLocal_1261 = 0;
  	int iLocal_1262[4] = { 0, 0, 0, 0 };
  	int iLocal_1263 = 0;
  	int iLocal_1264 = 0;
  	int iLocal_1265[3] = { 0, 0, 0 };
  	int iLocal_1266 = 0;
  	int* iLocal_1267 = NULL;
  	var uLocal_1268 = 0;
  	var uLocal_1269 = 0;
  	int* iLocal_1270 = NULL;
  	var uLocal_1271 = 0;
  	var uLocal_1272 = 0;
  	int* iLocal_1273 = NULL;
  	var uLocal_1274 = 0;
  	var uLocal_1275 = 0;
  	int* iLocal_1276 = NULL;
  	var uLocal_1277 = 0;
  	var uLocal_1278 = 0;
  	int* iLocal_1279 = NULL;
  	var uLocal_1280 = 0;
  	var uLocal_1281 = 0;
  	int* iLocal_1282 = NULL;
  	var uLocal_1283 = 0;
  	var uLocal_1284 = 0;
  	int* iLocal_1285 = NULL;
  	var uLocal_1286 = 0;
  	var uLocal_1287 = 0;
  	var uLocal_1288 = 0;
  	var uLocal_1289 = 0;
  	var uLocal_1290 = 0;
  	struct<3> Local_1291 = { 0, 0, 0 } ;
  	struct<3> Local_1292[3];
  	float fLocal_1293 = 0f;
  	int iLocal_1294 = 0;
  	var uLocal_1295 = 16;
  	var uLocal_1296 = 0;
  	var uLocal_1297 = 0;
  	var uLocal_1298 = 0;
  	var uLocal_1299 = 0;
  	var uLocal_1300 = 0;
  	var uLocal_1301 = 0;
  	var uLocal_1302 = 0;
  	var uLocal_1303 = 0;
  	var uLocal_1304 = 0;
  	var uLocal_1305 = 0;
  	var uLocal_1306 = 0;
  	var uLocal_1307 = 0;
  	var uLocal_1308 = 0;
  	var uLocal_1309 = 0;
  	var uLocal_1310 = 0;
  	var uLocal_1311 = 0;
  	var uLocal_1312 = 0;
  	var uLocal_1313 = 0;
  	var uLocal_1314 = 0;
  	var uLocal_1315 = 0;
  	var uLocal_1316 = 0;
  	var uLocal_1317 = 0;
  	var uLocal_1318 = 0;
  	var uLocal_1319 = 0;
  	var uLocal_1320 = 0;
  	var uLocal_1321 = 0;
  	var uLocal_1322 = 0;
  	var uLocal_1323 = 0;
  	var uLocal_1324 = 0;
  	var uLocal_1325 = 0;
  	var uLocal_1326 = 0;
  	var uLocal_1327 = 0;
  	var uLocal_1328 = 0;
  	var uLocal_1329 = 0;
  	var uLocal_1330 = 0;
  	var uLocal_1331 = 0;
  	var uLocal_1332 = 0;
  	var uLocal_1333 = 0;
  	var uLocal_1334 = 0;
  	var uLocal_1335 = 0;
  	var uLocal_1336 = 0;
  	var uLocal_1337 = 0;
  	var uLocal_1338 = 0;
  	var uLocal_1339 = 0;
  	var uLocal_1340 = 0;
  	var uLocal_1341 = 0;
  	var uLocal_1342 = 0;
  	var uLocal_1343 = 0;
  	var uLocal_1344 = 0;
  	var uLocal_1345 = 0;
  	var uLocal_1346 = 0;
  	var uLocal_1347 = 0;
  	var uLocal_1348 = 0;
  	var uLocal_1349 = 0;
  	var uLocal_1350 = 0;
  	var uLocal_1351 = 0;
  	var uLocal_1352 = 0;
  	var uLocal_1353 = 0;
  	var uLocal_1354 = 0;
  	var uLocal_1355 = 0;
  	var uLocal_1356 = 0;
  	var uLocal_1357 = 0;
  	var uLocal_1358 = 0;
  	var uLocal_1359 = 0;
  	var uLocal_1360 = 0;
  	var uLocal_1361 = 0;
  	var uLocal_1362 = 0;
  	var uLocal_1363 = 0;
  	var uLocal_1364 = 0;
  	var uLocal_1365 = 0;
  	var uLocal_1366 = 0;
  	var uLocal_1367 = 0;
  	var uLocal_1368 = 0;
  	var uLocal_1369 = 0;
  	var uLocal_1370 = 0;
  	var uLocal_1371 = 0;
  	var uLocal_1372 = 0;
  	var uLocal_1373 = 0;
  	var uLocal_1374 = 0;
  	var uLocal_1375 = 0;
  	var uLocal_1376 = 0;
  	var uLocal_1377 = 0;
  	var uLocal_1378 = 0;
  	var uLocal_1379 = 0;
  	var uLocal_1380 = 0;
  	var uLocal_1381 = 0;
  	var uLocal_1382 = 0;
  	var uLocal_1383 = 0;
  	var uLocal_1384 = 0;
  	var uLocal_1385 = 0;
  	var uLocal_1386 = 0;
  	var uLocal_1387 = 0;
  	var uLocal_1388 = 0;
  	var uLocal_1389 = 0;
  	var uLocal_1390 = 0;
  	var uLocal_1391 = 0;
  	var uLocal_1392 = 0;
  	var uLocal_1393 = 0;
  	var uLocal_1394 = 0;
  	var uLocal_1395 = 0;
  	var uLocal_1396 = 0;
  	var uLocal_1397 = 0;
  	var uLocal_1398 = 0;
  	var uLocal_1399 = 0;
  	var uLocal_1400 = 0;
  	var uLocal_1401 = 0;
  	var uLocal_1402 = 0;
  	var uLocal_1403 = 0;
  	var uLocal_1404 = 0;
  	var uLocal_1405 = 0;
  	var uLocal_1406 = 0;
  	var uLocal_1407 = 0;
  	var uLocal_1408 = 0;
  	var uLocal_1409 = 0;
  	var uLocal_1410 = 0;
  	var uLocal_1411 = 0;
  	var uLocal_1412 = 0;
  	var uLocal_1413 = 0;
  	var uLocal_1414 = 0;
  	var uLocal_1415 = 0;
  	var uLocal_1416 = 0;
  	var uLocal_1417 = 0;
  	var uLocal_1418 = 0;
  	var uLocal_1419 = 0;
  	var uLocal_1420 = 0;
  	var uLocal_1421 = 0;
  	var uLocal_1422 = 0;
  	var uLocal_1423 = 0;
  	var uLocal_1424 = 0;
  	var uLocal_1425 = 0;
  	var uLocal_1426 = 0;
  	var uLocal_1427 = 0;
  	var uLocal_1428 = 0;
  	var uLocal_1429 = 0;
  	var uLocal_1430 = 0;
  	var uLocal_1431 = 0;
  	var uLocal_1432 = 0;
  	var uLocal_1433 = 0;
  	var uLocal_1434 = 0;
  	var uLocal_1435 = 0;
  	var uLocal_1436 = 0;
  	var uLocal_1437 = 0;
  	var uLocal_1438 = 0;
  	var uLocal_1439 = 0;
  	var uLocal_1440 = 0;
  	var uLocal_1441 = 0;
  	var uLocal_1442 = 0;
  	var uLocal_1443 = 0;
  	var uLocal_1444 = 0;
  	var uLocal_1445 = 0;
  	var uLocal_1446 = 0;
  	var uLocal_1447 = 0;
  	var uLocal_1448 = 0;
  	var uLocal_1449 = 0;
  	var uLocal_1450 = 0;
  	var uLocal_1451 = 0;
  	var uLocal_1452 = 0;
  	var uLocal_1453 = 0;
  	var uLocal_1454 = 0;
  	var uLocal_1455 = 0;
  	var uLocal_1456 = 0;
  	var uLocal_1457 = 0;
  	var uLocal_1458 = 0;
  	var uLocal_1459 = 0;
  	var uLocal_1460 = 0;
  	var uLocal_1461 = 0;
  	var uLocal_1462 = -1;
  	var uLocal_1463 = 0;
  	var uLocal_1464 = 0;
  	var uLocal_1465 = 0;
  	var uLocal_1466 = 0;
  	var uLocal_1467 = 0;
  	var uLocal_1468 = 0;
  	var uLocal_1469 = 1000;
  	var uLocal_1470 = 1000;
  	var uLocal_1471 = 0;
  	var uLocal_1472 = 0;
  	var uLocal_1473 = 0;
  	var uLocal_1474 = 8;
  	var uLocal_1475 = 0;
  	var uLocal_1476 = 0;
  	var uLocal_1477 = 0;
  	var uLocal_1478 = 4;
  	var uLocal_1479 = 0;
  	var uLocal_1480 = 0;
  	var uLocal_1481 = 0;
  	var uLocal_1482 = 0;
  	var uLocal_1483 = 0;
  	var uLocal_1484 = 0;
  	var uLocal_1485 = 0;
  	var uLocal_1486 = 0;
  	var uLocal_1487 = 0;
  	var uLocal_1488 = 0;
  	var uLocal_1489 = 0;
  	var uLocal_1490 = 0;
  	var uLocal_1491 = 0;
  	var uLocal_1492 = 0;
  	var uLocal_1493 = 4;
  	var uLocal_1494 = 0;
  	var uLocal_1495 = 0;
  	var uLocal_1496 = 0;
  	var uLocal_1497 = 0;
  	var uLocal_1498 = 0;
  	var uLocal_1499 = 0;
  	var uLocal_1500 = 0;
  	var uLocal_1501 = 0;
  	var uLocal_1502 = 0;
  	var uLocal_1503 = 0;
  	var uLocal_1504 = 0;
  	var uLocal_1505 = 0;
  	var uLocal_1506 = 0;
  	var uLocal_1507 = 0;
  	var uLocal_1508 = 4;
  	var uLocal_1509 = 0;
  	var uLocal_1510 = 0;
  	var uLocal_1511 = 0;
  	var uLocal_1512 = 0;
  	var uLocal_1513 = 0;
  	var uLocal_1514 = 0;
  	var uLocal_1515 = 0;
  	var uLocal_1516 = 0;
  	var uLocal_1517 = 0;
  	var uLocal_1518 = 0;
  	var uLocal_1519 = 0;
  	var uLocal_1520 = 0;
  	var uLocal_1521 = 0;
  	var uLocal_1522 = 0;
  	var uLocal_1523 = 4;
  	var uLocal_1524 = 0;
  	var uLocal_1525 = 0;
  	var uLocal_1526 = 0;
  	var uLocal_1527 = 0;
  	var uLocal_1528 = 0;
  	var uLocal_1529 = 0;
  	var uLocal_1530 = 0;
  	var uLocal_1531 = 0;
  	var uLocal_1532 = 0;
  	var uLocal_1533 = 0;
  	var uLocal_1534 = 0;
  	var uLocal_1535 = 0;
  	var uLocal_1536 = 0;
  	var uLocal_1537 = 0;
  	var uLocal_1538 = 4;
  	var uLocal_1539 = 0;
  	var uLocal_1540 = 0;
  	var uLocal_1541 = 0;
  	var uLocal_1542 = 0;
  	var uLocal_1543 = 0;
  	var uLocal_1544 = 0;
  	var uLocal_1545 = 0;
  	var uLocal_1546 = 0;
  	var uLocal_1547 = 0;
  	var uLocal_1548 = 0;
  	var uLocal_1549 = 0;
  	var uLocal_1550 = 0;
  	var uLocal_1551 = 0;
  	var uLocal_1552 = 0;
  	var uLocal_1553 = 4;
  	var uLocal_1554 = 0;
  	var uLocal_1555 = 0;
  	var uLocal_1556 = 0;
  	var uLocal_1557 = 0;
  	var uLocal_1558 = 0;
  	var uLocal_1559 = 0;
  	var uLocal_1560 = 0;
  	var uLocal_1561 = 0;
  	var uLocal_1562 = 0;
  	var uLocal_1563 = 0;
  	var uLocal_1564 = 0;
  	var uLocal_1565 = 0;
  	var uLocal_1566 = 0;
  	var uLocal_1567 = 0;
  	var uLocal_1568 = 4;
  	var uLocal_1569 = 0;
  	var uLocal_1570 = 0;
  	var uLocal_1571 = 0;
  	var uLocal_1572 = 0;
  	var uLocal_1573 = 0;
  	var uLocal_1574 = 0;
  	var uLocal_1575 = 0;
  	var uLocal_1576 = 0;
  	var uLocal_1577 = 0;
  	var uLocal_1578 = 0;
  	var uLocal_1579 = 0;
  	var uLocal_1580 = 0;
  	var uLocal_1581 = 0;
  	var uLocal_1582 = 0;
  	var uLocal_1583 = 4;
  	var uLocal_1584 = 0;
  	var uLocal_1585 = 0;
  	var uLocal_1586 = 0;
  	var uLocal_1587 = 0;
  	var uLocal_1588 = 0;
  	var uLocal_1589 = 0;
  	var uLocal_1590 = 0;
  	var uLocal_1591 = 0;
  	var uLocal_1592 = 0;
  	var uLocal_1593 = 0;
  	var uLocal_1594 = 0;
  	var uLocal_1595 = 0;
  	var uLocal_1596 = 15;
  	var uLocal_1597 = 0;
  	var uLocal_1598 = 0;
  	var uLocal_1599 = 0;
  	var uLocal_1600 = 0;
  	var uLocal_1601 = 0;
  	var uLocal_1602 = 0;
  	var uLocal_1603 = 0;
  	var uLocal_1604 = 0;
  	var uLocal_1605 = 0;
  	var uLocal_1606 = 0;
  	var uLocal_1607 = 0;
  	var uLocal_1608 = 0;
  	var uLocal_1609 = 0;
  	var uLocal_1610 = 0;
  	var uLocal_1611 = 0;
  	var uLocal_1612 = 0;
  	var uLocal_1613 = 0;
  	var uLocal_1614 = 0;
  	var uLocal_1615 = 0;
  	var uLocal_1616 = 0;
  	var uLocal_1617 = 0;
  	var uLocal_1618 = 0;
  	var uLocal_1619 = 0;
  	var uLocal_1620 = 0;
  	var uLocal_1621 = 0;
  	var uLocal_1622 = 0;
  	var uLocal_1623 = 0;
  	var uLocal_1624 = 0;
  	var uLocal_1625 = 0;
  	var uLocal_1626 = 0;
  	var uLocal_1627 = 0;
  	var uLocal_1628 = 0;
  	var uLocal_1629 = 0;
  	var uLocal_1630 = 0;
  	var uLocal_1631 = 0;
  	var uLocal_1632 = 0;
  	var uLocal_1633 = 0;
  	var uLocal_1634 = 0;
  	var uLocal_1635 = 0;
  	var uLocal_1636 = 0;
  	var uLocal_1637 = 0;
  	var uLocal_1638 = 0;
  	var uLocal_1639 = 0;
  	var uLocal_1640 = 0;
  	var uLocal_1641 = 0;
  	var uLocal_1642 = 0;
  	var uLocal_1643 = 0;
  	var uLocal_1644 = 0;
  	var uLocal_1645 = 0;
  	var uLocal_1646 = 0;
  	var uLocal_1647 = 0;
  	var uLocal_1648 = 0;
  	var uLocal_1649 = 0;
  	var uLocal_1650 = 0;
  	var uLocal_1651 = 0;
  	var uLocal_1652 = 0;
  	var uLocal_1653 = 0;
  	var uLocal_1654 = 0;
  	var uLocal_1655 = 0;
  	var uLocal_1656 = 0;
  	var uLocal_1657 = 0;
  	var uLocal_1658 = 0;
  	var uLocal_1659 = 0;
  	var uLocal_1660 = 0;
  	var uLocal_1661 = 0;
  	var uLocal_1662 = 0;
  	var uLocal_1663 = 0;
  	var uLocal_1664 = 0;
  	var uLocal_1665 = 0;
  	var uLocal_1666 = 0;
  	var uLocal_1667 = 0;
  	var uLocal_1668 = 0;
  	var uLocal_1669 = 0;
  	var uLocal_1670 = 0;
  	var uLocal_1671 = 0;
  	var uLocal_1672 = 0;
  	var uLocal_1673 = 0;
  	var uLocal_1674 = 0;
  	var uLocal_1675 = 0;
  	var uLocal_1676 = 0;
  	var uLocal_1677 = 0;
  	var uLocal_1678 = 0;
  	var uLocal_1679 = 0;
  	var uLocal_1680 = 0;
  	var uLocal_1681 = 0;
  	var uLocal_1682 = 0;
  	var uLocal_1683 = 0;
  	var uLocal_1684 = 0;
  	var uLocal_1685 = 0;
  	var uLocal_1686 = 0;
  	var uLocal_1687 = 0;
  	var uLocal_1688 = 0;
  	var uLocal_1689 = 0;
  	var uLocal_1690 = 0;
  	var uLocal_1691 = 0;
  	var uLocal_1692 = 0;
  	var uLocal_1693 = 0;
  	var uLocal_1694 = 0;
  	var uLocal_1695 = 0;
  	var uLocal_1696 = 0;
  	var uLocal_1697 = 0;
  	var uLocal_1698 = 0;
  	var uLocal_1699 = 0;
  	var uLocal_1700 = 0;
  	var uLocal_1701 = 0;
  	var uLocal_1702 = 0;
  	var uLocal_1703 = 0;
  	var uLocal_1704 = 0;
  	var uLocal_1705 = 0;
  	var uLocal_1706 = 0;
  	var uLocal_1707 = 0;
  	var uLocal_1708 = 0;
  	var uLocal_1709 = 0;
  	var uLocal_1710 = 0;
  	var uLocal_1711 = 0;
  	var uLocal_1712 = 0;
  	var uLocal_1713 = 0;
  	var uLocal_1714 = 0;
  	var uLocal_1715 = 0;
  	var uLocal_1716 = 0;
  	var uLocal_1717 = 0;
  	var uLocal_1718 = 0;
  	var uLocal_1719 = 0;
  	var uLocal_1720 = 0;
  	var uLocal_1721 = 0;
  	var uLocal_1722 = 0;
  	var uLocal_1723 = 0;
  	var uLocal_1724 = 0;
  	var uLocal_1725 = 0;
  	var uLocal_1726 = 0;
  	var uLocal_1727 = 0;
  	var uLocal_1728 = 0;
  	var uLocal_1729 = 0;
  	var uLocal_1730 = 0;
  	var uLocal_1731 = 0;
  	var uLocal_1732 = 0;
  	var uLocal_1733 = 0;
  	var uLocal_1734 = 0;
  	var uLocal_1735 = 0;
  	var uLocal_1736 = 0;
  	var uLocal_1737 = 0;
  	var uLocal_1738 = 0;
  	var uLocal_1739 = 0;
  	var uLocal_1740 = 0;
  	var uLocal_1741 = 0;
  	var uLocal_1742 = 0;
  	var uLocal_1743 = 0;
  	var uLocal_1744 = 0;
  	var uLocal_1745 = 0;
  	var uLocal_1746 = 0;
  	var uLocal_1747 = 0;
  	var uLocal_1748 = 0;
  	var uLocal_1749 = 0;
  	var uLocal_1750 = 0;
  	var uLocal_1751 = 0;
  	var uLocal_1752 = 0;
  	var uLocal_1753 = 0;
  	var uLocal_1754 = 0;
  	var uLocal_1755 = 0;
  	var uLocal_1756 = 0;
  	var uLocal_1757 = 0;
  	var uLocal_1758 = 0;
  	var uLocal_1759 = 0;
  	var uLocal_1760 = 0;
  	var uLocal_1761 = 0;
  	var uLocal_1762 = 0;
  	var uLocal_1763 = 0;
  	var uLocal_1764 = 0;
  	var uLocal_1765 = 0;
  	var uLocal_1766 = 0;
  	var uLocal_1767 = 0;
  	var uLocal_1768 = 0;
  	var uLocal_1769 = 0;
  	var uLocal_1770 = 0;
  	var uLocal_1771 = 0;
  	var uLocal_1772 = 0;
  	var uLocal_1773 = 0;
  	var uLocal_1774 = 0;
  	var uLocal_1775 = 0;
  	var uLocal_1776 = 0;
  	var uLocal_1777 = 0;
  	var uLocal_1778 = 0;
  	var uLocal_1779 = 0;
  	var uLocal_1780 = 0;
  	var uLocal_1781 = 0;
  	var uLocal_1782 = 0;
  	var uLocal_1783 = 0;
  	var uLocal_1784 = 0;
  	var uLocal_1785 = 0;
  	var uLocal_1786 = 0;
  	var uLocal_1787 = 0;
  	var uLocal_1788 = 0;
  	var uLocal_1789 = 0;
  	var uLocal_1790 = 0;
  	var uLocal_1791 = 0;
  	var uLocal_1792 = 0;
  	var uLocal_1793 = 0;
  	var uLocal_1794 = 0;
  	var uLocal_1795 = 0;
  	var uLocal_1796 = 0;
  	var uLocal_1797 = 0;
  	var uLocal_1798 = 0;
  	var uLocal_1799 = 0;
  	var uLocal_1800 = 0;
  	var uLocal_1801 = 0;
  	var uLocal_1802 = 0;
  	var uLocal_1803 = 0;
  	var uLocal_1804 = 0;
  	var uLocal_1805 = 0;
  	var uLocal_1806 = 0;
  	var uLocal_1807 = 0;
  	var uLocal_1808 = 0;
  	var uLocal_1809 = 0;
  	var uLocal_1810 = 0;
  	var uLocal_1811 = 0;
  	var uLocal_1812 = 0;
  	var uLocal_1813 = 0;
  	var uLocal_1814 = 0;
  	var uLocal_1815 = 0;
  	var uLocal_1816 = 0;
  	var uLocal_1817 = 0;
  	var uLocal_1818 = 0;
  	var uLocal_1819 = 0;
  	var uLocal_1820 = 0;
  	var uLocal_1821 = 0;
  	var uLocal_1822 = 0;
  	var uLocal_1823 = 0;
  	var uLocal_1824 = 0;
  	var uLocal_1825 = 0;
  	var uLocal_1826 = 0;
  	var uLocal_1827 = 0;
  	var uLocal_1828 = 0;
  	var uLocal_1829 = 0;
  	var uLocal_1830 = 0;
  	var uLocal_1831 = 0;
  	var uLocal_1832 = 0;
  	var uLocal_1833 = 0;
  	var uLocal_1834 = 0;
  	var uLocal_1835 = 0;
  	var uLocal_1836 = 0;
  	var uLocal_1837 = 0;
  	var uLocal_1838 = 0;
  	var uLocal_1839 = 0;
  	var uLocal_1840 = 0;
  	var uLocal_1841 = 0;
  	var uLocal_1842 = 0;
  	var uLocal_1843 = 0;
  	var uLocal_1844 = 0;
  	var uLocal_1845 = 0;
  	var uLocal_1846 = 0;
  	var uLocal_1847 = 0;
  	var uLocal_1848 = 0;
  	var uLocal_1849 = 0;
  	var uLocal_1850 = 0;
  	var uLocal_1851 = 0;
  	var uLocal_1852 = 0;
  	var uLocal_1853 = 0;
  	var uLocal_1854 = 0;
  	var uLocal_1855 = 0;
  	var uLocal_1856 = 0;
  	var uLocal_1857 = 0;
  	var uLocal_1858 = 0;
  	var uLocal_1859 = 0;
  	var uLocal_1860 = 0;
  	var uLocal_1861 = 0;
  	var uLocal_1862 = 0;
  	var uLocal_1863 = 0;
  	var uLocal_1864 = 0;
  	var uLocal_1865 = 0;
  	var uLocal_1866 = 0;
  	var uLocal_1867 = 0;
  	var uLocal_1868 = 0;
  	var uLocal_1869 = 1;
  	struct<9> Local_1870[2];
  	var uLocal_1871 = 0;
  	var uLocal_1872 = 0;
  	var uLocal_1873 = 0;
  	var uLocal_1874 = 0;
  	var uLocal_1875 = 0;
  	var uLocal_1876 = 0;
  	var uLocal_1877 = 0;
  	var uLocal_1878 = 0;
  	var uLocal_1879 = 0;
  	var uLocal_1880 = 0;
  	var uLocal_1881 = 0;
  	var uLocal_1882 = 0;
  	var uLocal_1883 = 0;
  	var uLocal_1884 = 0;
  	var uLocal_1885 = 0;
  	var uLocal_1886 = 0;
  	var uLocal_1887 = 0;
  	var uLocal_1888 = 0;
  	var uLocal_1889 = 0;
  	var uLocal_1890 = 0;
  	var uLocal_1891 = 0;
  	var uLocal_1892 = 0;
  	var uLocal_1893 = 0;
  	var uLocal_1894 = 0;
  	var uLocal_1895 = 0;
  	var uLocal_1896 = 0;
  	var uLocal_1897 = 0;
  	var uLocal_1898 = 0;
  	var uLocal_1899 = 0;
  	var uLocal_1900 = 0;
  	var uLocal_1901 = 0;
  	var uLocal_1902 = 0;
  	var uLocal_1903 = 0;
  	var uLocal_1904 = 0;
  	var uLocal_1905 = 11;
  	var uLocal_1906 = 0;
  	var uLocal_1907 = 0;
  	var uLocal_1908 = 0;
  	var uLocal_1909 = 0;
  	var uLocal_1910 = 0;
  	var uLocal_1911 = 0;
  	var uLocal_1912 = 0;
  	var uLocal_1913 = 0;
  	var uLocal_1914 = 0;
  	var uLocal_1915 = 0;
  	var uLocal_1916 = 0;
  	var uLocal_1917 = 10;
  	var uLocal_1918 = 0;
  	var uLocal_1919 = 0;
  	var uLocal_1920 = 0;
  	var uLocal_1921 = 0;
  	var uLocal_1922 = 0;
  	var uLocal_1923 = 0;
  	var uLocal_1924 = 0;
  	var uLocal_1925 = 0;
  	var uLocal_1926 = 0;
  	var uLocal_1927 = 0;
  	var uLocal_1928 = 0;
  	var uLocal_1929 = 0;
  	var uLocal_1930 = 0;
  	var uLocal_1931 = 0;
  	var uLocal_1932 = 0;
  	var uLocal_1933 = 0;
  	var uLocal_1934 = 2;
  	var uLocal_1935 = 0;
  	var uLocal_1936 = 0;
  	var uLocal_1937 = 0;
  	var uLocal_1938 = 0;
  	var uLocal_1939 = 0;
  	var uLocal_1940 = 0;
  	var uLocal_1941 = 0;
  	var uLocal_1942 = 0;
  	var uLocal_1943 = 0;
  	var uLocal_1944 = 0;
  	var uLocal_1945 = 0;
  	var uLocal_1946 = 0;
  	var uLocal_1947 = 0;
  	var uLocal_1948 = 0;
  	var uLocal_1949 = 0;
  	var uLocal_1950 = 0;
  	var uLocal_1951 = 0;
  	var uLocal_1952 = 0;
  	var uLocal_1953 = 0;
  	var uLocal_1954 = 10;
  	var uLocal_1955 = 0;
  	var uLocal_1956 = 0;
  	var uLocal_1957 = 0;
  	var uLocal_1958 = 0;
  	var uLocal_1959 = 0;
  	var uLocal_1960 = 0;
  	var uLocal_1961 = 0;
  	var uLocal_1962 = 0;
  	var uLocal_1963 = 0;
  	var uLocal_1964 = 0;
  	var uLocal_1965 = 0;
  	var uLocal_1966 = 0;
  	var uLocal_1967 = 0;
  	var uLocal_1968 = 0;
  	var uLocal_1969 = 0;
  	var uLocal_1970 = 0;
  	var uLocal_1971 = 0;
  	var uLocal_1972 = 0;
  	var uLocal_1973 = 0;
  	var uLocal_1974 = 0;
  	var uLocal_1975 = 0;
  	var uLocal_1976 = 0;
  	var uLocal_1977 = 0;
  	var uLocal_1978 = 0;
  	var uLocal_1979 = 0;
  	var uLocal_1980 = 0;
  	var uLocal_1981 = 0;
  	var uLocal_1982 = 0;
  	var uLocal_1983 = 0;
  	var uLocal_1984 = 0;
  	var uLocal_1985 = 0;
  	var uLocal_1986 = 0;
  	var uLocal_1987 = 0;
  	var uLocal_1988 = 0;
  	var uLocal_1989 = 0;
  	var uLocal_1990 = 0;
  	var uLocal_1991 = 0;
  	var uLocal_1992 = 0;
  	var uLocal_1993 = 0;
  	var uLocal_1994 = 0;
  	var uLocal_1995 = 0;
  	var uLocal_1996 = 0;
  	var uLocal_1997 = 0;
  	var uLocal_1998 = 0;
  	var uLocal_1999 = 0;
  	var uLocal_2000 = 0;
  	var uLocal_2001 = 0;
  	var uLocal_2002 = 0;
  	var uLocal_2003 = 0;
  	var uLocal_2004 = 0;
  	var uLocal_2005 = 0;
  	var uLocal_2006 = 0;
  	var uLocal_2007 = 0;
  	var uLocal_2008 = 0;
  	var uLocal_2009 = 0;
  	var uLocal_2010 = 0;
  	var uLocal_2011 = 0;
  	var uLocal_2012 = 0;
  	var uLocal_2013 = 0;
  	var uLocal_2014 = 0;
  	var uLocal_2015 = 0;
  	var uLocal_2016 = 0;
  	var uLocal_2017 = 0;
  	var uLocal_2018 = 0;
  	var uLocal_2019 = 0;
  	var uLocal_2020 = 0;
  	var uLocal_2021 = 0;
  	var uLocal_2022 = 0;
  	var uLocal_2023 = 0;
  	var uLocal_2024 = 0;
  	var uLocal_2025 = 0;
  	var uLocal_2026 = 0;
  	var uLocal_2027 = 0;
  	var uLocal_2028 = 0;
  	var uLocal_2029 = 0;
  	var uLocal_2030 = 0;
  	var uLocal_2031 = 0;
  	var uLocal_2032 = 0;
  	var uLocal_2033 = 0;
  	var uLocal_2034 = 0;
  	var uLocal_2035 = 0;
  	var uLocal_2036 = 0;
  	var uLocal_2037 = 0;
  	var uLocal_2038 = 0;
  	var uLocal_2039 = 0;
  	var uLocal_2040 = 0;
  	var uLocal_2041 = 0;
  	var uLocal_2042 = 0;
  	var uLocal_2043 = 0;
  	var uLocal_2044 = 0;
  	var uLocal_2045 = 0;
  	var uLocal_2046 = 0;
  	var uLocal_2047 = 0;
  	var uLocal_2048 = 0;
  	var uLocal_2049 = 0;
  	var uLocal_2050 = 0;
  	var uLocal_2051 = 0;
  	var uLocal_2052 = 0;
  	var uLocal_2053 = 0;
  	var uLocal_2054 = 0;
  	var uLocal_2055 = 0;
  	var uLocal_2056 = 0;
  	var uLocal_2057 = 0;
  	var uLocal_2058 = 0;
  	var uLocal_2059 = 0;
  	var uLocal_2060 = 0;
  	var uLocal_2061 = 0;
  	var uLocal_2062 = 0;
  	var uLocal_2063 = 0;
  	var uLocal_2064 = 0;
  	var uLocal_2065 = 0;
  	var uLocal_2066 = 0;
  	var uLocal_2067 = 0;
  	var uLocal_2068 = 0;
  	var uLocal_2069 = 0;
  	var uLocal_2070 = 0;
  	var uLocal_2071 = 0;
  	var uLocal_2072 = 0;
  	var uLocal_2073 = 0;
  	var uLocal_2074 = 0;
  	var uLocal_2075 = 0;
  	var uLocal_2076 = 0;
  	var uLocal_2077 = 0;
  	var uLocal_2078 = 0;
  	var uLocal_2079 = 0;
  	var uLocal_2080 = 0;
  	var uLocal_2081 = 0;
  	var uLocal_2082 = 0;
  	var uLocal_2083 = 0;
  	var uLocal_2084 = 0;
  	var uLocal_2085 = 0;
  	var uLocal_2086 = 0;
  	var uLocal_2087 = 0;
  	var uLocal_2088 = 0;
  	var uLocal_2089 = 0;
  	var uLocal_2090 = 0;
  	var uLocal_2091 = 0;
  	var uLocal_2092 = 0;
  	var uLocal_2093 = 0;
  	var uLocal_2094 = 0;
  	var uLocal_2095 = 0;
  	var uLocal_2096 = 0;
  	var uLocal_2097 = 0;
  	var uLocal_2098 = 0;
  	var uLocal_2099 = 0;
  	var uLocal_2100 = 0;
  	var uLocal_2101 = 0;
  	var uLocal_2102 = 0;
  	var uLocal_2103 = 0;
  	var uLocal_2104 = 0;
  	var uLocal_2105 = 0;
  	var uLocal_2106 = 0;
  	var uLocal_2107 = 0;
  	var uLocal_2108 = 0;
  	var uLocal_2109 = 0;
  	var uLocal_2110 = 0;
  	var uLocal_2111 = 0;
  	var uLocal_2112 = 0;
  	var uLocal_2113 = 0;
  	var uLocal_2114 = 0;
  	var uLocal_2115 = 4;
  	var uLocal_2116 = 0;
  	var uLocal_2117 = 0;
  	var uLocal_2118 = 0;
  	var uLocal_2119 = 0;
  	var uLocal_2120 = 4;
  	var uLocal_2121 = 0;
  	var uLocal_2122 = 0;
  	var uLocal_2123 = 0;
  	var uLocal_2124 = 0;
  	var uLocal_2125 = 0;
  	var uLocal_2126 = 0;
  	var uLocal_2127 = 0;
  	var uLocal_2128 = 0;
  	var uLocal_2129 = 0;
  	var uLocal_2130 = 0;
  	var uLocal_2131 = 0;
  	var uLocal_2132 = 0;
  	var uLocal_2133 = 4;
  	var uLocal_2134 = 0;
  	var uLocal_2135 = 0;
  	var uLocal_2136 = 0;
  	var uLocal_2137 = 0;
  	var uLocal_2138 = 0;
  	var uLocal_2139 = 0;
  	var uLocal_2140 = 0;
  	var uLocal_2141 = 0;
  	var uLocal_2142 = 0;
  	var uLocal_2143 = 0;
  	var uLocal_2144 = 0;
  	var uLocal_2145 = 0;
  #endregion
  
  void __EntryFunction__()
  {
  	iLocal_2 = 1;
  	iLocal_3 = 134;
  	iLocal_4 = 134;
  	iLocal_5 = 1;
  	iLocal_6 = 1;
  	iLocal_7 = 1;
  	iLocal_8 = 134;
  	iLocal_9 = 1;
  	iLocal_10 = 12;
  	iLocal_11 = 12;
  	fLocal_14 = 0.001f;
  	iLocal_17 = -1;
  	sLocal_20 = "NULL";
  	fLocal_21 = 0f;
  	fLocal_25 = -0.0375f;
  	fLocal_26 = 0.17f;
  	iLocal_28 = 3;
  	fLocal_31 = 80f;
  	fLocal_32 = 140f;
  	fLocal_33 = 180f;
  	iLocal_39 = 1;
  	iLocal_40 = 65;
  	iLocal_41 = 49;
  	iLocal_42 = 64;
  	Local_45 = { 500f, 500f, 500f };
  	iLocal_134 = 100;
  	iLocal_135 = 3;
  	bLocal_725 = HUD::GET_STANDARD_BLIP_ENUM_ID();
  	iLocal_726 = HUD::GET_WAYPOINT_BLIP_ENUM_ID();
  	iLocal_968 = 1;
  	iLocal_1149 = -1;
  	fLocal_1151 = 1f;
  	Local_1175 = { -700.1431f, -917.7708f, 18.2147f };
  	Local_1176 = { -700.1431f, -917.7708f, 18.2147f };
  	fLocal_1177 = 3.283f;
  	fLocal_1178 = 42f;
  	Local_1181 = { -699.1455f, -917.3423f, 19.7904f };
  	Local_1182 = { -5.6096f, -0.1143f, 75.6741f };
  	Local_1183 = { -699.1455f, -917.3423f, 19.7904f };
  	Local_1184 = { -2.4284f, -0.1143f, 81.9337f };
  	Local_1193 = { 0f, 0f, 0f };
  	Local_1194 = { 0f, 0f, 0f };
  	iLocal_1231 = 540000;
  	iLocal_1233 = -1;
  	iLocal_1244 = -1;
  	iLocal_1246 = -1;
  	fLocal_1247 = 75f;
  	fLocal_1249 = 3f;
  	fLocal_1250 = 540000f;
  	Local_1253 = { -1208.462f, -1559.661f, 3.6087f };
  	Local_1291 = { -702.6807f, -920.2365f, 18.0144f };
  	fLocal_1293 = 120.5394f;
  	iLocal_1294 = -1;
  	MISC::SET_MISSION_FLAG(true);
  	if (PLAYER::HAS_FORCE_CLEANUP_OCCURRED(3))
  	{
  		STREAMING::CLEAR_HD_AREA();
  		func_518();
  		Global_111638.f_19958.f_6 = func_517();
  		func_515(&(Global_111638.f_19958.f_1), 1024);
  		func_513();
  		if (ENTITY::DOES_ENTITY_EXIST(iLocal_1171))
  		{
  			ENTITY::SET_ENTITY_VISIBLE(iLocal_1171, true, false);
  			ENTITY::SET_ENTITY_COLLISION(iLocal_1171, true, false);
  			ENTITY::SET_ENTITY_CAN_BE_DAMAGED(iLocal_1171, true);
  		}
  		func_512(&uLocal_1596);
  	}
  	if (func_511())
  	{
  		if (func_510())
  		{
  			bLocal_1204 = true;
  		}
  		bLocal_1203 = true;
  	}
  	else
  	{
  		bLocal_1203 = false;
  	}
  	func_515(&Local_120, 2);
  	func_509(1);
  	if (!PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID()))
  	{
  		PED::SET_PED_CONFIG_FLAG(PLAYER::PLAYER_PED_ID(), 32, false);
  	}
  	iLocal_1266 = PED::ADD_SCENARIO_BLOCKING_AREA(Local_1253 - Vector(2f, 2f, 2f), Local_1253 + Vector(2f, 2f, 2f), false, true, true, true);
  	func_508();
  	iLocal_1150 = 1;
  	Local_976 = { func_506(iLocal_1150) };
  	iLocal_968 = 1;
  	if (func_511())
  	{
  		func_518();
  		bLocal_127 = true;
  		iLocal_1242 = func_505();
  		if (Global_92921)
  		{
  			bLocal_1219 = true;
  			iLocal_1242++;
  		}
  		if (iLocal_1242 == 0)
  		{
  			Local_1254 = { Local_1291 };
  			fLocal_1255 = fLocal_1293;
  			Local_1256 = { -711.8262f, -920.7407f, 18.0144f };
  			fLocal_1257 = 0.0954f;
  			func_504(Local_1291, fLocal_1293, 1, 0);
  		}
  		else if (iLocal_1242 == 1)
  		{
  			Local_1254 = { -1205.392f, -1548.022f, 3.3229f };
  			fLocal_1255 = 30.1673f;
  			Local_1256 = { -1192.206f, -1532.933f, 3.4095f };
  			fLocal_1257 = 304.364f;
  			func_504(Local_1254, fLocal_1255, 1, 0);
  		}
  		else if (iLocal_1242 == 2)
  		{
  			Local_1254 = { -2178.855f, -410.6809f, 12.1595f };
  			fLocal_1255 = 13.1631f;
  			Local_1256 = { -2175.782f, -400.12f, 12.1925f };
  			fLocal_1257 = 347.9469f;
  			func_504(Local_1254, fLocal_1255, 1, 0);
  		}
  		else if (iLocal_1242 == 3)
  		{
  			Local_1254 = { -702.8256f, 224.235f, 79.1613f };
  			fLocal_1255 = 291.4638f;
  			Local_1256 = { -700.4276f, 229.6938f, 79.2745f };
  			fLocal_1257 = 296.3371f;
  			func_504(Local_1254, fLocal_1255, 1, 0);
  		}
  		else if (iLocal_1242 == 4)
  		{
  			Local_1254 = { -1986.378f, 531.8684f, 108.243f };
  			fLocal_1255 = 149.1485f;
  			Local_1256 = { -1984.45f, 529.9053f, 107.9867f };
  			fLocal_1257 = 163.9831f;
  			func_504(Local_1254, fLocal_1255, 1, 0);
  		}
  	}
  	while (true)
  	{
  		SYSTEM::WAIT(0);
  		func_501(&uLocal_1596);
  		RECORDING::_0x208784099002BC30("M_ASS2", 0);
  		func_500(&iLocal_1276, 14f, 1);
  		if (func_499(&uScriptParam_1871))
  		{
  			if (func_498())
  			{
  				if (func_497(&iLocal_964))
  				{
  					Global_111638.f_19958.f_6 = func_517();
  				}
  				PED::REMOVE_SCENARIO_BLOCKING_AREA(iLocal_1266, false);
  				func_518();
  				func_496(&uLocal_1596);
  			}
  		}
  		else if (!PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID()))
  		{
  			if (func_156(&uScriptParam_1871, &Local_971))
  			{
  				Global_111638.f_19958.f_6 = func_517();
  				fLocal_123 = (Global_111638.f_19958.f_6 / 1000f);
  				func_155(&iLocal_964, fLocal_123);
  				func_154(&iLocal_964);
  				if (!bLocal_1219)
  				{
  					func_153();
  				}
  				func_518();
  				func_53(Local_976, &uLocal_1472, &uLocal_1596);
  			}
  			else
  			{
  				func_52();
  				func_48();
  			}
  			func_1(&uScriptParam_1871, &Local_971);
  		}
  	}
  }
  
  void func_1(var uParam0, int* iParam1)
  {
  	if (iLocal_968 >= 4 && iLocal_968 != 12)
  	{
  		if (!bLocal_1201)
  		{
  			func_39(&iLocal_1231, &iLocal_1235, &fLocal_1250, &uLocal_1200, &bLocal_1201);
  			func_21(iParam1);
  		}
  		else
  		{
  			func_2(Local_971, uParam0, 1);
  		}
  	}
  }
  
  void func_2(struct<182> Param0, var uParam1, var uParam2, int iParam3)
  {
  	struct<2> Var0;
  	
  	if (uParam2->f_270 == 0)
  	{
  		Param0.f_181 = iParam3;
  		switch (Param0.f_181)
  		{
  			case 0:
  				if (uParam2->f_274 == 1)
  				{
  					StringCopy(&Var0, "ASS_HK_LOST", 16);
  				}
  				else if (uParam2->f_274 == 0)
  				{
  					StringCopy(&Var0, "ASS_BS_LOST", 16);
  				}
  				else if (uParam2->f_274 == 2)
  				{
  					StringCopy(&Var0, "ASS_ML_LOST", 16);
  				}
  				break;
  			
  			case 1:
  				if (uParam2->f_274 == 1)
  				{
  					StringCopy(&Var0, "ASS_HK_LOST", 16);
  				}
  				else if (uParam2->f_274 == 0)
  				{
  					StringCopy(&Var0, "ASS_BS_LEFTBUS", 16);
  				}
  				else if (uParam2->f_274 == 2)
  				{
  					StringCopy(&Var0, "ASS_ML_TIMEFAIL", 16);
  				}
  				break;
  			
  			case 2:
  				if (uParam2->f_274 == 1)
  				{
  					StringCopy(&Var0, "ASS_HK_COVER", 16);
  				}
  				else if (uParam2->f_274 == 0)
  				{
  					StringCopy(&Var0, "ASS_BS_COVER", 16);
  				}
  				break;
  			
  			case 3:
  				if (uParam2->f_274 == 0)
  				{
  					StringCopy(&Var0, "ASS_BS_VEHDEST", 16);
  				}
  				break;
  			
  			case 4:
  				if (uParam2->f_274 == 1)
  				{
  					StringCopy(&Var0, "ASS_HK_ABAND", 16);
  				}
  				else if (uParam2->f_274 == 0)
  				{
  					StringCopy(&Var0, "ASS_BS_ABAND", 16);
  				}
  				break;
  		}
  		uParam2->f_270 = 1;
  		func_19(&Var0);
  		func_3(0);
  	}
  }
  
  void func_3(int iParam0)
  {
  	int iVar0;
  	
  	if (Global_111638.f_9080 || func_18(0))
  	{
  		iVar0 = func_17();
  		if (!func_4(iVar0))
  		{
  			return;
  		}
  		MISC::SET_BIT(&(Global_89496[iVar0 /*5*/].f_1), 5);
  		Global_98780 = iParam0;
  	}
  }
  
  int func_4(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	func_9();
  	if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  	{
  		PLAYER::START_FIRING_AMNESTY(5000);
  	}
  	iVar0 = Global_89496[iParam0 /*5*/];
  	iVar1 = Global_76891.f_109[iVar0 /*4*/];
  	func_8(iVar1, 1);
  	PLAYER::SPECIAL_ABILITY_CHARGE_ON_MISSION_FAILED(PLAYER::PLAYER_ID(), 0);
  	PLAYER::SPECIAL_ABILITY_DEACTIVATE(PLAYER::PLAYER_ID(), 0);
  	func_5(&(Global_111638.f_2358.f_539), iVar1);
  	if (Global_92919 == Global_98781)
  	{
  		Global_111638.f_9080.f_330[iVar1 /*6*/].f_1++;
  	}
  	if (!MISC::IS_BIT_SET(Global_89532[iVar1 /*34*/].f_15, 1))
  	{
  		if (!PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  		{
  			MISC::SET_FADE_IN_AFTER_DEATH_ARREST(false);
  		}
  	}
  	Global_111638.f_9080.f_330[iVar1 /*6*/].f_2++;
  	Global_92919 = Global_98781;
  	if (iParam0 == -1)
  	{
  		if (Global_111638.f_9080)
  		{
  		}
  		return 0;
  	}
  	if (MISC::IS_BIT_SET(Global_89496[iParam0 /*5*/].f_1, 4))
  	{
  		return 0;
  	}
  	if (MISC::IS_BIT_SET(Global_89496[iParam0 /*5*/].f_1, 5))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  void func_5(var uParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	struct<3> Var2;
  	float fVar3;
  	
  	if (iParam1 == 94)
  	{
  		return;
  	}
  	iVar0 = 0;
  	while (iVar0 < 3)
  	{
  		iVar1 = Global_111638.f_18528[iVar0];
  		if ((((iVar1 == 8 || iVar1 == 9) || iVar1 == 10) || (((iVar1 == 11 || iVar1 == 34) || iVar1 == 72) || iVar1 == 73)) && !MISC::IS_BIT_SET(Global_111638.f_9080.f_99.f_219[0], 9))
  		{
  		}
  		else
  		{
  			Var2 = { 0f, 0f, 0f };
  			fVar3 = 0f;
  			if (!func_7(Global_111638.f_18528[iVar0], &Var2, &fVar3))
  			{
  				Global_111638.f_18528[iVar0] = 318;
  				func_6(&(uParam0->f_2296[iVar0]));
  				uParam0->f_2300[iVar0 /*3*/] = { 0f, 0f, 0f };
  				uParam0->f_2310[iVar0] = 0f;
  				uParam0->f_2314[iVar0] = 0;
  				uParam0->f_2318[iVar0 /*3*/] = { 0f, 0f, 0f };
  				uParam0->f_2328[iVar0] = 0;
  				Global_96134[iVar0 /*29*/] = { 0f, 0f, 0f };
  				Global_96134[iVar0 /*29*/].f_9 = 0f;
  				Global_96134[iVar0 /*29*/].f_12 = 0f;
  				Global_96134[iVar0 /*29*/].f_3 = { 0f, 0f, 0f };
  				Global_96134[iVar0 /*29*/].f_10 = 0f;
  				Global_96134[iVar0 /*29*/].f_13 = 0f;
  				Global_96134[iVar0 /*29*/].f_6 = { 0f, 0f, 0f };
  				Global_96134[iVar0 /*29*/].f_11 = 0f;
  				Global_96134[iVar0 /*29*/].f_14 = 0f;
  				Global_96134[iVar0 /*29*/].f_17 = { 0f, 0f, 0f };
  				Global_96134[iVar0 /*29*/].f_26 = 0f;
  				Global_96134[iVar0 /*29*/].f_20 = { 0f, 0f, 0f };
  				Global_96134[iVar0 /*29*/].f_27 = 0f;
  				Global_96134[iVar0 /*29*/].f_23 = { 0f, 0f, 0f };
  				Global_96134[iVar0 /*29*/].f_28 = 0f;
  			}
  		}
  		iVar0++;
  	}
  }
  
  void func_6(var uParam0)
  {
  	*uParam0 = -15;
  }
  
  int func_7(int iParam0, var uParam1, float fParam2)
  {
  	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_7(8, uParam1, fParam2);
  			break;
  		
  		case 10:
  			return func_7(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_8(int iParam0, bool bParam1)
  {
  	if (bParam1)
  	{
  		if ((iParam0 != 88 && iParam0 != 89) && iParam0 != 92)
  		{
  			Global_92729[iParam0 /*2*/] = 1;
  		}
  	}
  	else
  	{
  		Global_92729[iParam0 /*2*/] = 0;
  	}
  }
  
  void func_9()
  {
  	Global_98779 = 1;
  	if (PLAYER::IS_PLAYER_BEING_ARRESTED(PLAYER::PLAYER_ID(), true))
  	{
  		if (MISC::IS_STRING_NULL_OR_EMPTY(&Global_76854))
  		{
  			switch (func_10())
  			{
  				case 0:
  					StringCopy(&Global_76854, "CMN_MARRE", 16);
  					break;
  				
  				case 1:
  					StringCopy(&Global_76854, "CMN_FARRE", 16);
  					break;
  				
  				case 2:
  					StringCopy(&Global_76854, "CMN_TARRE", 16);
  					break;
  			}
  			StringCopy(&Global_76858, "", 16);
  		}
  		Global_98779 = 0;
  	}
  	else if (!PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  	{
  		if (MISC::IS_STRING_NULL_OR_EMPTY(&Global_76854))
  		{
  			switch (func_10())
  			{
  				case 0:
  					StringCopy(&Global_76854, "CMN_MDIED", 16);
  					break;
  				
  				case 1:
  					StringCopy(&Global_76854, "CMN_FDIED", 16);
  					break;
  				
  				case 2:
  					StringCopy(&Global_76854, "CMN_TDIED", 16);
  					break;
  			}
  			StringCopy(&Global_76858, "", 16);
  		}
  		Global_98779 = 0;
  		MISC::SET_BIT(&(Global_98744.f_20), 25);
  	}
  }
  
  int func_10()
  {
  	func_11();
  	return Global_111638.f_2358.f_539.f_4321;
  }
  
  void func_11()
  {
  	int iVar0;
  	
  	if (ENTITY::DOES_ENTITY_EXIST(PLAYER::PLAYER_PED_ID()))
  	{
  		if (func_15(Global_111638.f_2358.f_539.f_4321) != ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()))
  		{
  			iVar0 = func_14(PLAYER::PLAYER_PED_ID());
  			if (func_13(iVar0) && (!func_12(14) || Global_110589))
  			{
  				if (Global_111638.f_2358.f_539.f_4321 != iVar0 && func_13(Global_111638.f_2358.f_539.f_4321))
  				{
  					Global_111638.f_2358.f_539.f_4322 = Global_111638.f_2358.f_539.f_4321;
  				}
  				Global_111638.f_2358.f_539.f_4323 = iVar0;
  				Global_111638.f_2358.f_539.f_4321 = iVar0;
  				return;
  			}
  		}
  		else
  		{
  			if (Global_111638.f_2358.f_539.f_4321 != 145)
  			{
  				Global_111638.f_2358.f_539.f_4323 = Global_111638.f_2358.f_539.f_4321;
  			}
  			return;
  		}
  	}
  	Global_111638.f_2358.f_539.f_4321 = 145;
  }
  
  bool func_12(int iParam0)
  {
  	return Global_41431 == iParam0;
  }
  
  bool func_13(int iParam0)
  {
  	return iParam0 < 3;
  }
  
  int func_14(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		iVar1 = ENTITY::GET_ENTITY_MODEL(iParam0);
  		iVar0 = 0;
  		while (iVar0 <= 2)
  		{
  			if (func_15(iVar0) == iVar1)
  			{
  				return iVar0;
  			}
  			iVar0++;
  		}
  	}
  	return 145;
  }
  
  int func_15(int iParam0)
  {
  	if (func_13(iParam0))
  	{
  		return func_16(iParam0);
  	}
  	else if (iParam0 != 145)
  	{
  	}
  	return 0;
  }
  
  var func_16(int iParam0)
  {
  	return Global_1798[iParam0 /*29*/];
  }
  
  int func_17()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < 7)
  	{
  		if (MISC::IS_BIT_SET(Global_89496[iVar0 /*5*/].f_1, 2))
  		{
  			return iVar0;
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  bool func_18(bool bParam0)
  {
  	if (!bParam0 && SCRIPT::_GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH(joaat("benchmark")) > 0)
  	{
  		return 1;
  	}
  	return MISC::IS_BIT_SET(Global_76870, 0);
  }
  
  void func_19(char* sParam0)
  {
  	func_515(&(Global_111638.f_19958.f_1), 1024);
  	if (!MISC::IS_STRING_NULL(sParam0))
  	{
  		func_20(sParam0);
  	}
  }
  
  void func_20(char* sParam0)
  {
  	if (!MISC::IS_STRING_NULL_OR_EMPTY(sParam0))
  	{
  		if (HUD::GET_LENGTH_OF_LITERAL_STRING(sParam0) <= 16)
  		{
  			StringCopy(&Global_76854, sParam0, 16);
  			StringCopy(&Global_76858, "", 16);
  			if (RECORDING::_IS_RECORDING())
  			{
  				RECORDING::_STOP_RECORDING_AND_SAVE_CLIP();
  			}
  		}
  	}
  }
  
  int func_21(var uParam0)
  {
  	switch (iLocal_1241)
  	{
  		case 0:
  			if (IntToFloat(iLocal_1235) >= ((fLocal_1250 * 1f) / 2f) && !HUD::IS_MESSAGE_BEING_DISPLAYED())
  			{
  				func_38(&(uParam0->f_16), 1, PLAYER::PLAYER_PED_ID(), "FRANKLIN", 0, 1);
  				func_22(&(uParam0->f_16), "OJASAUD", "OJASml_TIME2", 8, 0, 0, 0);
  				iLocal_1241 = 1;
  			}
  			break;
  	}
  	return 0;
  }
  
  bool func_22(var uParam0, char* sParam1, char* sParam2, int iParam3, int iParam4, int iParam5, int iParam6)
  {
  	func_37(uParam0, 145, sParam1, iParam4, iParam5, iParam6);
  	if (iParam3 > 7)
  	{
  		if (iParam3 < 12)
  		{
  			iParam3 = 7;
  		}
  	}
  	Global_20812 = 0;
  	Global_20814 = 0;
  	Global_20819 = 0;
  	Global_21796 = 0;
  	Global_21798 = 0;
  	Global_21802 = 0;
  	Global_2621441 = 0;
  	return func_23(sParam2, iParam3, 0);
  }
  
  int func_23(char* sParam0, int iParam1, bool bParam2)
  {
  	Global_20806 = 0;
  	if (Global_20805 == 0 || Global_20807 == 2)
  	{
  		if (Global_20805 != 0)
  		{
  			if (iParam1 > Global_20807)
  			{
  				if (Global_20812 == 0)
  				{
  					AUDIO::STOP_SCRIPTED_CONVERSATION(false);
  					Global_19486.f_1 = 3;
  					Global_20805 = 0;
  					Global_20806 = 1;
  					Global_20858 = 0;
  					Global_20801 = 0;
  					Global_20802 = 0;
  					Global_20816 = 0;
  					Global_20815 = 0;
  					Global_19485 = 0;
  				}
  				else
  				{
  					func_36();
  					return 0;
  				}
  			}
  			else
  			{
  				return 0;
  			}
  		}
  		if (AUDIO::IS_SCRIPTED_CONVERSATION_ONGOING())
  		{
  			return 0;
  		}
  		if (func_35(8, -1))
  		{
  			return 0;
  		}
  		Global_20881 = { Global_20875 };
  		func_34();
  		Global_20094 = { Global_20259 };
  		Global_20811 = Global_20812;
  		Global_20818 = Global_20819;
  		Global_2621442 = Global_2621441;
  		Global_20820 = { Global_20836 };
  		Global_20813 = Global_20814;
  		Global_21795 = Global_21796;
  		Global_21803 = { Global_21809 };
  		Global_21797 = Global_21798;
  		Global_21799 = Global_21800;
  		Global_21801 = Global_21802;
  		Global_20424.f_370 = Global_21794;
  		Global_20424.f_368 = Global_21792;
  		Global_20424.f_369 = Global_21793;
  		Global_20801 = Global_20802;
  		if (Global_20811)
  		{
  			MISC::CLEAR_BIT(&Global_7356, 20);
  			MISC::CLEAR_BIT(&Global_7357, 17);
  			MISC::CLEAR_BIT(&Global_7358, 0);
  			if (bParam2)
  			{
  				func_33();
  				if (Global_8161[Global_19486 /*2811*/][0 /*281*/].f_259 == 2)
  				{
  					if (iParam1 == 13)
  					{
  					}
  					else
  					{
  						return 0;
  					}
  				}
  				if (Global_19486.f_1 > 3)
  				{
  					return 0;
  				}
  			}
  			if (Global_19452 == 1)
  			{
  				return 0;
  			}
  			if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  			{
  				if (PED::IS_PED_IN_MELEE_COMBAT(PLAYER::PLAYER_PED_ID()))
  				{
  					return 0;
  				}
  				if (func_32())
  				{
  					return 0;
  				}
  				if (TASK::IS_PED_SPRINTING(PLAYER::PLAYER_PED_ID()))
  				{
  					return 0;
  				}
  				if (PED::IS_PED_RAGDOLL(PLAYER::PLAYER_PED_ID()))
  				{
  					return 0;
  				}
  				if (PED::IS_PED_IN_PARACHUTE_FREE_FALL(PLAYER::PLAYER_PED_ID()))
  				{
  					return 0;
  				}
  				if (WEAPON::GET_IS_PED_GADGET_EQUIPPED(PLAYER::PLAYER_PED_ID(), joaat("gadget_parachute")))
  				{
  					return 0;
  				}
  				if (!Global_76622)
  				{
  					if (ENTITY::IS_ENTITY_IN_WATER(PLAYER::PLAYER_PED_ID()))
  					{
  						return 0;
  					}
  					if (PLAYER::IS_PLAYER_CLIMBING(PLAYER::PLAYER_ID()))
  					{
  						return 0;
  					}
  					if (PED::IS_PED_PLANTING_BOMB(PLAYER::PLAYER_PED_ID()))
  					{
  						return 0;
  					}
  					if (PLAYER::IS_SPECIAL_ABILITY_ACTIVE(PLAYER::PLAYER_ID(), 0))
  					{
  						return 0;
  					}
  				}
  			}
  			if (func_31())
  			{
  				return 0;
  			}
  			else
  			{
  				switch (Global_19486.f_1)
  				{
  					case 7:
  						return 0;
  						break;
  					
  					case 8:
  						return 0;
  						break;
  					
  					case 9:
  						break;
  					
  					case 10:
  						break;
  					
  					default:
  						break;
  				}
  				if (MISC::IS_BIT_SET(Global_7356, 9))
  				{
  					return 0;
  				}
  			}
  			func_30();
  			Global_20815 = bParam2;
  		}
  		Global_20807 = iParam1;
  		StringCopy(&Global_20424, sParam0, 24);
  		Global_19671 = 0;
  		func_29();
  		func_24();
  		return 1;
  	}
  	if (Global_20805 == 5)
  	{
  		return 0;
  	}
  	if (iParam1 < Global_20807 || iParam1 == Global_20807)
  	{
  		return 0;
  	}
  	if (iParam1 == 2)
  	{
  	}
  	else
  	{
  		func_36();
  	}
  	return 0;
  }
  
  void func_24()
  {
  	if (!func_25())
  	{
  		return;
  	}
  	if (Global_20811)
  	{
  		MemCopy(&(Global_1703108.f_1), {Global_20424}, 4);
  		Global_1703108 = Global_6671;
  		Global_1703108.f_6 = Global_20815;
  	}
  }
  
  int func_25()
  {
  	if (!Global_262145.f_28086)
  	{
  		return 0;
  	}
  	if (!Global_76622)
  	{
  		return 0;
  	}
  	if (PLAYER::PLAYER_ID() == func_28())
  	{
  		return 0;
  	}
  	if (func_26(PLAYER::PLAYER_ID()))
  	{
  		return 0;
  	}
  	if (MISC::IS_BIT_SET(Global_1628237[PLAYER::PLAYER_ID() /*615*/].f_1, 7))
  	{
  		return 0;
  	}
  	if (NETWORK::NETWORK_IS_ACTIVITY_SESSION())
  	{
  		return 0;
  	}
  	return 1;
  }
  
  bool func_26(int iParam0)
  {
  	return func_27(iParam0, 20);
  }
  
  bool func_27(int iParam0, int iParam1)
  {
  	return MISC::IS_BIT_SET(Global_1628237[iParam0 /*615*/].f_11.f_4, iParam1);
  }
  
  int func_28()
  {
  	return -1;
  }
  
  void func_29()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 <= 69)
  	{
  		StringCopy(&(Global_19673[iVar0 /*6*/]), "", 24);
  		iVar0++;
  	}
  	AUDIO::STOP_SCRIPTED_CONVERSATION(false);
  	Global_20805 = 1;
  }
  
  void func_30()
  {
  	Global_20858 = Global_20857;
  	Global_20852 = Global_20853;
  	Global_20899 = { Global_20887 };
  	Global_20905 = { Global_20893 };
  	Global_20860 = Global_20859;
  	Global_20929 = { Global_20911 };
  	Global_20935 = { Global_20917 };
  	Global_20941 = { Global_20923 };
  	Global_20947 = { Global_20953 };
  	Global_6671 = Global_6672;
  	Global_6673 = Global_6674;
  	Global_20816 = Global_20817;
  	Global_20818 = Global_20819;
  	Global_20820 = { Global_20836 };
  	Global_20809 = Global_20810;
  	Global_21821 = 0;
  	Global_20854 = 0;
  	Global_20855 = 0;
  	MISC::CLEAR_BIT(&Global_7357, 16);
  }
  
  int func_31()
  {
  	if (Global_19486.f_1 == 1 || Global_19486.f_1 == 0)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_32()
  {
  	int iVar0;
  	int iVar1;
  	
  	if (Global_76622)
  	{
  		iVar0 = 0;
  		WEAPON::GET_CURRENT_PED_WEAPON(PLAYER::PLAYER_PED_ID(), &iVar1, true);
  		if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  		{
  			if ((iVar1 == joaat("weapon_sniperrifle") || iVar1 == joaat("weapon_heavysniper")) || iVar1 == joaat("weapon_remotesniper"))
  			{
  				iVar0 = 1;
  			}
  		}
  		if (CAM::IS_AIM_CAM_ACTIVE() && iVar0 == 1)
  		{
  			return 1;
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  	{
  		if (PED::GET_PED_CONFIG_FLAG(PLAYER::PLAYER_PED_ID(), 78, true))
  		{
  			return 1;
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	return 1;
  }
  
  void func_33()
  {
  	if (func_12(14))
  	{
  		if (!ENTITY::IS_ENTITY_DEAD(PLAYER::PLAYER_PED_ID(), false))
  		{
  			if (ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()) == Global_111638.f_28045[0 /*29*/])
  			{
  				Global_19486 = 0;
  			}
  			else if (ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()) == Global_111638.f_28045[1 /*29*/])
  			{
  				Global_19486 = 1;
  			}
  			else if (ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()) == Global_111638.f_28045[2 /*29*/])
  			{
  				Global_19486 = 2;
  			}
  			else
  			{
  				Global_19486 = 0;
  			}
  		}
  	}
  	else
  	{
  		Global_19486 = func_10();
  		if (Global_19486 == 145)
  		{
  			Global_19486 = 3;
  		}
  		if (Global_76622)
  		{
  			Global_19486 = 3;
  		}
  		if (Global_19486 > 3)
  		{
  			Global_19486 = 3;
  		}
  	}
  }
  
  void func_34()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 <= 15)
  	{
  		Global_20094[iVar0 /*10*/] = 0;
  		StringCopy(&(Global_20094[iVar0 /*10*/].f_1), "", 24);
  		Global_20094[iVar0 /*10*/].f_7 = 0;
  		Global_20094[iVar0 /*10*/].f_8 = 0;
  		iVar0++;
  	}
  	Global_20094.f_161 = -99;
  	Global_20094.f_162 = { 0f, 0f, 0f };
  }
  
  bool func_35(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 5:
  			if (iParam1 > -1)
  			{
  				return Global_1377170.f_203[iParam1];
  			}
  			break;
  	}
  	return MISC::IS_BIT_SET(Global_1377170.f_1048, iParam0);
  }
  
  void func_36()
  {
  	AUDIO::RESTART_SCRIPTED_CONVERSATION();
  	Global_21816 = 0;
  	if ((AUDIO::IS_MOBILE_PHONE_CALL_ONGOING() || Global_19486.f_1 == 9) || Global_19485 == 1)
  	{
  		AUDIO::STOP_SCRIPTED_CONVERSATION(false);
  		Global_20805 = 6;
  		Global_19486.f_1 = 3;
  		return;
  	}
  	if (AUDIO::IS_SCRIPTED_CONVERSATION_ONGOING())
  	{
  		AUDIO::STOP_SCRIPTED_CONVERSATION(true);
  		Global_20805 = 6;
  		return;
  	}
  }
  
  void func_37(var uParam0, int iParam1, char* sParam2, int iParam3, int iParam4, int iParam5)
  {
  	Global_20259 = { *uParam0 };
  	Global_6672 = iParam1;
  	StringCopy(&Global_20875, sParam2, 24);
  	Global_21794 = iParam5;
  	if (iParam3 == 0)
  	{
  		Global_21792 = 1;
  		Global_21790 = 0;
  	}
  	else
  	{
  		Global_21792 = 0;
  		Global_21790 = 1;
  	}
  	if (iParam4 == 0)
  	{
  		Global_21793 = 1;
  		Global_21791 = 0;
  	}
  	else
  	{
  		Global_21793 = 0;
  		Global_21791 = 1;
  	}
  }
  
  void func_38(var uParam0, int iParam1, int iParam2, char* sParam3, int iParam4, int iParam5)
  {
  	if ((uParam0[iParam1 /*10*/])->f_7 == 1)
  	{
  	}
  	(*uParam0)[iParam1 /*10*/] = iParam2;
  	StringCopy(&((uParam0[iParam1 /*10*/])->f_1), sParam3, 24);
  	(uParam0[iParam1 /*10*/])->f_7 = 1;
  	(uParam0[iParam1 /*10*/])->f_8 = iParam4;
  	(uParam0[iParam1 /*10*/])->f_9 = iParam5;
  	if (!Global_76622)
  	{
  		if (!PED::IS_PED_INJURED(iParam2))
  		{
  			if ((uParam0[iParam1 /*10*/])->f_8 == 0)
  			{
  				PED::SET_PED_CAN_PLAY_AMBIENT_ANIMS(iParam2, false);
  			}
  			else
  			{
  				PED::SET_PED_CAN_PLAY_AMBIENT_ANIMS(iParam2, true);
  			}
  		}
  		if (!PED::IS_PED_INJURED(iParam2))
  		{
  			if ((uParam0[iParam1 /*10*/])->f_9 == 0)
  			{
  				PED::SET_PED_CAN_USE_AUTO_CONVERSATION_LOOKAT(iParam2, false);
  			}
  			else
  			{
  				PED::SET_PED_CAN_USE_AUTO_CONVERSATION_LOOKAT(iParam2, true);
  			}
  		}
  	}
  }
  
  void func_39(int iParam0, var uParam1, float fParam2, var uParam3, bool bParam4)
  {
  	if (!*uParam3)
  	{
  		*iParam0 = MISC::GET_GAME_TIMER();
  		*uParam3 = 1;
  	}
  	*uParam1 = (MISC::GET_GAME_TIMER() - *iParam0);
  	iLocal_1245 = (SYSTEM::ROUND(*fParam2) - *uParam1);
  	if (iLocal_1245 < 60000)
  	{
  		if (iLocal_1245 <= 11000 && iLocal_1245 >= 5000)
  		{
  			if (func_497(&iLocal_1197))
  			{
  				if (func_45(&iLocal_1197) > 1f)
  				{
  					AUDIO::PLAY_SOUND_FRONTEND(-1, "10_SEC_WARNING", "HUD_MINI_GAME_SOUNDSET", true);
  					func_44(&iLocal_1197);
  				}
  			}
  			else
  			{
  				AUDIO::PLAY_SOUND_FRONTEND(-1, "10_SEC_WARNING", "HUD_MINI_GAME_SOUNDSET", true);
  				func_43(&iLocal_1197);
  			}
  		}
  		else if (iLocal_1245 <= 5000 && iLocal_1245 > 0)
  		{
  			if (func_497(&iLocal_1197))
  			{
  				if (func_45(&iLocal_1197) > 0.5f)
  				{
  					AUDIO::PLAY_SOUND_FRONTEND(-1, "10_SEC_WARNING", "HUD_MINI_GAME_SOUNDSET", true);
  					func_44(&iLocal_1197);
  				}
  			}
  			else
  			{
  				func_43(&iLocal_1197);
  			}
  		}
  		func_40(iLocal_1245, "ASS_TIME", 0, 0, -1, 0, 2, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, -1);
  	}
  	else
  	{
  		func_40(iLocal_1245, "ASS_TIME", 0, 0, -1, 0, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, -1);
  	}
  	if (IntToFloat(*uParam1) > *fParam2)
  	{
  		AUDIO::PLAY_SOUND_FRONTEND(-1, "TIMER_STOP", "HUD_MINI_GAME_SOUNDSET", true);
  		*bParam4 = 1;
  	}
  }
  
  void func_40(int iParam0, char* sParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13, int iParam14, int iParam15, int iParam16, int iParam17)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = -1;
  	iVar1 = 0;
  	while (iVar1 <= 9)
  	{
  		if (iVar0 == -1)
  		{
  			if (func_42(7, iVar1) == 0)
  			{
  				iVar0 = iVar1;
  			}
  		}
  		iVar1++;
  	}
  	if (iVar0 > -1)
  	{
  		Global_1378678.f_1 = 1;
  		func_41(7, iVar0);
  		Global_1378678.f_4562[iVar0] = iParam0;
  		StringCopy(&(Global_1378678.f_4562.f_11[iVar0 /*16*/]), sParam1, 64);
  		Global_1378678.f_4562.f_172[iVar0] = iParam2;
  		Global_1378678.f_4562.f_216[iVar0] = iParam3;
  		Global_1378678.f_4562.f_183[iVar0] = iParam4;
  		Global_1378678.f_4562.f_194[iVar0] = iParam5;
  		Global_1378678.f_4562.f_249[iVar0] = iParam6;
  		Global_1378678.f_4562.f_260[iVar0] = iParam7;
  		Global_1378678.f_4562.f_205[iVar0] = iParam8;
  		Global_1378678.f_4562.f_314[iVar0] = iParam9;
  		Global_1378678.f_4562.f_325[iVar0] = iParam10;
  		Global_1378678.f_4562.f_357[iVar0] = iParam11;
  		Global_1378678.f_4562.f_238[iVar0] = iParam12;
  		Global_1378678.f_4562.f_271[iVar0] = iParam13;
  		Global_1378678.f_4562.f_368[iVar0] = iParam14;
  		Global_1378678.f_4562.f_379[iVar0] = iParam15;
  		Global_1378678.f_4562.f_390[iVar0] = iParam16;
  		Global_1378678.f_4562.f_227[iVar0] = iParam17;
  	}
  }
  
  void func_41(int iParam0, int iParam1)
  {
  	MISC::SET_BIT(&(Global_1378678.f_6293[iParam0]), iParam1);
  }
  
  bool func_42(int iParam0, int iParam1)
  {
  	return MISC::IS_BIT_SET(Global_1378678.f_6293[iParam0], iParam1);
  }
  
  void func_43(int* iParam0)
  {
  	if (!func_497(iParam0))
  	{
  		func_44(iParam0);
  	}
  }
  
  void func_44(int* iParam0)
  {
  	func_155(iParam0, 0f);
  }
  
  float func_45(int* iParam0)
  {
  	if (func_497(iParam0))
  	{
  		if (func_47(iParam0))
  		{
  			return iParam0->f_2;
  		}
  		else
  		{
  			return (func_46(MISC::IS_BIT_SET(*iParam0, 4)) - iParam0->f_1);
  		}
  	}
  	return iParam0->f_1;
  }
  
  float func_46(bool bParam0)
  {
  	float fVar0;
  	float fVar1;
  	int iVar2;
  	float fVar3;
  	float fVar4;
  	
  	if (bParam0)
  	{
  		fVar0 = SYSTEM::TO_FLOAT(MISC::GET_GAME_TIMER());
  		fVar1 = (fVar0 / 1000f);
  		return fVar1;
  	}
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		iVar2 = NETWORK::GET_NETWORK_TIME();
  		fVar3 = SYSTEM::TO_FLOAT(iVar2);
  		fVar4 = (fVar3 / 1000f);
  		return fVar4;
  	}
  	return (SYSTEM::TO_FLOAT(MISC::GET_GAME_TIMER()) / 1000f);
  }
  
  bool func_47(int* iParam0)
  {
  	return MISC::IS_BIT_SET(*iParam0, 2);
  }
  
  void func_48()
  {
  	if (!iLocal_1228)
  	{
  		if (PLAYER::GET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID()) > 0)
  		{
  			if (!func_51())
  			{
  				func_49(PLAYER::PLAYER_PED_ID(), "SPOT_POLICE", 24);
  				iLocal_1228 = 1;
  			}
  		}
  	}
  }
  
  void func_49(int iParam0, char* sParam1, int iParam2)
  {
  	AUDIO::_PLAY_AMBIENT_SPEECH1(iParam0, sParam1, func_50(iParam2), 1);
  }
  
  int func_50(int iParam0)
  {
  	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;
  }
  
  int func_51()
  {
  	if (Global_20805 != 0 || AUDIO::IS_SCRIPTED_CONVERSATION_ONGOING())
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_52()
  {
  	int iVar0;
  	
  	if (iLocal_968 > 4)
  	{
  		if (!PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID()))
  		{
  			iVar0 = VEHICLE::GET_LAST_DRIVEN_VEHICLE();
  			if (ENTITY::DOES_ENTITY_EXIST(iVar0))
  			{
  				if (VEHICLE::IS_VEHICLE_DRIVEABLE(iVar0, false))
  				{
  					if ((iVar0 != iLocal_1263 && !ENTITY::IS_ENTITY_IN_WATER(iVar0)) && !ENTITY::IS_ENTITY_A_MISSION_ENTITY(iVar0))
  					{
  						iLocal_1263 = iVar0;
  						ENTITY::SET_ENTITY_AS_MISSION_ENTITY(iLocal_1263, true, false);
  						VEHICLE::SET_VEHICLE_HAS_BEEN_DRIVEN_FLAG(iLocal_1263, false);
  					}
  				}
  			}
  		}
  	}
  }
  
  void func_53(struct<39> Param0, var uParam1, var uParam2)
  {
  	HUD::CLEAR_PRINTS();
  	switch (iLocal_970)
  	{
  		case 0:
  			if (!iLocal_128)
  			{
  				if (iLocal_953 == 1)
  				{
  					func_152();
  					bLocal_126 = true;
  				}
  				fLocal_123 = func_45(&iLocal_964);
  				func_145();
  				iLocal_128 = 1;
  				iLocal_970 = 1;
  			}
  			break;
  		
  		case 1:
  			if (!iLocal_959)
  			{
  				AUDIO::PLAY_MISSION_COMPLETE_AUDIO("FRANKLIN_BIG_01");
  				iLocal_959 = 1;
  			}
  			if (func_141(&uLocal_139, 1, 0) && AUDIO::IS_MISSION_COMPLETE_READY_FOR_UI())
  			{
  				func_140(uParam1, 0, 0, 0, 1);
  				func_139(uParam1, &(Local_716.f_60), 2, 215, 1, 1, 0);
  				func_139(uParam1, "ES_XPAND", 2, 216, 1, 1, 0);
  				func_137(1);
  				SYSTEM::SETTIMERA(0);
  				iLocal_970 = 2;
  			}
  			break;
  		
  		case 2:
  			if (func_109(&uLocal_139, 0, 1065353216, 0, 0, 0))
  			{
  				bLocal_958 = true;
  			}
  			if (!bLocal_958)
  			{
  				func_101(uParam1, 1128792064, 1, 0, 1, 1065353216);
  			}
  			if (PAD::IS_CONTROL_JUST_PRESSED(2, 215) || PAD::IS_DISABLED_CONTROL_JUST_PRESSED(2, 200))
  			{
  				if (!bLocal_958)
  				{
  					bLocal_958 = true;
  					func_100(&uLocal_139);
  				}
  			}
  			if (bLocal_958)
  			{
  				if (func_109(&uLocal_139, 0, 1065353216, 0, 0, 0))
  				{
  					func_98(&uLocal_139);
  					func_137(0);
  					Global_111638.f_19958++;
  					func_97();
  					func_95(0, 0);
  					func_56(Param0);
  					func_54();
  					func_512(uParam2);
  				}
  			}
  			break;
  	}
  }
  
  void func_54()
  {
  	func_55();
  }
  
  int func_55()
  {
  	if (func_18(0))
  	{
  		return 0;
  	}
  	if (Global_98783.f_8)
  	{
  		if (Global_98783.f_10 > 0)
  		{
  			return 0;
  		}
  	}
  	else if (Global_98783.f_10 > 1)
  	{
  		return 0;
  	}
  	Global_98783.f_10++;
  	return 1;
  }
  
  void func_56(struct<25> Param0, var uParam1, var uParam2, var uParam3, var uParam4, var uParam5, var uParam6, var uParam7, var uParam8, var uParam9, var uParam10, var uParam11, var uParam12, var uParam13, var uParam14)
  {
  	float fVar0;
  	
  	fVar0 = (1f + func_94());
  	fVar0 = (fVar0 * Param0.f_23);
  	if (func_93(Global_111638.f_19958.f_1, 4194304))
  	{
  		fVar0 = (fVar0 + Param0.f_24);
  	}
  	func_57(func_10(), 97, SYSTEM::ROUND(fVar0), 0, 0);
  }
  
  void func_57(int iParam0, int iParam1, int iParam2, bool bParam3, bool bParam4)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (func_92(iParam0) == 3)
  	{
  		return;
  	}
  	if (func_92(iParam0) == 4)
  	{
  		return;
  	}
  	func_58(func_92(iParam0), 1, iParam1, iParam2, 0);
  	if (bParam3)
  	{
  		iVar0 = 0;
  		if (bParam4)
  		{
  			switch (iParam0)
  			{
  				case 0:
  					iVar1 = joaat("SP0_MONEY_MADE_FROM_RANDOM_PEDS");
  					break;
  				
  				case 1:
  					iVar1 = joaat("SP1_MONEY_MADE_FROM_RANDOM_PEDS");
  					break;
  				
  				case 2:
  					iVar1 = joaat("SP2_MONEY_MADE_FROM_RANDOM_PEDS");
  					break;
  				
  				default:
  					return;
  			}
  		}
  		else
  		{
  			switch (iParam0)
  			{
  				case 0:
  					iVar1 = joaat("SP0_MONEY_MADE_FROM_MISSIONS");
  					break;
  				
  				case 1:
  					iVar1 = joaat("SP1_MONEY_MADE_FROM_MISSIONS");
  					break;
  				
  				case 2:
  					iVar1 = joaat("SP2_MONEY_MADE_FROM_MISSIONS");
  					break;
  				
  				default:
  					return;
  				}
  		}
  		STATS::STAT_GET_INT(iVar1, &iVar0, -1);
  		iVar0 = (iVar0 + iParam2);
  		STATS::STAT_SET_INT(iVar1, iVar0, true);
  	}
  }
  
  int func_58(int iParam0, int iParam1, int iParam2, int iParam3, bool bParam4)
  {
  	float fVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	
  	func_91();
  	if (iParam3 < 1)
  	{
  		return 0;
  	}
  	fVar0 = 1f;
  	switch (iParam1)
  	{
  		case 0:
  			switch (iParam0)
  			{
  				case 0:
  					func_90(99, 1);
  					func_89(joaat("SP0_MONEY_TOTAL_SPENT"), iParam3);
  					break;
  				
  				case 1:
  					func_89(joaat("SP1_MONEY_TOTAL_SPENT"), iParam3);
  					break;
  				
  				case 2:
  					func_89(joaat("SP2_MONEY_TOTAL_SPENT"), iParam3);
  					break;
  			}
  			func_74(0);
  			switch (iParam2)
  			{
  				case 127:
  				case 129:
  				case 125:
  				case 126:
  				case 128:
  					if (func_69(5))
  					{
  						fVar0 = 0.9f;
  						iVar1 = 5;
  					}
  					break;
  				
  				case 63:
  				case 64:
  				case 65:
  				case 66:
  				case 67:
  				case 68:
  					switch (iParam0)
  					{
  						case 0:
  							func_89(joaat("SP0_MONEY_SPENT_ON_TATTOOS"), iParam3);
  							break;
  						
  						case 1:
  							func_89(joaat("SP1_MONEY_SPENT_ON_TATTOOS"), iParam3);
  							break;
  						
  						case 2:
  							func_89(joaat("SP2_MONEY_SPENT_ON_TATTOOS"), iParam3);
  							break;
  					}
  					if (func_69(1))
  					{
  						fVar0 = 0f;
  						iVar1 = 1;
  					}
  					break;
  				
  				case 21:
  					switch (iParam0)
  					{
  						case 0:
  							func_89(joaat("SP0_MONEY_SPENT_ON_TAXIS"), iParam3);
  							break;
  						
  						case 1:
  							func_89(joaat("SP1_MONEY_SPENT_ON_TAXIS"), iParam3);
  							break;
  						
  						case 2:
  							func_89(joaat("SP2_MONEY_SPENT_ON_TAXIS"), iParam3);
  							break;
  					}
  					break;
  				
  				case 25:
  					switch (iParam0)
  					{
  						case 0:
  							func_89(joaat("SP0_MONEY_SPENT_IN_STRIP_CLUBS"), iParam3);
  							break;
  						
  						case 1:
  							func_89(joaat("SP1_MONEY_SPENT_IN_STRIP_CLUBS"), iParam3);
  							break;
  						
  						case 2:
  							func_89(joaat("SP2_MONEY_SPENT_IN_STRIP_CLUBS"), iParam3);
  							break;
  					}
  					break;
  				
  				case 99:
  				case 100:
  				case 101:
  				case 102:
  				case 104:
  				case 105:
  				case 106:
  				case 107:
  				case 108:
  				case 109:
  				case 110:
  				case 111:
  				case 112:
  				case 113:
  					switch (iParam0)
  					{
  						case 0:
  							func_89(joaat("SP0_MONEY_SPENT_PROPERTY"), iParam3);
  							break;
  						
  						case 1:
  							func_89(joaat("SP1_MONEY_SPENT_PROPERTY"), iParam3);
  							break;
  						
  						case 2:
  							func_89(joaat("SP2_MONEY_SPENT_PROPERTY"), iParam3);
  							break;
  					}
  					break;
  				
  				default:
  					switch (SCRIPT::GET_HASH_OF_THIS_SCRIPT_NAME())
  					{
  						case joaat("clothes_shop_sp"):
  							switch (iParam0)
  							{
  								case 0:
  									func_89(joaat("SP0_MONEY_SPENT_IN_CLOTHES"), iParam3);
  									break;
  								
  								case 1:
  									func_89(joaat("SP1_MONEY_SPENT_IN_CLOTHES"), iParam3);
  									break;
  								
  								case 2:
  									func_89(joaat("SP2_MONEY_SPENT_IN_CLOTHES"), iParam3);
  									break;
  							}
  							break;
  						
  						case joaat("hairdo_shop_sp"):
  							switch (iParam0)
  							{
  								case 0:
  									func_89(joaat("SP0_MONEY_SPENT_ON_HAIRDOS"), iParam3);
  									break;
  								
  								case 1:
  									func_89(joaat("SP1_MONEY_SPENT_ON_HAIRDOS"), iParam3);
  									break;
  								
  								case 2:
  									func_89(joaat("SP2_MONEY_SPENT_ON_HAIRDOS"), iParam3);
  									break;
  							}
  							if (func_69(0))
  							{
  								fVar0 = 0f;
  								iVar1 = 0;
  							}
  							break;
  						
  						case joaat("gunclub_shop"):
  							switch (iParam0)
  							{
  								case 0:
  									func_89(joaat("SP0_MONEY_SPENT_IN_BUYING_GUNS"), iParam3);
  									break;
  								
  								case 1:
  									func_89(joaat("SP1_MONEY_SPENT_IN_BUYING_GUNS"), iParam3);
  									break;
  								
  								case 2:
  									func_89(joaat("SP2_MONEY_SPENT_IN_BUYING_GUNS"), iParam3);
  									break;
  							}
  							break;
  						
  						case joaat("carmod_shop"):
  							switch (iParam0)
  							{
  								case 0:
  									func_89(joaat("SP0_MONEY_SPENT_CAR_MODS"), iParam3);
  									break;
  								
  								case 1:
  									func_89(joaat("SP1_MONEY_SPENT_CAR_MODS"), iParam3);
  									break;
  								
  								case 2:
  									func_89(joaat("SP2_MONEY_SPENT_CAR_MODS"), iParam3);
  									break;
  							}
  							func_68(iParam3);
  							break;
  					}
  					break;
  			}
  			break;
  		
  		case 1:
  			switch (iParam0)
  			{
  				case 0:
  					func_90(95, iParam3);
  					break;
  				
  				case 1:
  					func_90(97, iParam3);
  					break;
  				
  				case 2:
  					func_90(96, iParam3);
  					break;
  			}
  			func_90(98, iParam3);
  			break;
  	}
  	iVar2 = iParam0;
  	iParam3 = SYSTEM::FLOOR((fVar0 * SYSTEM::TO_FLOAT(iParam3)));
  	iVar3 = 0;
  	iVar4 = iParam3;
  	if (fVar0 == 0f)
  	{
  		func_61(iVar1);
  		return 1;
  	}
  	else if (fVar0 != 1f)
  	{
  		func_61(iVar1);
  	}
  	iVar5 = (Global_58686[iVar2] + iParam3);
  	switch (iParam1)
  	{
  		case 1:
  			if (Global_58686[iVar2] >= 0 && iParam3 > 0)
  			{
  				if (iVar5 <= 0)
  				{
  					Global_58686[iVar2] = 2147483647;
  				}
  				else
  				{
  					Global_58686[iVar2] = (Global_58686[iVar2] + iParam3);
  				}
  			}
  			switch (iParam0)
  			{
  				case 0:
  					func_89(joaat("SP0_TOTAL_CASH_EARNED"), iParam3);
  					break;
  				
  				case 1:
  					func_89(joaat("SP1_TOTAL_CASH_EARNED"), iParam3);
  					break;
  				
  				case 2:
  					func_89(joaat("SP2_TOTAL_CASH_EARNED"), iParam3);
  					break;
  			}
  			break;
  		
  		case 0:
  			if (!bParam4)
  			{
  				if ((Global_58686[iVar2] - iParam3) < 0)
  				{
  					return 0;
  				}
  			}
  			iVar3 = Global_58686[iVar2];
  			Global_58686[iVar2] = (Global_58686[iVar2] - iParam3);
  			if (bParam4)
  			{
  				iVar4 = iVar3;
  			}
  			break;
  	}
  	if (iParam2 == 1)
  	{
  		if (iVar4 > 20)
  		{
  		}
  	}
  	else
  	{
  		Global_111638.f_20559.f_233[iVar2 /*69*/].f_2[Global_111638.f_20559.f_233[iVar2 /*69*/].f_1 /*6*/] = iParam1;
  		Global_111638.f_20559.f_233[iVar2 /*69*/].f_2[Global_111638.f_20559.f_233[iVar2 /*69*/].f_1 /*6*/].f_1 = iParam2;
  		Global_111638.f_20559.f_233[iVar2 /*69*/].f_2[Global_111638.f_20559.f_233[iVar2 /*69*/].f_1 /*6*/].f_2 = iParam3;
  		Global_111638.f_20559.f_233[iVar2 /*69*/]++;
  		Global_111638.f_20559.f_233[iVar2 /*69*/].f_1++;
  		if (Global_111638.f_20559.f_233[iVar2 /*69*/].f_1 > 10)
  		{
  			Global_111638.f_20559.f_233[iVar2 /*69*/].f_1 = 0;
  		}
  	}
  	func_60(iParam0);
  	if (Global_41431 == 15)
  	{
  		func_59(0);
  	}
  	return 1;
  }
  
  void func_59(bool bParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = 0;
  	iVar1 = 0;
  	iVar0 = 0;
  	while (iVar0 < 3)
  	{
  		iVar1 = 0;
  		while (iVar1 < 11)
  		{
  			Global_111638.f_20559.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_3 = Global_111638.f_20559.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/];
  			Global_111638.f_20559.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_4 = Global_111638.f_20559.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_1;
  			Global_111638.f_20559.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_5 = Global_111638.f_20559.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_2;
  			iVar1++;
  		}
  		iVar0++;
  	}
  	iVar0 = 0;
  	while (iVar0 < 10)
  	{
  		Global_58694[iVar0 /*3*/][0] = Global_111638.f_20559[iVar0];
  		Global_58694.f_31[iVar0 /*3*/][0] = Global_111638.f_20559.f_11[iVar0];
  		Global_58694.f_62[iVar0 /*3*/][0] = Global_111638.f_20559.f_22[iVar0];
  		Global_58694.f_93[iVar0 /*3*/][0] = Global_111638.f_20559.f_33[iVar0];
  		Global_58694.f_124[iVar0 /*3*/][0] = Global_111638.f_20559.f_44[iVar0];
  		Global_58694.f_155[iVar0 /*3*/][0] = Global_111638.f_20559.f_55[iVar0];
  		Global_58694.f_186[iVar0 /*3*/][0] = Global_111638.f_20559.f_66[iVar0];
  		Global_58694.f_217[iVar0 /*3*/][0] = Global_111638.f_20559.f_77[iVar0];
  		Global_58694.f_248[iVar0 /*3*/][0] = Global_111638.f_20559.f_88[iVar0];
  		if (!bParam0)
  		{
  			Global_58694[iVar0 /*3*/][1] = Global_111638.f_20559[iVar0];
  			Global_58694.f_31[iVar0 /*3*/][1] = Global_111638.f_20559.f_11[iVar0];
  			Global_58694.f_62[iVar0 /*3*/][1] = Global_111638.f_20559.f_22[iVar0];
  			Global_58694.f_93[iVar0 /*3*/][1] = Global_111638.f_20559.f_33[iVar0];
  			Global_58694.f_124[iVar0 /*3*/][1] = Global_111638.f_20559.f_44[iVar0];
  			Global_58694.f_155[iVar0 /*3*/][1] = Global_111638.f_20559.f_55[iVar0];
  			Global_58694.f_186[iVar0 /*3*/][1] = Global_111638.f_20559.f_66[iVar0];
  			Global_58694.f_217[iVar0 /*3*/][1] = Global_111638.f_20559.f_77[iVar0];
  			Global_58694.f_248[iVar0 /*3*/][1] = Global_111638.f_20559.f_88[iVar0];
  		}
  		iVar0++;
  	}
  }
  
  void func_60(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = Global_58686[iParam0];
  	switch (iParam0)
  	{
  		case 0:
  			STATS::STAT_SET_INT(joaat("SP0_TOTAL_CASH"), iVar0, true);
  			break;
  		
  		case 1:
  			STATS::STAT_SET_INT(joaat("SP1_TOTAL_CASH"), iVar0, true);
  			break;
  		
  		case 2:
  			STATS::STAT_SET_INT(joaat("SP2_TOTAL_CASH"), iVar0, true);
  			break;
  	}
  }
  
  void func_61(int iParam0)
  {
  	bool bVar0;
  	char cVar1[64];
  	
  	if (iParam0 == 8)
  	{
  		func_67(129, 0, -1, 1);
  		return;
  	}
  	if (iParam0 == 9)
  	{
  		func_67(135, 0, -1, 1);
  		return;
  	}
  	if (iParam0 == 10)
  	{
  		func_67(136, 0, -1, 1);
  		return;
  	}
  	if (iParam0 == 11)
  	{
  		func_67(137, 0, -1, 1);
  		return;
  	}
  	if (iParam0 == 12)
  	{
  		func_64(8269, 0, -1, 1, 0);
  		return;
  	}
  	if (iParam0 == 13)
  	{
  		func_64(8270, 0, -1, 1, 0);
  		return;
  	}
  	if (iParam0 == 14)
  	{
  		func_64(8271, 0, -1, 1, 0);
  		return;
  	}
  	if (iParam0 == 15)
  	{
  		func_64(8272, 0, -1, 1, 0);
  		return;
  	}
  	if (iParam0 == 16)
  	{
  		func_64(8273, 0, -1, 1, 0);
  		return;
  	}
  	if (iParam0 == 17)
  	{
  		func_64(8274, 0, -1, 1, 0);
  		return;
  	}
  	bVar0 = false;
  	if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		if (MISC::IS_BIT_SET(Global_111638.f_20559.f_471, iParam0))
  		{
  			bVar0 = true;
  			MISC::CLEAR_BIT(&(Global_111638.f_20559.f_471), iParam0);
  		}
  	}
  	else if (MISC::IS_BIT_SET(Global_111638.f_20559.f_471, iParam0) || MISC::IS_BIT_SET(Global_2097152[func_63() /*10930*/].f_6174.f_10, iParam0))
  	{
  		bVar0 = true;
  		MISC::CLEAR_BIT(&(Global_111638.f_20559.f_471), iParam0);
  		MISC::CLEAR_BIT(&(Global_2097152[func_63() /*10930*/].f_6174.f_10), iParam0);
  	}
  	if (bVar0)
  	{
  		StringCopy(&cVar1, "CHAR_LIFEINVADER", 64);
  		HUD::BEGIN_TEXT_COMMAND_THEFEED_POST("COUP_RED");
  		HUD::ADD_TEXT_COMPONENT_SUBSTRING_TEXT_LABEL(func_62(iParam0));
  		HUD::END_TEXT_COMMAND_THEFEED_POST_MESSAGETEXT(&cVar1, &cVar1, true, 0, "", 0);
  	}
  }
  
  char* func_62(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return "COUP_HAIRC";
  		
  		case 1:
  			return "COUP_TATTOO";
  		
  		case 2:
  			return "COUP_WARSTOCK";
  		
  		case 3:
  			return "COUP_MOSPORT";
  		
  		case 4:
  			return "COUP_ELITAS";
  		
  		case 5:
  			return "COUP_MEDSPENS";
  		
  		case 6:
  			return "COUP_SPRUNK";
  		
  		case 7:
  			return "COUP_RESPRAY";
  		
  		case 8:
  			return "COUP_XMAS2017";
  		
  		case 9:
  			return "COUP_CAR_XMAS2018";
  		
  		case 10:
  			return "COUP_HELI_XMAS2018";
  		
  		case 11:
  			return "COUP_CAR2_XMAS2018";
  		
  		case 12:
  			return "COUP_CAS_ELITAS";
  		
  		case 13:
  			return "COUP_CAS_DOCKTEASE";
  		
  		case 14:
  			return "COUP_CAS_MOSPORT";
  		
  		case 15:
  			return "COUP_CAS_SSASA";
  		
  		case 16:
  			return "COUP_CAS_WARSTOCK";
  		
  		case 17:
  			return "COUP_CAS_PANDM";
  		
  		default:
  	}
  	return "";
  }
  
  int func_63()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	return iVar0;
  }
  
  void func_64(int iParam0, int iParam1, int iParam2, bool bParam3, bool bParam4)
  {
  	int iVar0;
  	
  	if (bParam4)
  	{
  	}
  	iVar0 = Global_2548434[iParam0 /*3*/][func_65(iParam2)];
  	if (iVar0 != 0)
  	{
  		STATS::STAT_SET_INT(iVar0, iParam1, bParam3);
  	}
  }
  
  int func_65(var uParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = uParam0;
  	if (iVar0 == -1)
  	{
  		iVar1 = func_66();
  		if (iVar1 > -1)
  		{
  			Global_2548146 = 0;
  			iVar0 = iVar1;
  		}
  		else
  		{
  			iVar0 = 0;
  			Global_2548146 = 1;
  		}
  	}
  	return iVar0;
  }
  
  int func_66()
  {
  	return Global_1312745;
  }
  
  bool func_67(int iParam0, bool bParam1, int iParam2, bool bParam3)
  {
  	bool bVar0;
  	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;
  	
  	if (iParam2 == -1)
  	{
  		iParam2 = func_66();
  	}
  	bVar0 = false;
  	if (iParam0 >= 0 && iParam0 < 192)
  	{
  		iVar2 = STATS::GET_PACKED_BOOL_STAT_KEY((iParam0 - 0), false, true, iParam2);
  		iVar1 = ((iParam0 - 0) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 0)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar2, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 192 && iParam0 < 384)
  	{
  		iVar3 = STATS::GET_PACKED_BOOL_STAT_KEY((iParam0 - 192), true, true, iParam2);
  		iVar1 = ((iParam0 - 192) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 192)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar3, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 513 && iParam0 < 705)
  	{
  		iVar4 = STATS::GET_PACKED_BOOL_STAT_KEY((iParam0 - 513), false, false, 0);
  		iVar1 = ((iParam0 - 513) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 513)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar4, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 705 && iParam0 < 1281)
  	{
  		iVar5 = STATS::GET_PACKED_BOOL_STAT_KEY((iParam0 - 705), true, false, 0);
  		iVar1 = ((iParam0 - 705) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 705)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar5, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 3111 && iParam0 < 3879)
  	{
  		iVar6 = STATS::_GET_PACKED_TITLE_UPDATE_BOOL_STAT_KEY((iParam0 - 3111), false, true, iParam2);
  		iVar1 = ((iParam0 - 3111) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 3111)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar6, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 2919 && iParam0 < 3111)
  	{
  		iVar7 = STATS::_GET_PACKED_TITLE_UPDATE_BOOL_STAT_KEY((iParam0 - 2919), false, false, 0);
  		iVar1 = ((iParam0 - 2919) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 2919)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar7, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 4207 && iParam0 < 4335)
  	{
  		iVar8 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 4207), false, true, iParam2, "_NGPSTAT_BOOL");
  		iVar1 = ((iParam0 - 4207) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 4207)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar8, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 4335 && iParam0 < 4399)
  	{
  		iVar9 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 4335), false, false, 0, "_NGPSTAT_BOOL");
  		iVar1 = ((iParam0 - 4335) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 4335)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar9, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 6029 && iParam0 < 6413)
  	{
  		iVar10 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 6029), false, true, iParam2, "_NGTATPSTAT_BOOL");
  		iVar1 = ((iParam0 - 6029) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 6029)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar10, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 7385 && iParam0 < 7641)
  	{
  		iVar11 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 7385), false, true, iParam2, "_NGDLCPSTAT_BOOL");
  		iVar1 = ((iParam0 - 7385) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 7385)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar11, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 7321 && iParam0 < 7385)
  	{
  		iVar12 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 7321), false, false, 0, "_NGDLCPSTAT_BOOL");
  		iVar1 = ((iParam0 - 7321) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 7321)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar12, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 9361 && iParam0 < 9553)
  	{
  		iVar13 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 9361), false, true, iParam2, "_DLCBIKEPSTAT_BOOL");
  		iVar1 = ((iParam0 - 9361) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 9361)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar13, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 15369 && iParam0 < 15561)
  	{
  		iVar14 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 15369), false, true, iParam2, "_DLCGUNPSTAT_BOOL");
  		iVar1 = ((iParam0 - 15369) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 15369)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar14, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 15562 && iParam0 < 15946)
  	{
  		iVar15 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 15562), false, true, iParam2, "_GUNTATPSTAT_BOOL");
  		iVar1 = ((iParam0 - 15562) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 15562)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar15, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 15946 && iParam0 < 16010)
  	{
  		iVar16 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 15946), false, true, iParam2, "_DLCSMUGCHARPSTAT_BOOL");
  		iVar1 = ((iParam0 - 15946) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 15946)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar16, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 18098 && iParam0 < 18162)
  	{
  		iVar17 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 18098), false, true, iParam2, "_GANGOPSPSTAT_BOOL");
  		iVar1 = ((iParam0 - 18098) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 18098)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar17, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 22066 && iParam0 < 22194)
  	{
  		iVar18 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 22066), false, true, iParam2, "_BUSINESSBATPSTAT_BOOL");
  		iVar1 = ((iParam0 - 22066) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 22066)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar18, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 24962 && iParam0 < 25538)
  	{
  		iVar19 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 24962), false, true, iParam2, "_ARENAWARSPSTAT_BOOL");
  		iVar1 = ((iParam0 - 24962) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 24962)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar19, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 26810 && iParam0 < 27258)
  	{
  		iVar20 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 26810), false, true, iParam2, "_CASINOPSTAT_BOOL");
  		iVar1 = ((iParam0 - 26810) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 26810)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar20, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 28098 && iParam0 < 28354)
  	{
  		iVar21 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 28098), false, true, iParam2, "_CASINOHSTPSTAT_BOOL");
  		iVar1 = ((iParam0 - 28098) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 28098)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar21, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 28355 && iParam0 < 28483)
  	{
  		iVar22 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 28355), false, true, iParam2, "_HEIST3TATTOOSTAT_BOOL");
  		iVar1 = ((iParam0 - 28355) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 28355)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar22, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 30227 && iParam0 < 30355)
  	{
  		iVar23 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 30227), false, true, iParam2, "_SU20PSTAT_BOOL");
  		iVar1 = ((iParam0 - 30227) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 30227)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar23, bParam1, iVar1, bParam3);
  	}
  	else if (iParam0 >= 30355 && iParam0 < 30483)
  	{
  		iVar24 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 30355), false, true, iParam2, "_SU20TATTOOSTAT_BOOL");
  		iVar1 = ((iParam0 - 30355) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 30355)) * 64);
  		bVar0 = STATS::STAT_SET_BOOL_MASKED(iVar24, bParam1, iVar1, bParam3);
  	}
  	return bVar0;
  }
  
  void func_68(int iParam0)
  {
  	func_90(93, iParam0);
  	func_90(29, iParam0);
  	func_90(30, iParam0);
  }
  
  bool func_69(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	int iVar11;
  	
  	if (iParam0 == 8)
  	{
  		return func_71(129, -1, -1);
  	}
  	if (iParam0 == 9)
  	{
  		return func_71(135, -1, -1);
  	}
  	if (iParam0 == 10)
  	{
  		return func_71(136, -1, -1);
  	}
  	if (iParam0 == 11)
  	{
  		return func_71(137, -1, -1);
  	}
  	if (iParam0 == 12)
  	{
  		iVar0 = NETWORK::GET_CLOUD_TIME_AS_INT();
  		iVar1 = func_70(8269, -1, 0);
  		if (iVar1 == 0 || iVar0 >= iVar1)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 13)
  	{
  		iVar2 = NETWORK::GET_CLOUD_TIME_AS_INT();
  		iVar3 = func_70(8270, -1, 0);
  		if (iVar3 == 0 || iVar2 >= iVar3)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 14)
  	{
  		iVar4 = NETWORK::GET_CLOUD_TIME_AS_INT();
  		iVar5 = func_70(8271, -1, 0);
  		if (iVar5 == 0 || iVar4 >= iVar5)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 15)
  	{
  		iVar6 = NETWORK::GET_CLOUD_TIME_AS_INT();
  		iVar7 = func_70(8272, -1, 0);
  		if (iVar7 == 0 || iVar6 >= iVar7)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 16)
  	{
  		iVar8 = NETWORK::GET_CLOUD_TIME_AS_INT();
  		iVar9 = func_70(8273, -1, 0);
  		if (iVar9 == 0 || iVar8 >= iVar9)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 17)
  	{
  		iVar10 = NETWORK::GET_CLOUD_TIME_AS_INT();
  		iVar11 = func_70(8274, -1, 0);
  		if (iVar11 == 0 || iVar10 >= iVar11)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		return MISC::IS_BIT_SET(Global_111638.f_20559.f_471, iParam0);
  	}
  	return MISC::IS_BIT_SET(Global_2097152[func_63() /*10930*/].f_6174.f_10, iParam0);
  }
  
  int func_70(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	var uVar1;
  	
  	if (iParam0 != 11511)
  	{
  		if (iParam2 == 0)
  		{
  		}
  		iVar0 = Global_2548434[iParam0 /*3*/][func_65(iParam1)];
  		if (STATS::STAT_GET_INT(iVar0, &uVar1, -1))
  		{
  			return uVar1;
  		}
  	}
  	return 0;
  }
  
  bool func_71(int iParam0, int iParam1, int iParam2)
  {
  	bool bVar0;
  	int iVar1;
  	int iVar2;
  	
  	bVar0 = false;
  	if (iParam1 == -1)
  	{
  		iParam1 = func_66();
  	}
  	iVar1 = func_73(iParam0, iParam1);
  	iVar2 = func_72(iParam0);
  	if (0 != iVar1)
  	{
  		bVar0 = STATS::STAT_GET_BOOL_MASKED(iVar1, iVar2, iParam2);
  	}
  	return bVar0;
  }
  
  int func_72(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	if (iParam0 >= 0 && iParam0 < 192)
  	{
  		iVar0 = ((iParam0 - 0) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 0)) * 64);
  	}
  	else if (iParam0 >= 192 && iParam0 < 384)
  	{
  		iVar0 = ((iParam0 - 192) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 192)) * 64);
  	}
  	else if (iParam0 >= 513 && iParam0 < 705)
  	{
  		iVar0 = ((iParam0 - 513) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 513)) * 64);
  	}
  	else if (iParam0 >= 705 && iParam0 < 1281)
  	{
  		iVar0 = ((iParam0 - 705) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 705)) * 64);
  	}
  	else if (iParam0 >= 2919 && iParam0 < 3111)
  	{
  		iVar0 = ((iParam0 - 2919) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 2919)) * 64);
  	}
  	else if (iParam0 >= 3111 && iParam0 < 3879)
  	{
  		iVar0 = ((iParam0 - 3111) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 3111)) * 64);
  	}
  	else if (iParam0 >= 4335 && iParam0 < 4399)
  	{
  		iVar0 = ((iParam0 - 4335) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 4335)) * 64);
  	}
  	else if (iParam0 >= 4207 && iParam0 < 4335)
  	{
  		iVar0 = ((iParam0 - 4207) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 4207)) * 64);
  	}
  	else if (iParam0 >= 6029 && iParam0 < 6413)
  	{
  		iVar0 = ((iParam0 - 6029) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 6029)) * 64);
  	}
  	else if (iParam0 >= 7385 && iParam0 < 7641)
  	{
  		iVar0 = ((iParam0 - 7385) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 7385)) * 64);
  	}
  	else if (iParam0 >= 7321 && iParam0 < 7385)
  	{
  		iVar0 = ((iParam0 - 7321) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 7321)) * 64);
  	}
  	else if (iParam0 >= 9361 && iParam0 < 9553)
  	{
  		iVar0 = ((iParam0 - 9361) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 9361)) * 64);
  	}
  	else if (iParam0 >= 15369 && iParam0 < 15561)
  	{
  		iVar0 = ((iParam0 - 15369) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 15369)) * 64);
  	}
  	else if (iParam0 >= 15562 && iParam0 < 15946)
  	{
  		iVar0 = ((iParam0 - 15562) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 15562)) * 64);
  	}
  	else if (iParam0 >= 15946 && iParam0 < 16010)
  	{
  		iVar0 = ((iParam0 - 15946) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 15946)) * 64);
  	}
  	else if (iParam0 >= 18098 && iParam0 < 18162)
  	{
  		iVar0 = ((iParam0 - 18098) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 18098)) * 64);
  	}
  	else if (iParam0 >= 22066 && iParam0 < 22194)
  	{
  		iVar0 = ((iParam0 - 22066) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 22066)) * 64);
  	}
  	else if (iParam0 >= 24962 && iParam0 < 25538)
  	{
  		iVar0 = ((iParam0 - 24962) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 24962)) * 64);
  	}
  	else if (iParam0 >= 26810 && iParam0 < 27258)
  	{
  		iVar0 = ((iParam0 - 26810) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 26810)) * 64);
  	}
  	else if (iParam0 >= 28098 && iParam0 < 28354)
  	{
  		iVar0 = ((iParam0 - 28098) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 28098)) * 64);
  	}
  	else if (iParam0 >= 28355 && iParam0 < 28483)
  	{
  		iVar0 = ((iParam0 - 28355) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 28355)) * 64);
  	}
  	else if (iParam0 >= 30227 && iParam0 < 30355)
  	{
  		iVar0 = ((iParam0 - 30227) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 30227)) * 64);
  	}
  	else if (iParam0 >= 30355 && iParam0 < 30483)
  	{
  		iVar0 = ((iParam0 - 30355) - STATS::_STAT_GET_PACKED_BOOL_MASK((iParam0 - 30355)) * 64);
  	}
  	return iVar0;
  }
  
  int func_73(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (iParam1 == -1)
  	{
  		iParam1 = func_66();
  	}
  	iVar0 = 0;
  	if (iParam0 >= 0 && iParam0 < 192)
  	{
  		iVar0 = STATS::GET_PACKED_BOOL_STAT_KEY((iParam0 - 0), false, true, iParam1);
  	}
  	else if (iParam0 >= 192 && iParam0 < 384)
  	{
  		iVar0 = STATS::GET_PACKED_BOOL_STAT_KEY((iParam0 - 192), true, true, iParam1);
  	}
  	else if (iParam0 >= 513 && iParam0 < 705)
  	{
  		iVar0 = STATS::GET_PACKED_BOOL_STAT_KEY((iParam0 - 513), false, false, 0);
  	}
  	else if (iParam0 >= 705 && iParam0 < 1281)
  	{
  		iVar0 = STATS::GET_PACKED_BOOL_STAT_KEY((iParam0 - 705), true, false, 0);
  	}
  	else if (iParam0 >= 2919 && iParam0 < 3111)
  	{
  		iVar0 = STATS::_GET_PACKED_TITLE_UPDATE_BOOL_STAT_KEY((iParam0 - 2919), false, false, 0);
  	}
  	else if (iParam0 >= 3111 && iParam0 < 3879)
  	{
  		iVar0 = STATS::_GET_PACKED_TITLE_UPDATE_BOOL_STAT_KEY((iParam0 - 3111), false, true, iParam1);
  	}
  	else if (iParam0 >= 4335 && iParam0 < 4399)
  	{
  		iVar0 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 4335), false, false, 0, "_NGPSTAT_BOOL");
  	}
  	else if (iParam0 >= 4207 && iParam0 < 4335)
  	{
  		iVar0 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 4207), false, true, iParam1, "_NGPSTAT_BOOL");
  	}
  	else if (iParam0 >= 6029 && iParam0 < 6413)
  	{
  		iVar0 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 6029), false, true, iParam1, "_NGTATPSTAT_BOOL");
  	}
  	else if (iParam0 >= 7321 && iParam0 < 7385)
  	{
  		iVar0 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 7321), false, false, 0, "_NGDLCPSTAT_BOOL");
  	}
  	else if (iParam0 >= 7385 && iParam0 < 7641)
  	{
  		iVar0 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 7385), false, true, iParam1, "_NGDLCPSTAT_BOOL");
  	}
  	else if (iParam0 >= 9361 && iParam0 < 9553)
  	{
  		iVar0 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 9361), false, true, iParam1, "_DLCBIKEPSTAT_BOOL");
  	}
  	else if (iParam0 >= 15369 && iParam0 < 15561)
  	{
  		iVar0 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 15369), false, true, iParam1, "_DLCGUNPSTAT_BOOL");
  	}
  	else if (iParam0 >= 15562 && iParam0 < 15946)
  	{
  		iVar0 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 15562), false, true, iParam1, "_GUNTATPSTAT_BOOL");
  	}
  	else if (iParam0 >= 15946 && iParam0 < 16010)
  	{
  		iVar0 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 15946), false, true, iParam1, "_DLCSMUGCHARPSTAT_BOOL");
  	}
  	else if (iParam0 >= 18098 && iParam0 < 18162)
  	{
  		iVar0 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 18098), false, true, iParam1, "_GANGOPSPSTAT_BOOL");
  	}
  	else if (iParam0 >= 22066 && iParam0 < 22194)
  	{
  		iVar0 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 22066), false, true, iParam1, "_BUSINESSBATPSTAT_BOOL");
  	}
  	else if (iParam0 >= 24962 && iParam0 < 25538)
  	{
  		iVar0 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 24962), false, true, iParam1, "_ARENAWARSPSTAT_BOOL");
  	}
  	else if (iParam0 >= 26810 && iParam0 < 27258)
  	{
  		iVar0 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 26810), false, true, iParam1, "_CASINOPSTAT_BOOL");
  	}
  	else if (iParam0 >= 28098 && iParam0 < 28354)
  	{
  		iVar0 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 28098), false, true, iParam1, "_CASINOHSTPSTAT_BOOL");
  	}
  	else if (iParam0 >= 28355 && iParam0 < 28483)
  	{
  		iVar0 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 28355), false, true, iParam1, "_HEIST3TATTOOSTAT_BOOL");
  	}
  	else if (iParam0 >= 30227 && iParam0 < 30355)
  	{
  		iVar0 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 30227), false, true, iParam1, "_SU20PSTAT_BOOL");
  	}
  	else if (iParam0 >= 30355 && iParam0 < 30483)
  	{
  		iVar0 = STATS::_GET_NGSTAT_BOOL_HASH((iParam0 - 30355), false, true, iParam1, "_SU20TATTOOSTAT_BOOL");
  	}
  	return iVar0;
  }
  
  int func_74(bool bParam0)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	iVar1 = 0;
  	if (PLAYER::HAS_ACHIEVEMENT_BEEN_PASSED(27))
  	{
  		return 0;
  	}
  	if (STATS::STAT_GET_INT(joaat("SP0_MONEY_TOTAL_SPENT"), &iVar0, -1))
  	{
  		iVar1 = (iVar1 + iVar0);
  	}
  	if (STATS::STAT_GET_INT(joaat("SP1_MONEY_TOTAL_SPENT"), &iVar0, -1))
  	{
  		iVar1 = (iVar1 + iVar0);
  	}
  	if (STATS::STAT_GET_INT(joaat("SP2_MONEY_TOTAL_SPENT"), &iVar0, -1))
  	{
  		iVar1 = (iVar1 + iVar0);
  	}
  	if (bParam0)
  	{
  	}
  	iVar2 = 0;
  	STATS::STAT_GET_INT(joaat("NUM_CASH_SPENT"), &iVar2, -1);
  	if (iVar1 > 0 && (iVar2 / 2000000) != (iVar1 / 2000000))
  	{
  		STATS::STAT_SET_INT(joaat("NUM_CASH_SPENT"), iVar1, true);
  		func_88(27, iVar1);
  	}
  	if (iVar1 < 200000000)
  	{
  		return 0;
  	}
  	func_75(27, 1);
  	return 1;
  }
  
  int func_75(int iParam0, int iParam1)
  {
  	if (iParam0 >= 78)
  	{
  		return 0;
  	}
  	return func_76(iParam0, iParam1);
  }
  
  int func_76(int iParam0, int iParam1)
  {
  	if (func_12(14) && !func_87(iParam0))
  	{
  		return 0;
  	}
  	if (PLAYER::HAS_ACHIEVEMENT_BEEN_PASSED(iParam0) && iParam1 == 1)
  	{
  		return 0;
  	}
  	if (Global_31017 != 0 && !Global_76622)
  	{
  		return 0;
  	}
  	if (func_86(&Global_4270065))
  	{
  		if (func_84(&Global_4270065, iParam0))
  		{
  			return 0;
  		}
  		if (func_77(&Global_4270065, iParam0))
  		{
  			return 1;
  		}
  	}
  	else
  	{
  		if (!PLAYER::GIVE_ACHIEVEMENT_TO_PLAYER(iParam0))
  		{
  			return 0;
  		}
  		if (PLAYER::HAS_ACHIEVEMENT_BEEN_PASSED(iParam0))
  		{
  			return 1;
  		}
  		return 0;
  	}
  	return 0;
  }
  
  int func_77(var uParam0, int iParam1)
  {
  	int iVar0;
  	var uVar1[78];
  	
  	if (PLAYER::HAS_ACHIEVEMENT_BEEN_PASSED(iParam1))
  	{
  		return 0;
  	}
  	if (func_12(14) && !func_87(iParam1))
  	{
  		return 0;
  	}
  	if (func_84(uParam0, iParam1))
  	{
  		return 0;
  	}
  	if (func_83(uParam0) < 0f)
  	{
  		func_82(uParam0, 0);
  	}
  	func_80(&uVar1);
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < (*uParam0 - 1))
  	{
  		uVar1[iVar0 + 1] = (*uParam0)[iVar0];
  		iVar0++;
  	}
  	func_78(&uVar1, iParam1);
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		(*uParam0)[iVar0] = uVar1[iVar0];
  		iVar0++;
  	}
  	return 1;
  }
  
  int func_78(var uParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (PLAYER::HAS_ACHIEVEMENT_BEEN_PASSED(iParam1))
  	{
  		return 0;
  	}
  	if (func_12(14) && !func_87(iParam1))
  	{
  		return 0;
  	}
  	if (func_84(uParam0, iParam1))
  	{
  		return 0;
  	}
  	if (func_83(uParam0) < 0f)
  	{
  		func_82(uParam0, 0);
  	}
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		if (func_79(uParam0, iVar0))
  		{
  			(*uParam0)[iVar0] = iParam1;
  			return 1;
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  bool func_79(var uParam0, int iParam1)
  {
  	return (*uParam0)[iParam1] == 78;
  }
  
  void func_80(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		func_81(uParam0, iVar0);
  		iVar0++;
  	}
  	func_82(uParam0, (Global_4270064 - 0.5f));
  }
  
  void func_81(var uParam0, int iParam1)
  {
  	(*uParam0)[iParam1] = 78;
  }
  
  void func_82(var uParam0, float fParam1)
  {
  	if (fParam1 == 0f)
  	{
  		uParam0->f_80 = 0f;
  	}
  	else
  	{
  		uParam0->f_80 = fParam1;
  	}
  }
  
  float func_83(var uParam0)
  {
  	return uParam0->f_80;
  }
  
  bool func_84(var uParam0, int iParam1)
  {
  	return func_85(uParam0, iParam1) != -1;
  }
  
  int func_85(var uParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		if ((*uParam0)[iVar0] == iParam1)
  		{
  			return iVar0;
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  bool func_86(var uParam0)
  {
  	return uParam0->f_79 == 1;
  }
  
  int func_87(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 60:
  		case 61:
  		case 62:
  		case 63:
  		case 64:
  		case 65:
  		case 66:
  		case 67:
  		case 68:
  		case 69:
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_88(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (iParam0 < 0)
  	{
  		return 0;
  	}
  	if (iParam0 > 78)
  	{
  		return 0;
  	}
  	if (iParam1 <= 0 || iParam1 > 100)
  	{
  		return 0;
  	}
  	iVar0 = PLAYER::_GET_ACHIEVEMENT_PROGRESS(iParam0);
  	if (iParam1 > iVar0)
  	{
  		return PLAYER::_SET_ACHIEVEMENT_PROGRESS(iParam0, iParam1);
  	}
  	return 0;
  }
  
  void func_89(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	STATS::STAT_GET_INT(iParam0, &iVar0, -1);
  	iVar0 = (iVar0 + iParam1);
  	STATS::STAT_SET_INT(iParam0, iVar0, true);
  }
  
  void func_90(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (iParam1 < 1)
  	{
  		return;
  	}
  	if (Global_57254[iParam0 /*7*/].f_2)
  	{
  		return;
  	}
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		return;
  	}
  	if (Global_57254[iParam0 /*7*/])
  	{
  		STATS::STAT_GET_INT(Global_57254[iParam0 /*7*/].f_1, &iVar0, -1);
  		iVar0 = (iVar0 + iParam1);
  		STATS::STAT_SET_INT(Global_57254[iParam0 /*7*/].f_1, iVar0, true);
  	}
  }
  
  void func_91()
  {
  	int iVar0;
  	
  	if (NETWORK::NETWORK_IS_SIGNED_IN())
  	{
  		STATS::STAT_GET_INT(joaat("SP0_TOTAL_CASH"), &iVar0, -1);
  		if (!Global_58686[0] == iVar0)
  		{
  			Global_58686[0] = iVar0;
  		}
  		STATS::STAT_GET_INT(joaat("SP1_TOTAL_CASH"), &iVar0, -1);
  		if (!Global_58686[1] == iVar0)
  		{
  			Global_58686[1] = iVar0;
  		}
  		STATS::STAT_GET_INT(joaat("SP2_TOTAL_CASH"), &iVar0, -1);
  		if (!Global_58686[2] == iVar0)
  		{
  			Global_58686[2] = iVar0;
  		}
  	}
  }
  
  int func_92(int iParam0)
  {
  	return Global_1798[iParam0 /*29*/].f_17;
  }
  
  bool func_93(var uParam0, int iParam1)
  {
  	return (uParam0 && iParam1) != 0;
  }
  
  float func_94()
  {
  	float fVar0;
  	
  	fVar0 = 0f;
  	if (func_93(Global_111638.f_19958.f_1, 8192))
  	{
  		fVar0 = (fVar0 + 0.2f);
  	}
  	if (func_93(Global_111638.f_19958.f_1, 16384))
  	{
  		fVar0 = (fVar0 + 0.2f);
  	}
  	if (func_93(Global_111638.f_19958.f_1, 32768))
  	{
  		fVar0 = (fVar0 + 0.2f);
  	}
  	if (func_93(Global_111638.f_19958.f_1, 65536))
  	{
  		fVar0 = (fVar0 + 0.1f);
  	}
  	if (func_93(Global_111638.f_19958.f_1, 131072))
  	{
  		fVar0 = (fVar0 + 0.1f);
  	}
  	if (func_93(Global_111638.f_19958.f_1, 262144))
  	{
  		fVar0 = (fVar0 + 0.1f);
  	}
  	if (func_93(Global_111638.f_19958.f_1, 524288))
  	{
  		fVar0 = (fVar0 + 0.333f);
  	}
  	if (func_93(Global_111638.f_19958.f_1, 1048576))
  	{
  		fVar0 = (fVar0 + 0.333f);
  	}
  	if (func_93(Global_111638.f_19958.f_1, 2097152))
  	{
  		fVar0 = (fVar0 + 0.333f);
  	}
  	return fVar0;
  }
  
  void func_95(bool bParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	var uVar2;
  	
  	if (!Global_61514)
  	{
  		Global_61514 = iParam1;
  	}
  	if (bParam0)
  	{
  		if ((func_18(0) && Global_76868.f_1 == 1) && func_96(Global_76868))
  		{
  		}
  		else
  		{
  			Global_61512 = 1;
  		}
  	}
  	if (Global_111638.f_9080 || func_18(0))
  	{
  		iVar0 = func_17();
  		iVar1 = Global_89496[iVar0 /*5*/];
  		uVar2 = Global_76891.f_109[iVar1 /*4*/];
  		if (iVar0 == -1)
  		{
  			if (Global_111638.f_9080)
  			{
  			}
  			return;
  		}
  		if (MISC::IS_BIT_SET(Global_89496[iVar0 /*5*/].f_1, 4))
  		{
  			return;
  		}
  		if (MISC::IS_BIT_SET(Global_89496[iVar0 /*5*/].f_1, 5))
  		{
  			return;
  		}
  		MISC::SET_BIT(&(Global_89496[iVar0 /*5*/].f_1), 4);
  		MISC::SET_BIT(&Global_76870, 1);
  		Global_76886 = uVar2;
  		Global_76887 = MISC::GET_GAME_TIMER();
  	}
  }
  
  int func_96(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 71:
  			return 1;
  			break;
  		
  		case 86:
  			return 1;
  			break;
  		
  		case 91:
  			return 1;
  			break;
  		
  		default:
  			return 0;
  			break;
  	}
  	return 0;
  }
  
  void func_97()
  {
  	func_515(&(Global_111638.f_19958.f_1), 2048);
  }
  
  void func_98(var uParam0)
  {
  	if (uParam0->f_1 != 0)
  	{
  		GRAPHICS::SET_SCALEFORM_MOVIE_AS_NO_LONGER_NEEDED(&(uParam0->f_1));
  		uParam0->f_1 = 0;
  	}
  	if (uParam0->f_562 && uParam0->f_4 != 0)
  	{
  		if (MISC::IS_PC_VERSION())
  		{
  			GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(uParam0->f_4, "TOGGLE_MOUSE_BUTTONS");
  			GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(false);
  			GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  		}
  		GRAPHICS::SET_SCALEFORM_MOVIE_AS_NO_LONGER_NEEDED(&(uParam0->f_4));
  		uParam0->f_4 = 0;
  	}
  	if (uParam0->f_564)
  	{
  		SCRIPT::SET_NO_LOADING_SCREEN(false);
  		uParam0->f_564 = 0;
  	}
  	if (!Global_76890)
  	{
  		if (!PLAYER::IS_PLAYER_DEAD(PLAYER::GET_PLAYER_INDEX()))
  		{
  			if (!Global_76891)
  			{
  				if (CAM::IS_SCREEN_FADED_OUT() && !func_18(0))
  				{
  					CAM::DO_SCREEN_FADE_IN(800);
  				}
  			}
  		}
  	}
  	func_99(0);
  }
  
  void func_99(int iParam0)
  {
  	Global_76882 = iParam0;
  	Global_76883 = iParam0;
  }
  
  void func_100(var uParam0)
  {
  	if (uParam0->f_561 || uParam0->f_572 <= uParam0->f_558)
  	{
  		uParam0->f_561 = 0;
  		uParam0->f_558 = (uParam0->f_572 - 1);
  	}
  }
  
  void func_101(var uParam0, float fParam1, int iParam2, bool bParam3, bool bParam4, float fParam5)
  {
  	int iVar0;
  	int iVar1;
  	bool bVar2;
  	char* sVar3;
  	bool bVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	float fVar8;
  	
  	if (((CAM::IS_SCREEN_FADING_OUT() || CAM::IS_SCREEN_FADING_IN()) || CAM::IS_SCREEN_FADED_OUT()) || MISC::IS_FRONTEND_FADING())
  	{
  		if (!bParam3)
  		{
  			return;
  		}
  	}
  	if (!func_108(uParam0))
  	{
  		return;
  	}
  	HUD::HIDE_LOADING_ON_FADE_THIS_FRAME();
  	GRAPHICS::SET_SCRIPT_GFX_DRAW_ORDER(iParam2);
  	if (!func_107(uParam0->f_1, 256) || (func_107(uParam0->f_1, 8192) && PAD::_0x6CD79468A1E595C6(2)))
  	{
  		GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(*uParam0, "SET_CLEAR_SPACE");
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_FLOAT(fParam1);
  		GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  		GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(*uParam0, "SET_MAX_WIDTH");
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_FLOAT(fParam5);
  		GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  		GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(*uParam0, "SET_DATA_SLOT_EMPTY");
  		GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  		if (MISC::IS_PC_VERSION())
  		{
  			GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(*uParam0, "TOGGLE_MOUSE_BUTTONS");
  			GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(func_107(uParam0->f_1, 4096));
  			GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  		}
  		iVar5 = 0;
  		iVar6 = 0;
  		while (iVar6 < uParam0->f_123)
  		{
  			switch (uParam0->f_2[iVar6 /*15*/].f_2)
  			{
  				case 0:
  					bVar4 = true;
  					break;
  				
  				case 1:
  					bVar4 = PAD::_IS_USING_KEYBOARD(2);
  					break;
  				
  				case 2:
  					bVar4 = !PAD::_IS_USING_KEYBOARD(2);
  					break;
  				
  				default:
  					bVar4 = false;
  					break;
  			}
  			if (bVar4)
  			{
  				if (GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(*uParam0, "SET_DATA_SLOT"))
  				{
  					GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar5);
  					iVar5++;
  					iVar7 = 0;
  					while (iVar7 < uParam0->f_2[iVar6 /*15*/].f_14)
  					{
  						iVar0 = uParam0->f_2[iVar6 /*15*/].f_3[iVar7 /*2*/];
  						iVar1 = uParam0->f_2[iVar6 /*15*/].f_3[iVar7 /*2*/].f_1;
  						bVar2 = MISC::IS_BIT_SET(uParam0->f_2[iVar6 /*15*/].f_13, iVar7);
  						if (!MISC::IS_BIT_SET(uParam0->f_2[iVar6 /*15*/].f_12, iVar7))
  						{
  							sVar3 = PAD::GET_CONTROL_INSTRUCTIONAL_BUTTON(iVar0, iVar1, bVar2);
  						}
  						else
  						{
  							sVar3 = PAD::GET_CONTROL_GROUP_INSTRUCTIONAL_BUTTON(iVar0, iVar1, bVar2);
  						}
  						if (!MISC::IS_STRING_NULL_OR_EMPTY(sVar3))
  						{
  							func_106(sVar3);
  						}
  						iVar7++;
  					}
  					if (!MISC::IS_STRING_NULL_OR_EMPTY(uParam0->f_2[iVar6 /*15*/]))
  					{
  						func_105(uParam0->f_2[iVar6 /*15*/]);
  					}
  					if (MISC::IS_PC_VERSION())
  					{
  						if (func_107(uParam0->f_1, 4096))
  						{
  							if (uParam0->f_2[iVar6 /*15*/].f_1)
  							{
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(true);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(uParam0->f_2[iVar6 /*15*/].f_3[0 /*2*/].f_1);
  							}
  							else
  							{
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(false);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(-1);
  							}
  						}
  					}
  					GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  				}
  			}
  			iVar6++;
  		}
  		fVar8 = func_104(bParam4, func_104(func_107(uParam0->f_1, 32), 1f, 0f), -1f);
  		GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(*uParam0, "DRAW_INSTRUCTIONAL_BUTTONS");
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_FLOAT(fVar8);
  		GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  		GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(*uParam0, "SET_BACKGROUND_COLOUR");
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_FLOAT(0f);
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_FLOAT(0f);
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_FLOAT(0f);
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_FLOAT(80f);
  		GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  		func_103(&(uParam0->f_1), 256);
  		func_102(&(uParam0->f_1), 128);
  	}
  	GRAPHICS::DRAW_SCALEFORM_MOVIE_FULLSCREEN(*uParam0, 255, 255, 255, 0, 0);
  }
  
  void func_102(var uParam0, int iParam1)
  {
  	*uParam0 = (*uParam0 - (*uParam0 && iParam1));
  }
  
  void func_103(var uParam0, int iParam1)
  {
  	*uParam0 = (*uParam0 || iParam1);
  }
  
  float func_104(bool bParam0, float fParam1, float fParam2)
  {
  	if (bParam0)
  	{
  		return fParam1;
  	}
  	return fParam2;
  }
  
  void func_105(char* sParam0)
  {
  	GRAPHICS::BEGIN_TEXT_COMMAND_SCALEFORM_STRING(sParam0);
  	GRAPHICS::END_TEXT_COMMAND_SCALEFORM_STRING();
  }
  
  void func_106(char* sParam0)
  {
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_PLAYER_NAME_STRING(sParam0);
  }
  
  bool func_107(var uParam0, int iParam1)
  {
  	return (uParam0 && iParam1) != 0;
  }
  
  int func_108(var uParam0)
  {
  	if (*uParam0 != 0)
  	{
  		if (GRAPHICS::HAS_SCALEFORM_MOVIE_LOADED(*uParam0))
  		{
  			func_103(&(uParam0->f_1), 1);
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_109(var uParam0, bool bParam1, float fParam2, bool bParam3, int iParam4, bool bParam5)
  {
  	bool bVar0;
  	
  	if (MISC::GET_FRAME_COUNT() == uParam0->f_574)
  	{
  		return uParam0->f_575;
  	}
  	uParam0->f_574 = MISC::GET_FRAME_COUNT();
  	if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		if (PED::IS_PED_DEAD_OR_DYING(PLAYER::GET_PLAYER_PED(PLAYER::GET_PLAYER_INDEX()), true))
  		{
  			uParam0->f_575 = 1;
  			return 1;
  		}
  		if (TASK::IS_PED_BEING_ARRESTED(PLAYER::GET_PLAYER_PED(PLAYER::GET_PLAYER_INDEX())))
  		{
  			uParam0->f_575 = 1;
  			return 1;
  		}
  	}
  	if (!uParam0->f_564)
  	{
  		if (CAM::IS_SCREEN_FADED_OUT() || CAM::IS_SCREEN_FADING_OUT())
  		{
  			SCRIPT::SET_NO_LOADING_SCREEN(true);
  			uParam0->f_564 = 1;
  		}
  	}
  	if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  	{
  		if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  		{
  			if (PLAYER::IS_SPECIAL_ABILITY_ACTIVE(PLAYER::PLAYER_ID(), 0))
  			{
  				PLAYER::SPECIAL_ABILITY_DEACTIVATE(PLAYER::PLAYER_ID(), 0);
  			}
  		}
  	}
  	HUD::HIDE_HUD_COMPONENT_THIS_FRAME(7);
  	HUD::HIDE_HUD_COMPONENT_THIS_FRAME(8);
  	HUD::HIDE_HUD_COMPONENT_THIS_FRAME(9);
  	HUD::HIDE_HUD_COMPONENT_THIS_FRAME(6);
  	HUD::HIDE_HUD_COMPONENT_THIS_FRAME(19);
  	PAD::DISABLE_CONTROL_ACTION(2, 19, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 37, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 21, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 28, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 29, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 171, true);
  	func_131(0);
  	if (PAD::_IS_USING_KEYBOARD(2))
  	{
  		if (PLAYER::_IS_PLAYER_CAM_CONTROL_DISABLED() || (CAM::IS_SCREEN_FADED_OUT() && !CAM::IS_SCREEN_FADING_IN()))
  		{
  			HUD::_SET_MOUSE_CURSOR_ACTIVE_THIS_FRAME();
  		}
  	}
  	Global_41981 = 1;
  	if (!uParam0->f_563)
  	{
  		switch (func_14(PLAYER::GET_PLAYER_PED(PLAYER::GET_PLAYER_INDEX())))
  		{
  			case 1:
  				GRAPHICS::ANIMPOSTFX_PLAY("SuccessFranklin", 1000, false);
  				break;
  			
  			case 2:
  				GRAPHICS::ANIMPOSTFX_PLAY("SuccessTrevor", 1000, false);
  				break;
  			
  			default:
  				GRAPHICS::ANIMPOSTFX_PLAY("SuccessMichael", 1000, false);
  				break;
  		}
  		uParam0->f_563 = 1;
  	}
  	if (uParam0->f_558 == 0)
  	{
  		uParam0->f_558 = (uParam0->f_572 + SYSTEM::FLOOR((15000f * fParam2)));
  	}
  	if (iParam4 && uParam0->f_572 >= (uParam0->f_558 - 1500))
  	{
  		uParam0->f_558 = uParam0->f_572 + 3000;
  	}
  	if (uParam0->f_560 == 0f)
  	{
  		uParam0->f_560 = (uParam0->f_560 + func_130(30f));
  		uParam0->f_560 = (uParam0->f_560 + (IntToFloat(uParam0->f_56) * func_130(25f)));
  		if (uParam0->f_56 > 0)
  		{
  			uParam0->f_560 = (uParam0->f_560 + func_130((25f * 0.5f)));
  		}
  		if (uParam0->f_549)
  		{
  			uParam0->f_560 = (uParam0->f_560 + (func_130(30f) - func_130(2f)));
  		}
  	}
  	bVar0 = true;
  	while (bVar0)
  	{
  		func_99(1);
  		uParam0->f_572 = (uParam0->f_572 + SYSTEM::ROUND((0f + (1000f * SYSTEM::TIMESTEP()))));
  		func_112(uParam0, fParam2, bParam3);
  		if (IntToFloat(uParam0->f_572) > (IntToFloat(uParam0->f_558 + 666) - (15000f * fParam2)))
  		{
  			if (uParam0->f_30 < 1f)
  			{
  				uParam0->f_30 = (uParam0->f_30 + (0f + ((1f / 0.225f) * SYSTEM::TIMESTEP())));
  			}
  		}
  		uParam0->f_30 = func_111(uParam0->f_30, 0f, 1f);
  		if (uParam0->f_572 > (uParam0->f_558 - 333))
  		{
  			if (!uParam0->f_561)
  			{
  				if (uParam0->f_565)
  				{
  					uParam0->f_565 = 0;
  					uParam0->f_566 = 0;
  					uParam0->f_573 = 0.75f;
  					GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(uParam0->f_1, "ROLL_UP_BACKGROUND");
  					GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  				}
  				uParam0->f_547 = (uParam0->f_547 - (0f + ((1f / 1.215f) * SYSTEM::TIMESTEP())));
  			}
  		}
  		uParam0->f_547 = func_111(uParam0->f_547, 0f, 1f);
  		if ((uParam0->f_547 <= 0.7f && !uParam0->f_545) && uParam0->f_1 != 0)
  		{
  			GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(uParam0->f_1, "TRANSITION_OUT");
  			GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  			uParam0->f_546 = uParam0->f_572;
  			uParam0->f_545 = 1;
  		}
  		if (uParam0->f_572 > (uParam0->f_558 - 333))
  		{
  			if (!uParam0->f_561)
  			{
  				if (uParam0->f_548 < 1f)
  				{
  					uParam0->f_548 = (uParam0->f_548 + (0f + ((1f / 0.3f) * SYSTEM::TIMESTEP())));
  				}
  			}
  		}
  		uParam0->f_548 = func_111(uParam0->f_548, 0f, 1f);
  		if (uParam0->f_562)
  		{
  			if (PAD::_0x6CD79468A1E595C6(2))
  			{
  				if (GRAPHICS::HAS_SCALEFORM_MOVIE_LOADED(uParam0->f_4))
  				{
  					if (!uParam0->f_567)
  					{
  						func_110(uParam0, (!uParam0->f_565 && uParam0->f_56 > 0));
  					}
  				}
  			}
  		}
  		if (PAD::IS_CONTROL_JUST_PRESSED(2, 216) && uParam0->f_558 > uParam0->f_572 + 333)
  		{
  			if (((!uParam0->f_566 && uParam0->f_56 != 0) && GRAPHICS::HAS_SCALEFORM_MOVIE_LOADED(uParam0->f_4)) && IntToFloat(uParam0->f_572) > (IntToFloat(uParam0->f_558 + 1165) - (15000f * fParam2)))
  			{
  				if (!uParam0->f_565)
  				{
  					GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(uParam0->f_1, "ROLL_DOWN_BACKGROUND");
  					GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  					uParam0->f_565 = 1;
  					uParam0->f_573 = 0.75f;
  					if (uParam0->f_572 > (uParam0->f_558 - 5000))
  					{
  						uParam0->f_558 = uParam0->f_572 + 5000;
  					}
  				}
  				else if (bParam5)
  				{
  					GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(uParam0->f_1, "ROLL_UP_BACKGROUND");
  					GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  					uParam0->f_565 = 0;
  					uParam0->f_573 = 0.75f;
  				}
  				func_110(uParam0, (!uParam0->f_565 && uParam0->f_56 > 0));
  			}
  		}
  		if ((uParam0->f_565 || uParam0->f_566) && uParam0->f_56 != 0)
  		{
  			if (IntToFloat(uParam0->f_572) > (IntToFloat(uParam0->f_558 + 1165) - (15000f * fParam2)))
  			{
  				if (uParam0->f_566 && !uParam0->f_565)
  				{
  					uParam0->f_565 = 1;
  					uParam0->f_573 = 0.75f;
  					GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(uParam0->f_1, "ROLL_DOWN_BACKGROUND");
  					GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  				}
  				uParam0->f_559 = func_111((uParam0->f_559 + (((1f / 0.3f) * uParam0->f_573) * SYSTEM::TIMESTEP())), 0f, 1f);
  				uParam0->f_573 = func_111((uParam0->f_573 + 0.07f), 0.75f, 1.15f);
  			}
  		}
  		else
  		{
  			uParam0->f_559 = func_111((uParam0->f_559 - ((((1f / 0.3f) * uParam0->f_573) * 0.01f) * SYSTEM::TIMESTEP())), 0f, 1f);
  			uParam0->f_573 = func_111((uParam0->f_573 + 0.07f), 0.75f, 1.15f);
  		}
  		if (uParam0->f_572 > uParam0->f_558)
  		{
  			if (uParam0->f_561)
  			{
  				if (!uParam0->f_567)
  				{
  					if (PAD::IS_CONTROL_JUST_PRESSED(2, 215))
  					{
  						uParam0->f_561 = 0;
  					}
  				}
  			}
  			else if ((uParam0->f_572 - uParam0->f_546) > 1000 && uParam0->f_545)
  			{
  				bVar0 = false;
  			}
  		}
  		uParam0->f_575 = !bVar0;
  		if (bParam1)
  		{
  			SYSTEM::WAIT(0);
  		}
  		else
  		{
  			if (!bVar0)
  			{
  				func_99(0);
  			}
  			return !bVar0;
  		}
  	}
  	func_99(0);
  	return 1;
  }
  
  void func_110(var uParam0, bool bParam1)
  {
  	GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(uParam0->f_4, "CLEAR_ALL");
  	GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  	if (MISC::IS_PC_VERSION())
  	{
  		GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(uParam0->f_4, "TOGGLE_MOUSE_BUTTONS");
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(true);
  		GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  	}
  	GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(uParam0->f_4, "SET_DATA_SLOT");
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(0);
  	func_106(PAD::GET_CONTROL_INSTRUCTIONAL_BUTTON(2, 215, true));
  	func_105("ES_HELP");
  	if (MISC::IS_PC_VERSION())
  	{
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(true);
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(215);
  	}
  	GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  	if (bParam1)
  	{
  		GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(uParam0->f_4, "SET_DATA_SLOT");
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(1);
  		func_106(PAD::GET_CONTROL_INSTRUCTIONAL_BUTTON(2, 216, true));
  		func_105("ES_XPAND");
  		if (MISC::IS_PC_VERSION())
  		{
  			GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(true);
  			GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(216);
  		}
  		GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  	}
  	GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(uParam0->f_4, "DRAW_INSTRUCTIONAL_BUTTONS");
  	GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  }
  
  float func_111(float fParam0, float fParam1, float fParam2)
  {
  	if (fParam0 > fParam2)
  	{
  		return fParam2;
  	}
  	else if (fParam0 < fParam1)
  	{
  		return fParam1;
  	}
  	return fParam0;
  }
  
  void func_112(var uParam0, float fParam1, bool bParam2)
  {
  	int iVar0;
  	float fVar1;
  	float fVar2;
  	float fVar3;
  	float fVar4;
  	float fVar5;
  	float fVar6;
  	float fVar7;
  	float fVar8;
  	float fVar9;
  	float fVar10;
  	float fVar11;
  	float fVar12;
  	int iVar13;
  	int iVar14;
  	int iVar15;
  	int iVar16;
  	int iVar17;
  	float fVar18;
  	float fVar19;
  	float fVar20;
  	float fVar21;
  	float fVar22;
  	char cVar23[16];
  	char cVar24[32];
  	int iVar25;
  	int iVar26;
  	int iVar27;
  	int iVar28;
  	float fVar29;
  	float fVar30;
  	float fVar31;
  	float fVar32;
  	float fVar33;
  	
  	iVar0 = SYSTEM::ROUND((uParam0->f_547 * 255f));
  	fVar1 = (func_129() * 0.25f);
  	if (GRAPHICS::HAS_SCALEFORM_MOVIE_LOADED(uParam0->f_1))
  	{
  		if (uParam0->f_30 >= 0f)
  		{
  			if (!uParam0->f_2)
  			{
  				GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(uParam0->f_1, "SHOW_MISSION_PASSED_MESSAGE");
  				func_105(&(uParam0->f_5));
  				if (uParam0->f_556 == 4)
  				{
  					func_128(&(uParam0->f_13));
  				}
  				else
  				{
  					func_105(&(uParam0->f_13));
  				}
  				if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  				{
  					GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(150);
  				}
  				else
  				{
  					GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(100);
  				}
  				GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(true);
  				if (uParam0->f_556 == 4)
  				{
  					GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT((uParam0->f_56 - 1));
  				}
  				else
  				{
  					GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(uParam0->f_56);
  				}
  				GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(bParam2);
  				if (uParam0->f_556 == 4 || uParam0->f_556 == 3)
  				{
  					GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(2);
  				}
  				else
  				{
  					GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(69);
  				}
  				GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  				uParam0->f_2 = 1;
  			}
  			if ((uParam0->f_56 > 0 && !uParam0->f_3) && uParam0->f_572 > 600)
  			{
  				GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(uParam0->f_1, "TRANSITION_UP");
  				GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_FLOAT(0.15f);
  				GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(true);
  				GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  				uParam0->f_3 = 1;
  			}
  		}
  		func_127();
  		GRAPHICS::DRAW_SCALEFORM_MOVIE_FULLSCREEN(uParam0->f_1, 255, 255, 255, 255, 0);
  	}
  	fVar2 = ((uParam0->f_560 * uParam0->f_559) * (1f - uParam0->f_548));
  	fVar3 = 0f;
  	if (uParam0->f_567)
  	{
  		fVar3 = (((0.1388889f + func_130((2f * 2f))) * uParam0->f_568) * (1f - uParam0->f_548));
  		fVar2 = (fVar2 + (3f * fVar3));
  	}
  	if (uParam0->f_548 != 0f)
  	{
  		fVar4 = 0f;
  		if (fVar2 < fVar4)
  		{
  			fVar2 = fVar4;
  		}
  	}
  	else
  	{
  		fVar5 = 0f;
  		if (uParam0->f_30 >= 0.975f)
  		{
  			if (fVar2 < fVar5)
  			{
  				fVar2 = fVar5;
  			}
  		}
  	}
  	fVar1 = (0.3f * func_129());
  	if (uParam0->f_12)
  	{
  		fVar1 = 0.5f;
  	}
  	fVar6 = (*uParam0 * 2f);
  	if (uParam0->f_556 != 4)
  	{
  		fVar7 = func_126(&(uParam0->f_13));
  		if (fVar6 < fVar7)
  		{
  			fVar6 = (fVar7 + (3f * 0.006f));
  		}
  		if (GRAPHICS::_GET_ASPECT_RATIO(false) < 1.4f)
  		{
  			fVar6 = (fVar6 * 1.3f);
  		}
  		fVar7 = func_126(&(uParam0->f_550));
  		fVar8 = (((0.119f + 0.05f) / func_129()) / 2.5f);
  		if ((uParam0->f_556 == 1 || uParam0->f_556 == 0) && uParam0->f_557 != 0)
  		{
  			if (fVar6 < (fVar7 + (2.6f * fVar8)))
  			{
  				fVar6 = (fVar7 + (2.6f * fVar8));
  			}
  		}
  		else if (uParam0->f_556 == 5)
  		{
  			if (fVar6 < (fVar7 + (2.6f * fVar8)))
  			{
  				fVar6 = (fVar7 + (2.6f * fVar8));
  			}
  		}
  		else if (fVar6 < (fVar7 + (1.9f * fVar8)))
  		{
  			fVar6 = (fVar7 + (2f * fVar8));
  		}
  	}
  	fVar9 = ((0.499f - (fVar6 / 2f)) + 0.006f);
  	fVar10 = ((0.499f + (fVar6 / 2f)) - 0.006f);
  	PAD::SET_INPUT_EXCLUSIVE(2, 215);
  	PAD::SET_INPUT_EXCLUSIVE(2, 216);
  	PAD::SET_INPUT_EXCLUSIVE(2, 200);
  	PAD::DISABLE_CONTROL_ACTION(2, 200, true);
  	if (uParam0->f_562 || uParam0->f_567)
  	{
  		if ((IntToFloat(uParam0->f_558) - (14000f * fParam1)) < IntToFloat(uParam0->f_572) || ((uParam0->f_567 && uParam0->f_559 > 0.95f) && (uParam0->f_558 - 10000) < uParam0->f_572))
  		{
  			if (uParam0->f_567)
  			{
  				if (uParam0->f_570 < 0)
  				{
  					uParam0->f_570 = (uParam0->f_570 * -1);
  					uParam0->f_570 = (uParam0->f_572 + uParam0->f_570);
  				}
  				if (uParam0->f_570 > 0)
  				{
  					if ((uParam0->f_570 - uParam0->f_572) > 0)
  					{
  						func_40((uParam0->f_570 - uParam0->f_572), "TIMER_TIME", 0, 0, -1, 0, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, -1);
  					}
  					else
  					{
  						uParam0->f_570 = 0;
  						uParam0->f_569 = 1;
  						uParam0->f_567 = 0;
  						uParam0->f_561 = 0;
  						uParam0->f_562 = 0;
  						uParam0->f_558 = uParam0->f_572 + 500;
  						uParam0->f_570 = 0;
  					}
  				}
  				if (uParam0->f_568 < 1f)
  				{
  					uParam0->f_568 = (uParam0->f_568 + (0f + ((1f / 0.166f) * SYSTEM::TIMESTEP())));
  					if (uParam0->f_568 > 1f)
  					{
  						uParam0->f_568 = 1f;
  					}
  				}
  			}
  			if (CAM::IS_SCREEN_FADED_OUT())
  			{
  				HUD::HIDE_LOADING_ON_FADE_THIS_FRAME();
  			}
  			if ((uParam0->f_4 != 0 && uParam0->f_548 < 0.1f) && uParam0->f_572 <= uParam0->f_558)
  			{
  				HUD::HIDE_HUD_COMPONENT_THIS_FRAME(7);
  				HUD::HIDE_HUD_COMPONENT_THIS_FRAME(8);
  				HUD::HIDE_HUD_COMPONENT_THIS_FRAME(9);
  				HUD::HIDE_HUD_COMPONENT_THIS_FRAME(6);
  				GRAPHICS::DRAW_SCALEFORM_MOVIE_FULLSCREEN(uParam0->f_4, 255, 255, 255, iVar0, 0);
  			}
  			if (uParam0->f_567)
  			{
  				PAD::DISABLE_CONTROL_ACTION(0, 140, true);
  				PAD::DISABLE_CONTROL_ACTION(0, 141, true);
  				PAD::DISABLE_CONTROL_ACTION(0, 142, true);
  				PAD::DISABLE_CONTROL_ACTION(2, 188, true);
  				if (PAD::IS_DISABLED_CONTROL_JUST_PRESSED(2, 188))
  				{
  					AUDIO::PLAY_SOUND_FRONTEND(-1, "CONTINUE", "HUD_FRONTEND_DEFAULT_SOUNDSET", false);
  					uParam0->f_567 = 0;
  					uParam0->f_561 = 0;
  					uParam0->f_562 = 0;
  					uParam0->f_558 = uParam0->f_572 + 500;
  					uParam0->f_569 = 3;
  					uParam0->f_570 = 0;
  					AUDIO::PLAY_SOUND_FRONTEND(-1, "continue", "HUD_FRONTEND_DEFAULT_SOUNDSET", false);
  				}
  				PAD::DISABLE_CONTROL_ACTION(2, 187, true);
  				if (PAD::IS_DISABLED_CONTROL_JUST_PRESSED(2, 187))
  				{
  					AUDIO::PLAY_SOUND_FRONTEND(-1, "CONTINUE", "HUD_FRONTEND_DEFAULT_SOUNDSET", false);
  					uParam0->f_567 = 0;
  					uParam0->f_561 = 0;
  					uParam0->f_562 = 0;
  					uParam0->f_558 = uParam0->f_572 + 500;
  					uParam0->f_569 = 4;
  					uParam0->f_570 = 0;
  					AUDIO::PLAY_SOUND_FRONTEND(-1, "continue", "HUD_FRONTEND_DEFAULT_SOUNDSET", false);
  				}
  				PAD::DISABLE_CONTROL_ACTION(2, 202, true);
  				if (PAD::IS_DISABLED_CONTROL_JUST_PRESSED(2, 202))
  				{
  					AUDIO::PLAY_SOUND_FRONTEND(-1, "CONTINUE", "HUD_FRONTEND_DEFAULT_SOUNDSET", false);
  					uParam0->f_567 = 0;
  					uParam0->f_561 = 0;
  					uParam0->f_562 = 0;
  					uParam0->f_558 = uParam0->f_572 + 500;
  					uParam0->f_569 = 2;
  					uParam0->f_570 = 0;
  					AUDIO::PLAY_SOUND_FRONTEND(-1, "continue", "HUD_FRONTEND_DEFAULT_SOUNDSET", false);
  				}
  			}
  			else if (uParam0->f_562)
  			{
  				HUD::HIDE_HUD_COMPONENT_THIS_FRAME(7);
  				HUD::HIDE_HUD_COMPONENT_THIS_FRAME(8);
  				HUD::HIDE_HUD_COMPONENT_THIS_FRAME(9);
  				HUD::HIDE_HUD_COMPONENT_THIS_FRAME(6);
  				PAD::DISABLE_CONTROL_ACTION(0, 140, true);
  				PAD::DISABLE_CONTROL_ACTION(0, 141, true);
  				PAD::DISABLE_CONTROL_ACTION(0, 142, true);
  				if (PAD::IS_CONTROL_JUST_PRESSED(2, 215) || PAD::IS_DISABLED_CONTROL_JUST_PRESSED(2, 200))
  				{
  					AUDIO::PLAY_SOUND_FRONTEND(-1, "CONTINUE", "HUD_FRONTEND_DEFAULT_SOUNDSET", false);
  					uParam0->f_562 = 0;
  					uParam0->f_561 = 0;
  					uParam0->f_558 = uParam0->f_572 + 500;
  					AUDIO::PLAY_SOUND_FRONTEND(-1, "continue", "HUD_FRONTEND_DEFAULT_SOUNDSET", false);
  				}
  			}
  		}
  	}
  	HUD::GET_HUD_COLOUR(1, &iVar13, &iVar14, &iVar15, &iVar16);
  	HUD::SET_TEXT_COLOUR(iVar13, iVar14, iVar15, iVar0);
  	HUD::SET_TEXT_WRAP(fVar9, fVar10);
  	HUD::SET_TEXT_JUSTIFICATION(0);
  	HUD::SET_TEXT_SCALE(1f, 0.4f);
  	fVar1 = (fVar1 - func_130(6f));
  	fVar1 = (fVar1 + (func_130(30f) - func_130((2f * 2f))));
  	fVar11 = (fVar2 - func_130((2f * 14f)));
  	if (fVar11 >= 0f)
  	{
  		fVar12 = func_111((fVar11 / (0.6f * func_130(25f))), 0f, 1f);
  		func_127();
  		GRAPHICS::DRAW_RECT(0.5f, (fVar1 - (func_130((2f - 0.5f)) - 0.001388889f)), fVar6, func_125(1f), iVar13, iVar14, iVar15, SYSTEM::ROUND((fVar12 * IntToFloat(iVar16))), false);
  	}
  	else
  	{
  		return;
  	}
  	fVar1 = (fVar1 + func_130((2f * 0.3f)));
  	if (uParam0->f_56 > 0)
  	{
  		fVar1 = (fVar1 + func_130((25f * 0.2f)));
  	}
  	iVar17 = 0;
  	iVar17 = 0;
  	while (iVar17 < uParam0->f_56)
  	{
  		fVar11 = (fVar2 - (fVar1 - (0.3f * func_129())));
  		if (fVar11 >= 0f)
  		{
  			fVar12 = func_111((fVar11 / (0.8f * func_130(25f))), 0f, 1f);
  			func_122(uParam0, iVar17, (fVar1 + func_130(2f)), fVar9, fVar10, SYSTEM::ROUND((IntToFloat(iVar0) * fVar12)));
  		}
  		else
  		{
  			return;
  		}
  		fVar1 = (fVar1 + func_130(25f));
  		if (uParam0->f_556 == 4)
  		{
  			if (iVar17 == (uParam0->f_576 - 1))
  			{
  				fVar1 = (fVar1 + func_130((25f * 0.2f)));
  				fVar11 = (fVar2 - (fVar1 - (0.3f * func_129())));
  				if (fVar11 >= 0f)
  				{
  					fVar1 = (fVar1 + func_130(2f));
  					fVar12 = func_111((fVar11 / (0.6f * func_130(25f))), 0f, 1f);
  					func_127();
  					GRAPHICS::DRAW_RECT(0.5f, (fVar1 + func_130((2f * 0.5f))), fVar6, func_125(1f), iVar13, iVar14, iVar15, SYSTEM::ROUND((fVar12 * IntToFloat(iVar16))), false);
  					fVar1 = (fVar1 + func_130((2f * 0.3f)));
  					if (uParam0->f_56 > 0)
  					{
  						fVar1 = (fVar1 + func_130((25f * 0.2f)));
  					}
  				}
  			}
  		}
  		iVar17++;
  	}
  	if (uParam0->f_556 == 4)
  	{
  		return;
  	}
  	if (uParam0->f_56 > 0)
  	{
  		fVar1 = (fVar1 + func_130((25f * 0.2f)));
  		fVar11 = (fVar2 - (fVar1 - (0.3f * func_129())));
  		if (fVar11 >= 0f)
  		{
  			fVar1 = (fVar1 + func_130(2f));
  			fVar12 = func_111((fVar11 / (0.6f * func_130(25f))), 0f, 1f);
  			func_127();
  			GRAPHICS::DRAW_RECT(0.5f, (fVar1 + func_130((2f * 0.5f))), fVar6, func_125(1f), iVar13, iVar14, iVar15, SYSTEM::ROUND((fVar12 * IntToFloat(iVar16))), false);
  		}
  	}
  	if (uParam0->f_549)
  	{
  		fVar1 = (fVar1 + func_130((25f * 0.2f)));
  		fVar11 = (fVar2 - (fVar1 - (0.3f * func_129())));
  		if (fVar11 >= 0f)
  		{
  			fVar12 = func_111((fVar11 / (0.8f * func_130(25f))), 0f, 1f);
  			HUD::SET_TEXT_COLOUR(iVar13, iVar14, iVar15, SYSTEM::ROUND((fVar12 * IntToFloat(iVar0))));
  			func_115(7, 0, 1, &fVar18, &fVar19, 0);
  			fVar20 = fVar9;
  			fVar21 = fVar10;
  			if (LOCALIZATION::GET_CURRENT_LANGUAGE() == 0)
  			{
  				fVar20 = (fVar9 + ((0.119f / func_129()) / 2.5f));
  				fVar21 = (fVar10 - ((0.119f / func_129()) / 2.5f));
  				if (uParam0->f_556 == 1)
  				{
  					fVar20 = (fVar9 + (((0.119f + 0.05f) / func_129()) / 2.5f));
  					fVar21 = (fVar10 - (((0.119f + 0.05f) / func_129()) / 2.5f));
  				}
  			}
  			if (uParam0->f_557 == 0)
  			{
  				fVar20 = (fVar20 + (((fVar18 * 0.28f) + 0.006f) / 2f));
  				fVar21 = (fVar21 + (((fVar18 * 0.28f) + 0.006f) / 2f));
  			}
  			if (uParam0->f_556 != 3)
  			{
  				HUD::SET_TEXT_WRAP(fVar20, fVar21);
  				HUD::SET_TEXT_JUSTIFICATION(1);
  			}
  			else
  			{
  				fVar20 = 0.5f;
  				HUD::SET_TEXT_JUSTIFICATION(0);
  			}
  			HUD::SET_TEXT_SCALE(1f, 0.4f);
  			func_114(&(uParam0->f_550), fVar20, (fVar1 + func_130((2f * 2f))), 0, 0, 0);
  			HUD::SET_TEXT_WRAP(fVar20, fVar21);
  			HUD::SET_TEXT_JUSTIFICATION(2);
  			HUD::SET_TEXT_SCALE(1f, 0.4f);
  			HUD::SET_TEXT_CENTRE(false);
  			func_127();
  			fVar22 = fVar21;
  			StringCopy(&cVar23, "MPHud", 16);
  			StringCopy(&cVar24, "MissionPassedMedal", 32);
  			fVar22 = (fVar22 - ((fVar18 * 0.28f) + 0.006f));
  			HUD::SET_TEXT_WRAP(fVar20, fVar22);
  			HUD::SET_TEXT_COLOUR(iVar13, iVar14, iVar15, SYSTEM::ROUND((fVar12 * IntToFloat(iVar0))));
  			switch (uParam0->f_556)
  			{
  				case 0:
  					HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("PERCENTAGE");
  					HUD::ADD_TEXT_COMPONENT_INTEGER(uParam0->f_554);
  					HUD::END_TEXT_COMMAND_DISPLAY_TEXT(fVar20, (fVar1 + func_130((2f * 2f))), 0);
  					break;
  				
  				case 1:
  					HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("FO_TWO_NUM");
  					HUD::ADD_TEXT_COMPONENT_INTEGER(uParam0->f_554);
  					HUD::ADD_TEXT_COMPONENT_INTEGER(uParam0->f_555);
  					HUD::END_TEXT_COMMAND_DISPLAY_TEXT(fVar20, (fVar1 + func_130((2f * 2f))), 0);
  					break;
  				
  				case 2:
  					HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("MTPHPER_XPNO");
  					HUD::ADD_TEXT_COMPONENT_INTEGER(uParam0->f_554);
  					HUD::END_TEXT_COMMAND_DISPLAY_TEXT(fVar20, (fVar1 + func_130((2f * 2f))), 0);
  					break;
  				
  				case 5:
  					HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("ESDOLLA");
  					HUD::ADD_TEXT_COMPONENT_FORMATTED_INTEGER(uParam0->f_554, true);
  					HUD::END_TEXT_COMMAND_DISPLAY_TEXT(fVar20, (fVar1 + func_130((2f * 2f))), 0);
  					break;
  			}
  			if (uParam0->f_557 != 0)
  			{
  				iVar25 = 255;
  				iVar26 = 255;
  				iVar27 = 255;
  				iVar28 = iVar0;
  				switch (uParam0->f_557)
  				{
  					case 1:
  						HUD::GET_HUD_COLOUR(107, &iVar25, &iVar26, &iVar27, &iVar28);
  						break;
  					
  					case 3:
  						HUD::GET_HUD_COLOUR(109, &iVar25, &iVar26, &iVar27, &iVar28);
  						break;
  					
  					case 2:
  						HUD::GET_HUD_COLOUR(108, &iVar25, &iVar26, &iVar27, &iVar28);
  						break;
  				}
  				fVar29 = (0.001388889f * 5f);
  				fVar30 = ((0.00078125f * 16f) * 2f);
  				fVar31 = ((0.001388889f * 16f) * 2f);
  				fVar32 = ((fVar21 + func_113(4f)) - 0.006f);
  				fVar33 = ((fVar1 + func_130(10f)) + fVar29);
  				if (uParam0->f_556 == -1)
  				{
  					fVar32 = (fVar32 - (0.006f * 6f));
  				}
  				fVar30 = (fVar30 * 0.65f);
  				fVar31 = (fVar31 * 0.65f);
  				GRAPHICS::DRAW_SPRITE(&cVar23, &cVar24, fVar32, fVar33, fVar30, fVar31, 0f, iVar25, iVar26, iVar27, SYSTEM::ROUND((fVar12 * IntToFloat(iVar0))), false);
  			}
  			fVar1 = (fVar1 + (func_130(30f) - 2f));
  		}
  	}
  }
  
  float func_113(float fParam0)
  {
  	return (fParam0 * 0.00078125f);
  }
  
  void func_114(char* sParam0, float fParam1, float fParam2, bool bParam3, bool bParam4, int iParam5)
  {
  	HUD::SET_TEXT_CENTRE(bParam3);
  	HUD::SET_TEXT_FONT(iParam5);
  	func_127();
  	if (bParam4)
  	{
  		HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("STRING");
  		HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(sParam0);
  	}
  	else
  	{
  		HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT(sParam0);
  	}
  	HUD::END_TEXT_COMMAND_DISPLAY_TEXT(fParam1, fParam2, 0);
  }
  
  int func_115(int iParam0, bool bParam1, bool bParam2, float fParam3, float fParam4, bool bParam5)
  {
  	char cVar0[64];
  	char cVar1[64];
  	int iVar2;
  	int iVar3;
  	float fVar4;
  	float fVar5;
  	float fVar6;
  	struct<3> Var7;
  	
  	StringCopy(&cVar0, func_121(iParam0), 64);
  	StringCopy(&cVar1, func_118(iParam0, bParam1), 64);
  	if (MISC::GET_HASH_KEY(&cVar1) != 0)
  	{
  		fVar4 = 1f;
  		if (bParam5)
  		{
  			GRAPHICS::_GET_ACTIVE_SCREEN_RESOLUTION(&iVar2, &iVar3);
  			fVar5 = GRAPHICS::_GET_ASPECT_RATIO(false);
  			if (func_117())
  			{
  				iVar2 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(iVar3) * fVar5));
  			}
  			fVar6 = (SYSTEM::TO_FLOAT(iVar2) / SYSTEM::TO_FLOAT(iVar3));
  			fVar4 = (fVar6 / fVar5);
  			if (func_117())
  			{
  				fVar4 = 1f;
  			}
  			if (SCRIPT::_GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH(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);
  		}
  		Var7 = { GRAPHICS::GET_TEXTURE_RESOLUTION(&cVar0, &cVar1) };
  		Var7.x = (Var7.x * (func_116(iParam0) / fVar4));
  		Var7.f_1 = (Var7.f_1 * (func_116(iParam0) / fVar4));
  		if (!bParam2)
  		{
  			Var7.x = (Var7.x - 2f);
  			Var7.f_1 = (Var7.f_1 - 2f);
  		}
  		if (iParam0 == 30)
  		{
  			Var7.x = 288f;
  			Var7.f_1 = 106f;
  		}
  		if (iParam0 == 29 && MISC::GET_HASH_KEY(&(Global_22350.f_7029[29 /*16*/])) == joaat("CREW_LOGO"))
  		{
  			Var7.x = 106f;
  			Var7.f_1 = 106f;
  		}
  		*fParam3 = ((Var7.x / IntToFloat(iVar2)) * IntToFloat((iVar2 / iVar3)));
  		*fParam4 = (((Var7.f_1 / IntToFloat(iVar3)) / (Var7.x / IntToFloat(iVar2))) * *fParam3);
  		if (!bParam5)
  		{
  			if (!GRAPHICS::GET_IS_WIDESCREEN() && iParam0 != 30)
  			{
  				*fParam3 = (*fParam3 * 1.33f);
  			}
  		}
  		if (iParam0 == 29)
  		{
  			if (*fParam3 > Global_22349)
  			{
  				*fParam4 = (*fParam4 * (Global_22349 / *fParam3));
  				*fParam3 = Global_22349;
  			}
  		}
  		return 1;
  	}
  	return 0;
  }
  
  float func_116(int iParam0)
  {
  	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 52:
  		case 56:
  		case 57:
  		case 58:
  		case 59:
  		case 60:
  		case 62:
  			return 0.5f;
  			break;
  		
  		case 61:
  			return 0.8f;
  			break;
  	}
  	return 1f;
  }
  
  int func_117()
  {
  	int iVar0;
  	int iVar1;
  	float fVar2;
  	
  	GRAPHICS::_GET_ACTIVE_SCREEN_RESOLUTION(&iVar0, &iVar1);
  	fVar2 = (SYSTEM::TO_FLOAT(iVar0) / SYSTEM::TO_FLOAT(iVar1));
  	if (fVar2 > 3.5f)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  var func_118(int iParam0, bool bParam1)
  {
  	char* sVar0[2];
  	var uVar1;
  	struct<13> Var2;
  	
  	if (!MISC::IS_STRING_NULL_OR_EMPTY(&(Global_22350.f_7029[iParam0 /*16*/])))
  	{
  		if (MISC::GET_HASH_KEY(&(Global_22350.f_7029[iParam0 /*16*/])) == joaat("CREW_LOGO"))
  		{
  			Var2 = { func_120(PLAYER::PLAYER_ID()) };
  			if (NETWORK::NETWORK_CLAN_GET_EMBLEM_TXD_NAME(&Var2, &uVar1))
  			{
  				return func_119(&uVar1);
  			}
  		}
  		else
  		{
  			return func_119(&(Global_22350.f_7029[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 51:
  			sVar0[0] = "SaleIcon";
  			sVar0[1] = "SaleIcon";
  			break;
  		
  		case 52:
  			sVar0[0] = "Shop_Tick_Icon";
  			sVar0[1] = "Shop_Tick_Icon";
  			break;
  		
  		case 54:
  			sVar0[0] = "shop_NEW_Star";
  			sVar0[1] = "shop_NEW_Star";
  			break;
  		
  		case 55:
  			sVar0[0] = "Shop_Lock_Arena";
  			sVar0[1] = "Shop_Lock_Arena";
  			break;
  		
  		case 56:
  			sVar0[0] = "Card_Suit_Clubs";
  			sVar0[1] = "Card_Suit_Clubs";
  			break;
  		
  		case 57:
  			sVar0[0] = "Card_Suit_Hearts";
  			sVar0[1] = "Card_Suit_Hearts";
  			break;
  		
  		case 58:
  			sVar0[0] = "Card_Suit_Spades";
  			sVar0[1] = "Card_Suit_Spades";
  			break;
  		
  		case 59:
  			sVar0[0] = "Card_Suit_Diamonds";
  			sVar0[1] = "Card_Suit_Diamonds";
  			break;
  		
  		case 60:
  			sVar0[0] = "Shop_Art_Icon_B";
  			sVar0[1] = "Shop_Art_Icon_A";
  			break;
  		
  		case 62:
  			sVar0[0] = "Shop_Art_Icon_B";
  			sVar0[1] = "Shop_Art_Icon_A";
  			break;
  		
  		case 61:
  			sVar0[0] = "Shop_Chips_A";
  			sVar0[1] = "Shop_Chips_B";
  			break;
  		
  		case 0:
  			sVar0[0] = "";
  			sVar0[1] = "";
  			break;
  	}
  	if (bParam1)
  	{
  		return sVar0[0];
  	}
  	return sVar0[1];
  }
  
  var func_119(var uParam0)
  {
  	return uParam0;
  }
  
  struct<13> func_120(int iParam0)
  {
  	struct<13> Var0;
  	
  	NETWORK::NETWORK_HANDLE_FROM_PLAYER(iParam0, &Var0, 13);
  	return Var0;
  }
  
  char* func_121(int iParam0)
  {
  	var uVar0;
  	struct<13> Var1;
  	
  	if (!MISC::IS_STRING_NULL_OR_EMPTY(&(Global_22350.f_6020[iParam0 /*16*/])))
  	{
  		if (MISC::GET_HASH_KEY(&(Global_22350.f_6020[iParam0 /*16*/])) == joaat("CREW_LOGO"))
  		{
  			Var1 = { func_120(PLAYER::PLAYER_ID()) };
  			NETWORK::NETWORK_CLAN_GET_EMBLEM_TXD_NAME(&Var1, &uVar0);
  			return func_119(&uVar0);
  		}
  		else
  		{
  			return func_119(&(Global_22350.f_6020[iParam0 /*16*/]));
  		}
  	}
  	if (iParam0 == 51)
  	{
  		return "MPShopSale";
  	}
  	return "CommonMenu";
  }
  
  void func_122(var uParam0, int iParam1, float fParam2, float fParam3, float fParam4, int iParam5)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	var uVar3;
  	float fVar4;
  	float fVar5;
  	float fVar6;
  	
  	HUD::GET_HUD_COLOUR(1, &iVar0, &iVar1, &iVar2, &uVar3);
  	HUD::SET_TEXT_COLOUR(iVar0, iVar1, iVar2, iParam5);
  	HUD::SET_TEXT_WRAP(fParam3, fParam4);
  	HUD::SET_TEXT_JUSTIFICATION(1);
  	HUD::SET_TEXT_SCALE(1f, func_124(14f));
  	HUD::SET_TEXT_CENTRE(false);
  	HUD::SET_TEXT_FONT(0);
  	func_127();
  	if (uParam0->f_531[iParam1])
  	{
  		HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("STRING");
  		HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(&(uParam0->f_71[iParam1 /*16*/]));
  	}
  	else
  	{
  		HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT(&(uParam0->f_71[iParam1 /*16*/]));
  		if (uParam0->f_57[iParam1] == 16 || uParam0->f_57[iParam1] == 17)
  		{
  			HUD::ADD_TEXT_COMPONENT_INTEGER(uParam0->f_489[iParam1]);
  		}
  	}
  	HUD::END_TEXT_COMMAND_DISPLAY_TEXT(fParam3, fParam2, 0);
  	fVar4 = fParam4;
  	switch (uParam0->f_517[iParam1])
  	{
  		case 0:
  			break;
  		
  		case 1:
  			func_115(7, 0, 1, &fVar5, &fVar6, 0);
  			GRAPHICS::DRAW_SPRITE("CommonMenu", func_118(7, 0), (fParam4 - 0.006f), ((fParam2 + func_130(2f)) + (0.25f * fVar6)), fVar5, fVar6, 0f, 255, 255, 255, iParam5, false);
  			fVar4 = (fVar4 - ((fVar5 * 0.38f) + 0.006f));
  			break;
  		
  		case 2:
  			func_115(5, 0, 1, &fVar5, &fVar6, 0);
  			GRAPHICS::DRAW_SPRITE("CommonMenu", func_118(5, 0), (fParam4 - 0.006f), ((fParam2 + func_130(2f)) + (0.25f * fVar6)), fVar5, fVar6, 0f, 255, 255, 255, iParam5, false);
  			fVar4 = (fVar4 - ((fVar5 * 0.38f) + 0.006f));
  			break;
  		
  		case 3:
  			func_115(6, 0, 1, &fVar5, &fVar6, 0);
  			GRAPHICS::DRAW_SPRITE("CommonMenu", func_118(6, 0), (fParam4 - 0.006f), ((fParam2 + func_130(2f)) + (0.25f * fVar6)), fVar5, fVar6, 0f, 255, 255, 255, iParam5, false);
  			fVar4 = (fVar4 - ((fVar5 * 0.38f) + 0.006f));
  			break;
  	}
  	if (uParam0->f_57[iParam1] == 0)
  	{
  		return;
  	}
  	if (uParam0->f_57[iParam1] == 15)
  	{
  		HUD::SET_TEXT_JUSTIFICATION(1);
  	}
  	else
  	{
  		HUD::SET_TEXT_JUSTIFICATION(2);
  	}
  	HUD::SET_TEXT_SCALE(1f, func_124(14f));
  	if (uParam0->f_57[iParam1] == 5 || uParam0->f_57[iParam1] == 4)
  	{
  		HUD::SET_TEXT_WRAP(fParam3, (fVar4 - (0.00078125f * 3f)));
  	}
  	else
  	{
  		HUD::SET_TEXT_WRAP(fParam3, (fVar4 + (0.00078125f * 2f)));
  	}
  	HUD::SET_TEXT_COLOUR(iVar0, iVar1, iVar2, iParam5);
  	func_123(uParam0->f_489[iParam1], uParam0->f_503[iParam1], fParam4, fParam2, &(uParam0->f_280[iParam1 /*16*/]), uParam0->f_57[iParam1]);
  }
  
  void func_123(int iParam0, int iParam1, float fParam2, float fParam3, char* sParam4, int iParam5)
  {
  	int iVar0;
  	float fVar1;
  	float fVar2;
  	float fVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	
  	iVar0 = 1;
  	HUD::SET_TEXT_CENTRE(false);
  	HUD::SET_TEXT_FONT(0);
  	func_127();
  	fVar1 = 0f;
  	fVar2 = (8f * 0.00078125f);
  	fVar3 = (16f * 0.001388889f);
  	iVar4 = 93;
  	iVar5 = 182;
  	iVar6 = 229;
  	if (iParam5 == 4)
  	{
  		iVar4 = 194;
  		iVar5 = 80;
  		iVar6 = 80;
  	}
  	switch (iParam5)
  	{
  		case 4:
  		case 5:
  			HUD::SET_TEXT_SCALE(1f, func_124(18f));
  			HUD::SET_TEXT_FONT(4);
  			if (iParam0 < 0)
  			{
  				HUD::_BEGIN_TEXT_COMMAND_GET_WIDTH("ESMINDOLLA");
  				HUD::ADD_TEXT_COMPONENT_FORMATTED_INTEGER((-1 * iParam0), true);
  				fVar1 = HUD::_END_TEXT_COMMAND_GET_WIDTH(false);
  			}
  			else
  			{
  				HUD::_BEGIN_TEXT_COMMAND_GET_WIDTH("ESDOLLA");
  				HUD::ADD_TEXT_COMPONENT_FORMATTED_INTEGER(iParam0, true);
  				fVar1 = HUD::_END_TEXT_COMMAND_GET_WIDTH(false);
  			}
  			fVar1 = (fVar1 - (fVar1 % 0.00078125f));
  			GRAPHICS::DRAW_SPRITE("CommonMenu", "BettingBox_Left", (fParam2 - fVar1), ((fParam3 + (fVar3 * 0.6f)) + (0.001388889f * 2f)), fVar2, fVar3, 0f, iVar4, iVar5, iVar6, 255, false);
  			GRAPHICS::DRAW_SPRITE("CommonMenu", "BettingBox_Centre", ((fParam2 - (fVar1 * 0.5f)) - (0.00078125f * 2f)), ((fParam3 + (fVar3 * 0.6f)) + (0.001388889f * 2f)), (fVar1 - (fVar2 * 0.5f)), fVar3, 0f, iVar4, iVar5, iVar6, 255, false);
  			GRAPHICS::DRAW_SPRITE("CommonMenu", "BettingBox_Right", (fParam2 - (0.00078125f * 4f)), ((fParam3 + (fVar3 * 0.6f)) + (0.001388889f * 2f)), fVar2, fVar3, 0f, iVar4, iVar5, iVar6, 255, false);
  			HUD::SET_TEXT_SCALE(1f, func_124(14f));
  			break;
  	}
  	HUD::SET_COLOUR_OF_NEXT_TEXT_COMPONENT(iVar0);
  	switch (iParam5)
  	{
  		case 11:
  			HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("PERCENTAGE");
  			HUD::ADD_TEXT_COMPONENT_INTEGER(iParam0);
  			break;
  		
  		case 1:
  			HUD::SET_TEXT_FONT(5);
  			HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("FO_NUM");
  			HUD::ADD_TEXT_COMPONENT_INTEGER(iParam0);
  			break;
  		
  		case 2:
  			HUD::SET_TEXT_FONT(5);
  			HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("FO_TWO_NUM");
  			HUD::ADD_TEXT_COMPONENT_INTEGER(iParam0);
  			HUD::ADD_TEXT_COMPONENT_INTEGER(iParam1);
  			break;
  		
  		case 4:
  		case 5:
  			HUD::SET_TEXT_SCALE(1f, func_124(18f));
  		
  		case 3:
  			if (iParam0 < 0)
  			{
  				HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("ESMINDOLLA");
  				HUD::ADD_TEXT_COMPONENT_FORMATTED_INTEGER((-1 * iParam0), true);
  			}
  			else
  			{
  				HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("ESDOLLA");
  				HUD::ADD_TEXT_COMPONENT_FORMATTED_INTEGER(iParam0, true);
  			}
  			break;
  		
  		case 6:
  			HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT(sParam4);
  			break;
  		
  		case 7:
  			HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("STRING");
  			HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(sParam4);
  			break;
  		
  		case 8:
  			HUD::SET_TEXT_FONT(5);
  			HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("STRING");
  			HUD::ADD_TEXT_COMPONENT_SUBSTRING_TIME(iParam0, 14);
  			break;
  		
  		case 9:
  			HUD::SET_TEXT_FONT(5);
  			HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("STRING");
  			HUD::ADD_TEXT_COMPONENT_SUBSTRING_TIME(iParam0, 6);
  			break;
  		
  		case 10:
  			HUD::SET_TEXT_FONT(5);
  			HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("STRING");
  			HUD::ADD_TEXT_COMPONENT_SUBSTRING_TIME(iParam0, 2055);
  			break;
  		
  		case 18:
  			HUD::SET_TEXT_FONT(5);
  			HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("STRING");
  			HUD::ADD_TEXT_COMPONENT_SUBSTRING_TIME(iParam0, 2055);
  			break;
  		
  		case 12:
  			HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("AHD_DIST");
  			HUD::ADD_TEXT_COMPONENT_INTEGER(iParam0);
  			break;
  		
  		case 13:
  			HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT(sParam4);
  			HUD::ADD_TEXT_COMPONENT_INTEGER(iParam0);
  			HUD::ADD_TEXT_COMPONENT_INTEGER(iParam1);
  			break;
  		
  		case 15:
  		case 14:
  			HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT(sParam4);
  			HUD::ADD_TEXT_COMPONENT_INTEGER(iParam0);
  			HUD::ADD_TEXT_COMPONENT_INTEGER(iParam1);
  			break;
  		
  		case 16:
  			HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT(sParam4);
  			HUD::ADD_TEXT_COMPONENT_INTEGER(iParam1);
  			break;
  		
  		case 20:
  			HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT(sParam4);
  			break;
  	}
  	if (iParam5 != 17)
  	{
  		if (iParam5 == 4 || iParam5 == 5)
  		{
  			HUD::END_TEXT_COMMAND_DISPLAY_TEXT((fParam2 - (0.00078125f * 4f)), fParam3, 0);
  			HUD::SET_TEXT_SCALE(1f, func_124(14f));
  		}
  		else
  		{
  			HUD::END_TEXT_COMMAND_DISPLAY_TEXT(fParam2, fParam3, 0);
  		}
  	}
  }
  
  float func_124(float fParam0)
  {
  	return (fParam0 * 0.025f);
  }
  
  float func_125(float fParam0)
  {
  	return (fParam0 * 0.0009259259f);
  }
  
  float func_126(char* sParam0)
  {
  	HUD::_BEGIN_TEXT_COMMAND_GET_WIDTH(sParam0);
  	return (HUD::_END_TEXT_COMMAND_GET_WIDTH(true) / 2f);
  }
  
  void func_127()
  {
  	GRAPHICS::SET_SCRIPT_GFX_DRAW_ORDER(1);
  	if (CAM::IS_SCREEN_FADING_OUT() || CAM::IS_SCREEN_FADED_OUT())
  	{
  		GRAPHICS::SET_SCRIPT_GFX_DRAW_ORDER(7);
  	}
  	GRAPHICS::SET_SCRIPT_GFX_DRAW_BEHIND_PAUSEMENU(false);
  }
  
  void func_128(char* sParam0)
  {
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_PLAYER_NAME_STRING(sParam0);
  }
  
  float func_129()
  {
  	float fVar0;
  	
  	fVar0 = 1f;
  	if (MISC::IS_PC_VERSION())
  	{
  	}
  	return fVar0;
  }
  
  float func_130(float fParam0)
  {
  	return (fParam0 * 0.001388889f);
  }
  
  void func_131(int iParam0)
  {
  	if (func_136())
  	{
  		return;
  	}
  	if (!Global_19486.f_1 == 1)
  	{
  		if (func_135(0))
  		{
  			func_132(iParam0);
  		}
  		MISC::SET_BIT(&Global_7357, 2);
  	}
  }
  
  void func_132(int iParam0)
  {
  	if (func_136())
  	{
  		return;
  	}
  	if (Global_19664)
  	{
  		if (func_134())
  		{
  			func_133(1, 1);
  		}
  		else
  		{
  			func_133(0, 0);
  		}
  	}
  	if (Global_19486.f_1 == 10 || Global_19486.f_1 == 9)
  	{
  		MISC::SET_BIT(&Global_7357, 16);
  	}
  	if (AUDIO::IS_MOBILE_PHONE_CALL_ONGOING())
  	{
  		AUDIO::STOP_SCRIPTED_CONVERSATION(false);
  	}
  	Global_20805 = 5;
  	if (iParam0 == 1)
  	{
  		MISC::SET_BIT(&Global_7356, 30);
  	}
  	else
  	{
  		MISC::CLEAR_BIT(&Global_7356, 30);
  	}
  	if (!func_31())
  	{
  		Global_19486.f_1 = 3;
  	}
  }
  
  void func_133(bool bParam0, bool bParam1)
  {
  	if (bParam0)
  	{
  		if (func_135(0))
  		{
  			Global_19664 = 1;
  			if (bParam1)
  			{
  				MOBILE::GET_MOBILE_PHONE_POSITION(&Global_19423);
  			}
  			Global_19414 = { Global_19432[Global_19431 /*3*/] };
  			MOBILE::SET_MOBILE_PHONE_POSITION(Global_19414);
  		}
  	}
  	else if (Global_19664 == 1)
  	{
  		Global_19664 = 0;
  		Global_19414 = { Global_19439[Global_19431 /*3*/] };
  		if (bParam1)
  		{
  			MOBILE::SET_MOBILE_PHONE_POSITION(Global_19423);
  		}
  		else
  		{
  			MOBILE::SET_MOBILE_PHONE_POSITION(Global_19414);
  		}
  	}
  }
  
  bool func_134()
  {
  	return MISC::IS_BIT_SET(Global_1687687, 5);
  }
  
  int func_135(int iParam0)
  {
  	if (iParam0 == 1)
  	{
  		if (Global_19486.f_1 > 3)
  		{
  			if (MISC::IS_BIT_SET(Global_7356, 14))
  			{
  				return 1;
  			}
  			else
  			{
  				return 0;
  			}
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	if (SCRIPT::_GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH(joaat("cellphone_flashhand")) > 0)
  	{
  		return 1;
  	}
  	if (Global_19486.f_1 > 3)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_136()
  {
  	return MISC::IS_BIT_SET(Global_1687687, 19);
  }
  
  void func_137(bool bParam0)
  {
  	if (bParam0)
  	{
  		func_138();
  		if (Global_19486.f_1 == 10 || Global_19486.f_1 == 9)
  		{
  			MISC::SET_BIT(&Global_7357, 16);
  		}
  		Global_19486.f_1 = 1;
  		if (func_135(0))
  		{
  			func_132(0);
  		}
  	}
  	else if (Global_19486.f_1 == 1)
  	{
  		if (!Global_19486.f_1 == 0)
  		{
  			Global_19486.f_1 = 3;
  		}
  	}
  }
  
  void func_138()
  {
  	if (Global_19486.f_1 == 9 || Global_19486.f_1 == 10)
  	{
  		Global_20858 = 0;
  		Global_20854 = 1;
  	}
  }
  
  int func_139(var uParam0, char* sParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (*uParam0 == 0)
  	{
  		return 0;
  	}
  	iVar0 = 0;
  	if (iParam5 == 1)
  	{
  		iVar0 = 1;
  	}
  	iVar1 = uParam0->f_123;
  	if (iVar1 < 8)
  	{
  		uParam0->f_2[iVar1 /*15*/] = sParam1;
  		uParam0->f_2[iVar1 /*15*/].f_1 = iVar0;
  		uParam0->f_2[iVar1 /*15*/].f_2 = iParam6;
  		uParam0->f_2[iVar1 /*15*/].f_12 = 0;
  		uParam0->f_2[iVar1 /*15*/].f_13 = 0;
  		uParam0->f_2[iVar1 /*15*/].f_14 = 0;
  		uParam0->f_2[iVar1 /*15*/].f_3[0 /*2*/] = iParam2;
  		uParam0->f_2[iVar1 /*15*/].f_3[0 /*2*/].f_1 = iParam3;
  		if (iParam4 == 1)
  		{
  			MISC::SET_BIT(&(uParam0->f_2[iVar1 /*15*/].f_13), 0);
  		}
  		uParam0->f_2[iVar1 /*15*/].f_14++;
  		uParam0->f_123++;
  		return 1;
  	}
  	return 0;
  }
  
  void func_140(var uParam0, bool bParam1, bool bParam2, bool bParam3, bool bParam4)
  {
  	if (*uParam0 == 0)
  	{
  		*uParam0 = GRAPHICS::REQUEST_SCALEFORM_MOVIE_INSTANCE("instructional_buttons");
  	}
  	uParam0->f_1 = 0;
  	uParam0->f_123 = 0;
  	if (bParam1)
  	{
  		func_103(&(uParam0->f_1), 32);
  	}
  	if (GRAPHICS::HAS_SCALEFORM_MOVIE_LOADED(*uParam0))
  	{
  		func_103(&(uParam0->f_1), 1);
  		if (bParam2)
  		{
  			GRAPHICS::SET_SCALEFORM_MOVIE_TO_USE_SYSTEM_TIME(*uParam0, true);
  		}
  	}
  	if (MISC::IS_PC_VERSION())
  	{
  		if (bParam3)
  		{
  			func_103(&(uParam0->f_1), 4096);
  		}
  	}
  	if (bParam4)
  	{
  		func_103(&(uParam0->f_1), 8192);
  	}
  }
  
  int func_141(var uParam0, bool bParam1, int iParam2)
  {
  	uParam0->f_12 = iParam2;
  	func_144(uParam0);
  	func_143(uParam0);
  	if (MISC::ARE_STRINGS_EQUAL(&(uParam0->f_550), "SPR_RESULT") || (MISC::ARE_STRINGS_EQUAL(&(uParam0->f_550), "") && uParam0->f_56 > 0))
  	{
  		uParam0->f_566 = 1;
  	}
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		GRAPHICS::REQUEST_STREAMED_TEXTURE_DICT("MPHud", false);
  	}
  	if (uParam0->f_1 == 0)
  	{
  		GRAPHICS::REQUEST_STREAMED_TEXTURE_DICT("CommonMenu", false);
  		GRAPHICS::REQUEST_STREAMED_TEXTURE_DICT("MPLeaderboard", false);
  		GRAPHICS::REQUEST_STREAMED_TEXTURE_DICT("MPHud", false);
  		uParam0->f_1 = unk_0x67D02A194A2FC2BD("MP_BIG_MESSAGE_FREEMODE");
  		uParam0->f_2 = 0;
  		uParam0->f_3 = 0;
  	}
  	uParam0->f_4 = GRAPHICS::REQUEST_SCALEFORM_MOVIE_INSTANCE("INSTRUCTIONAL_BUTTONS");
  	if (bParam1)
  	{
  		while (((!GRAPHICS::HAS_SCALEFORM_MOVIE_LOADED(uParam0->f_1) || !GRAPHICS::HAS_STREAMED_TEXTURE_DICT_LOADED("CommonMenu")) || !GRAPHICS::HAS_STREAMED_TEXTURE_DICT_LOADED("MPLeaderboard")) || !GRAPHICS::HAS_STREAMED_TEXTURE_DICT_LOADED("MPHud"))
  		{
  			SYSTEM::WAIT(0);
  		}
  		if (uParam0->f_562 || uParam0->f_567)
  		{
  			while (!GRAPHICS::HAS_SCALEFORM_MOVIE_LOADED(uParam0->f_4))
  			{
  				SYSTEM::WAIT(0);
  			}
  		}
  	}
  	else
  	{
  		if (((!GRAPHICS::HAS_SCALEFORM_MOVIE_LOADED(uParam0->f_1) || !GRAPHICS::HAS_STREAMED_TEXTURE_DICT_LOADED("CommonMenu")) || !GRAPHICS::HAS_STREAMED_TEXTURE_DICT_LOADED("MPLeaderboard")) || !GRAPHICS::HAS_STREAMED_TEXTURE_DICT_LOADED("MPHud"))
  		{
  			return 0;
  		}
  		if (uParam0->f_562)
  		{
  			if (!GRAPHICS::HAS_SCALEFORM_MOVIE_LOADED(uParam0->f_4))
  			{
  				return 0;
  			}
  		}
  	}
  	if (uParam0->f_562)
  	{
  		if (uParam0->f_567)
  		{
  			func_142(uParam0);
  		}
  		else if (uParam0->f_56 != 0)
  		{
  			func_110(uParam0, 1);
  		}
  		else
  		{
  			func_110(uParam0, 0);
  		}
  	}
  	Global_76883 = 1;
  	return 1;
  }
  
  void func_142(var uParam0)
  {
  	GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(uParam0->f_4, "CLEAR_ALL");
  	GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  	if (MISC::IS_PC_VERSION())
  	{
  		GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(uParam0->f_4, "TOGGLE_MOUSE_BUTTONS");
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(true);
  		GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  	}
  	GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(uParam0->f_4, "SET_DATA_SLOT");
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(2);
  	func_106(PAD::GET_CONTROL_INSTRUCTIONAL_BUTTON(2, 188, true));
  	func_105("ES_HELP_TU");
  	GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  	GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(uParam0->f_4, "SET_DATA_SLOT");
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(1);
  	func_106(PAD::GET_CONTROL_INSTRUCTIONAL_BUTTON(2, 187, true));
  	func_105("ES_HELP_TD");
  	GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  	GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(uParam0->f_4, "SET_DATA_SLOT");
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(0);
  	func_106(PAD::GET_CONTROL_INSTRUCTIONAL_BUTTON(2, 202, true));
  	func_105("ES_HELP_AB");
  	GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  	GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(uParam0->f_4, "DRAW_INSTRUCTIONAL_BUTTONS");
  	GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  }
  
  void func_143(var uParam0)
  {
  	float fVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	
  	fVar0 = 0f;
  	HUD::SET_TEXT_JUSTIFICATION(0);
  	HUD::SET_TEXT_SCALE(1f, func_124(16f));
  	if (uParam0->f_31 == 0)
  	{
  		if (uParam0->f_29)
  		{
  			HUD::_BEGIN_TEXT_COMMAND_GET_WIDTH("STRING");
  			HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(&(uParam0->f_13));
  			fVar0 = HUD::_END_TEXT_COMMAND_GET_WIDTH(true);
  		}
  		else
  		{
  			HUD::_BEGIN_TEXT_COMMAND_GET_WIDTH(&(uParam0->f_13));
  			fVar0 = HUD::_END_TEXT_COMMAND_GET_WIDTH(true);
  		}
  	}
  	else
  	{
  		HUD::_BEGIN_TEXT_COMMAND_GET_WIDTH("STRING");
  		iVar1 = 0;
  		iVar2 = 0;
  		iVar3 = 0;
  		iVar3 = 0;
  		while (iVar3 < uParam0->f_31)
  		{
  			switch (uParam0->f_32[iVar3])
  			{
  				case 0:
  					HUD::ADD_TEXT_COMPONENT_INTEGER(uParam0->f_53[iVar1]);
  					iVar1++;
  					break;
  				
  				case 1:
  					HUD::ADD_TEXT_COMPONENT_SUBSTRING_TEXT_LABEL(&(uParam0->f_36[iVar2 /*16*/]));
  					iVar2++;
  					break;
  				
  				case 2:
  					HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(&(uParam0->f_36[iVar2 /*16*/]));
  					iVar2++;
  					break;
  			}
  			iVar3++;
  		}
  		fVar0 = HUD::_END_TEXT_COMMAND_GET_WIDTH(true);
  	}
  	if (fVar0 > ((0.1125f * 2f) - (0.006f * 2f)))
  	{
  		*uParam0 = ((fVar0 / 2f) + (0.006f * 2f));
  	}
  }
  
  void func_144(var uParam0)
  {
  	uParam0->f_547 = 1f;
  	uParam0->f_546 = 0;
  	uParam0->f_568 = 0f;
  	uParam0->f_558 = 0;
  	uParam0->f_30 = 0f;
  	uParam0->f_548 = 0f;
  	uParam0->f_559 = 0f;
  	uParam0->f_560 = 0f;
  	uParam0->f_545 = 0;
  	uParam0->f_563 = 0;
  	uParam0->f_572 = 0;
  	uParam0->f_564 = 0;
  	uParam0->f_565 = 0;
  	uParam0->f_566 = 0;
  	*uParam0 = 0.1125f;
  	uParam0->f_2 = 0;
  	uParam0->f_3 = 0;
  	uParam0->f_574 = 0;
  	uParam0->f_575 = 0;
  	uParam0->f_573 = 1f;
  }
  
  void func_145()
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!iLocal_128)
  	{
  		func_151(&uLocal_139, &Local_716, &Global_61527, 0);
  		fLocal_123 = (fLocal_123 * 1000f);
  		if (Global_92921)
  		{
  			func_150(&uLocal_139, 6, &(Local_716.f_12), "MTPHPERSKI", SYSTEM::FLOOR(fLocal_123), 0, 3, 0);
  			func_150(&uLocal_139, 6, &(Local_716.f_24), "MTPHPERSKI", 0, 0, 3, 0);
  			func_150(&uLocal_139, 6, &(Local_716.f_30), "MTPHPERSKI", SYSTEM::ROUND((fLocal_125 + fLocal_124)), 0, 3, 0);
  			func_149();
  		}
  		else
  		{
  			if (bLocal_127)
  			{
  				func_150(&uLocal_139, 6, &(Local_716.f_12), "MTPHPERRET", SYSTEM::FLOOR(fLocal_123), 0, 3, 0);
  			}
  			else
  			{
  				func_150(&uLocal_139, 9, &(Local_716.f_12), "", SYSTEM::FLOOR(fLocal_123), 0, 0, 0);
  			}
  			if (!MISC::IS_STRING_NULL_OR_EMPTY(&(Local_716.f_18)))
  			{
  				if (bLocal_126)
  				{
  					func_150(&uLocal_139, 6, &(Local_716.f_24), "", 0, 0, 2, 0);
  					func_150(&uLocal_139, 3, &(Local_716.f_30), "", SYSTEM::ROUND((fLocal_125 + fLocal_124)), 0, 2, 0);
  				}
  				else
  				{
  					func_150(&uLocal_139, 6, &(Local_716.f_24), "", 0, 0, 1, 0);
  					func_150(&uLocal_139, 3, &(Local_716.f_30), "", SYSTEM::ROUND(fLocal_124), 0, 0, 0);
  				}
  			}
  			else
  			{
  				func_150(&uLocal_139, 3, &(Local_716.f_30), "", SYSTEM::ROUND(fLocal_124), 0, 0, 0);
  			}
  		}
  		iVar0 = 0;
  		if (Global_92921)
  		{
  			iVar1 = 0;
  			while (iVar1 < Global_73607)
  			{
  				if (Global_73608[iVar1 /*9*/] >= 0 && !Global_61737[Global_73608[iVar1 /*9*/] /*13*/].f_7)
  				{
  					if (Global_73608[iVar1 /*9*/].f_3 == 2)
  					{
  						iVar0 = 1;
  					}
  				}
  				iVar1++;
  			}
  		}
  		if (iVar0 == 1)
  		{
  			iLocal_134 = 50;
  			iLocal_135 = 1;
  			func_148(&uLocal_139, 1, &(Local_716.f_48), iLocal_134, 0, 0, 1, 0);
  		}
  		else if (bLocal_126)
  		{
  			if (bLocal_127)
  			{
  				iLocal_134 = 75;
  				iLocal_135 = 2;
  				func_148(&uLocal_139, 1, &(Local_716.f_42), iLocal_134, 0, 0, 2, 0);
  			}
  			else
  			{
  				iLocal_134 = 100;
  				iLocal_135 = 3;
  				func_148(&uLocal_139, 1, &(Local_716.f_36), iLocal_134, 0, 0, 3, 0);
  			}
  		}
  		else if (!bLocal_126 && !bLocal_127)
  		{
  			iLocal_134 = 75;
  			iLocal_135 = 2;
  			func_148(&uLocal_139, 1, &(Local_716.f_42), iLocal_134, 0, 0, 2, 0);
  		}
  		else
  		{
  			iLocal_134 = 50;
  			iLocal_135 = 1;
  			func_148(&uLocal_139, 1, &(Local_716.f_48), iLocal_134, 0, 0, 1, 0);
  		}
  		func_146();
  		iLocal_128 = 1;
  	}
  }
  
  void func_146()
  {
  	if (SCRIPT::_GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH(joaat("assassin_valet")) == 1)
  	{
  		func_147(38, SYSTEM::FLOOR(fLocal_123), 1);
  		if (bLocal_126)
  		{
  			func_147(39, 1, 1);
  		}
  		else
  		{
  			func_147(39, 0, 1);
  		}
  		if (bLocal_126)
  		{
  			func_147(40, SYSTEM::ROUND((fLocal_125 + fLocal_124)), 1);
  		}
  		else
  		{
  			func_147(40, SYSTEM::ROUND(fLocal_124), 1);
  		}
  		func_147(41, iLocal_134, 1);
  		func_147(42, iLocal_135, 1);
  	}
  	else if (SCRIPT::_GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH(joaat("assassin_multi")) == 1)
  	{
  		func_147(52, SYSTEM::FLOOR(fLocal_123), 1);
  		if (bLocal_126)
  		{
  			func_147(53, 1, 1);
  		}
  		else
  		{
  			func_147(53, 0, 1);
  		}
  		if (bLocal_126)
  		{
  			func_147(56, SYSTEM::ROUND((fLocal_125 + fLocal_124)), 1);
  		}
  		else
  		{
  			func_147(56, SYSTEM::ROUND(fLocal_124), 1);
  		}
  		func_147(54, iLocal_134, 1);
  		func_147(55, iLocal_135, 1);
  	}
  	else if (SCRIPT::_GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH(joaat("assassin_hooker")) == 1)
  	{
  		func_147(66, SYSTEM::FLOOR(fLocal_123), 1);
  		if (bLocal_126)
  		{
  			func_147(67, 1, 1);
  		}
  		else
  		{
  			func_147(67, 0, 1);
  		}
  		if (bLocal_126)
  		{
  			func_147(68, SYSTEM::ROUND((fLocal_125 + fLocal_124)), 1);
  		}
  		else
  		{
  			func_147(68, SYSTEM::ROUND(fLocal_124), 1);
  		}
  		func_147(69, iLocal_134, 1);
  		func_147(70, iLocal_135, 1);
  	}
  	else if (SCRIPT::_GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH(joaat("assassin_bus")) == 1)
  	{
  		func_147(81, SYSTEM::FLOOR(fLocal_123), 1);
  		if (bLocal_126)
  		{
  			func_147(82, 1, 1);
  		}
  		else
  		{
  			func_147(82, 0, 1);
  		}
  		if (bLocal_126)
  		{
  			func_147(83, SYSTEM::ROUND((fLocal_125 + fLocal_124)), 1);
  		}
  		else
  		{
  			func_147(83, SYSTEM::ROUND(fLocal_124), 1);
  		}
  		func_147(84, iLocal_134, 1);
  		func_147(85, iLocal_135, 1);
  	}
  	else if (SCRIPT::_GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH(joaat("assassin_construction")) == 1)
  	{
  		func_147(97, SYSTEM::FLOOR(fLocal_123), 1);
  		if (bLocal_126)
  		{
  			func_147(98, 1, 1);
  		}
  		else
  		{
  			func_147(98, 0, 1);
  		}
  		if (bLocal_126)
  		{
  			func_147(99, SYSTEM::ROUND((fLocal_125 + fLocal_124)), 1);
  		}
  		else
  		{
  			func_147(99, SYSTEM::ROUND(fLocal_124), 1);
  		}
  		func_147(100, iLocal_134, 1);
  		func_147(101, iLocal_135, 1);
  	}
  }
  
  void func_147(int iParam0, int iParam1, bool bParam2)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < Global_73607)
  	{
  		if (Global_73608[iVar0 /*9*/] == iParam0)
  		{
  			if (bParam2)
  			{
  				Global_73608[iVar0 /*9*/].f_1 = iParam1;
  			}
  			else
  			{
  				Global_73608[iVar0 /*9*/].f_1 = (Global_73608[iVar0 /*9*/].f_1 + iParam1);
  			}
  			return;
  		}
  		iVar0++;
  	}
  	if (Global_73608[iVar0 /*9*/] != -1)
  	{
  		if (Global_61737[Global_73608[iVar0 /*9*/] /*13*/] == 3)
  		{
  			if (Global_73608[iVar0 /*9*/].f_1 > 1)
  			{
  				Global_73608[iVar0 /*9*/].f_1 = 1;
  			}
  			if (Global_73608[iVar0 /*9*/].f_1 < 0)
  			{
  				Global_73608[iVar0 /*9*/].f_1 = 0;
  			}
  		}
  	}
  }
  
  void func_148(var uParam0, int iParam1, char* sParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7)
  {
  	uParam0->f_549 = iParam1;
  	StringCopy(&(uParam0->f_550), sParam2, 16);
  	uParam0->f_554 = iParam3;
  	uParam0->f_555 = iParam4;
  	uParam0->f_556 = iParam5;
  	uParam0->f_557 = iParam6;
  	uParam0->f_576 = iParam7;
  }
  
  void func_149()
  {
  	Global_92920 = 0;
  	Global_92921 = 0;
  }
  
  void func_150(var uParam0, int iParam1, char* sParam2, char* sParam3, int iParam4, int iParam5, int iParam6, int iParam7)
  {
  	int iVar0;
  	
  	if (uParam0->f_56 == 13)
  	{
  		return;
  	}
  	iVar0 = uParam0->f_56;
  	uParam0->f_57[iVar0] = iParam1;
  	StringCopy(&(uParam0->f_71[iVar0 /*16*/]), sParam2, 64);
  	StringCopy(&(uParam0->f_280[iVar0 /*16*/]), sParam3, 64);
  	uParam0->f_489[iVar0] = iParam4;
  	uParam0->f_503[iVar0] = iParam5;
  	uParam0->f_517[iVar0] = iParam6;
  	uParam0->f_531[iVar0] = iParam7;
  	uParam0->f_56++;
  }
  
  void func_151(var uParam0, char* sParam1, char* sParam2, int iParam3)
  {
  	StringCopy(&(uParam0->f_5), sParam1, 16);
  	StringCopy(&(uParam0->f_13), sParam2, 64);
  	uParam0->f_29 = iParam3;
  	uParam0->f_11 = 0;
  }
  
  void func_152()
  {
  	func_515(&(Global_111638.f_19958.f_1), 4194304);
  }
  
  void func_153()
  {
  	float fVar0;
  	
  	fVar0 = 480000f;
  	if (func_517() <= fVar0)
  	{
  		bLocal_126 = true;
  		iLocal_953 = 1;
  	}
  }
  
  void func_154(int* iParam0)
  {
  	if (func_497(iParam0))
  	{
  		if (!func_47(iParam0))
  		{
  			iParam0->f_2 = (func_46(MISC::IS_BIT_SET(*iParam0, 4)) - iParam0->f_1);
  			MISC::SET_BIT(iParam0, 2);
  		}
  	}
  }
  
  void func_155(int* iParam0, float fParam1)
  {
  	iParam0->f_1 = (func_46(MISC::IS_BIT_SET(*iParam0, 4)) - fParam1);
  	MISC::SET_BIT(iParam0, 1);
  	MISC::CLEAR_BIT(iParam0, 2);
  	iParam0->f_2 = 0f;
  }
  
  int func_156(var uParam0, var uParam1)
  {
  	int iVar0;
  	int iVar1;
  	char* sVar2;
  	
  	switch (iLocal_968)
  	{
  		case 1:
  			if (func_511())
  			{
  				iLocal_968 = 4;
  				break;
  			}
  			func_475(uParam1);
  			break;
  		
  		case 4:
  			uParam0->f_274 = 2;
  			if (bLocal_1203 && !iLocal_1205)
  			{
  				iLocal_1246 = Global_98744.f_12[0];
  				if (iLocal_1242 == 0)
  				{
  					iLocal_1230 = 0;
  					fLocal_1250 = fLocal_1250;
  				}
  				else if (iLocal_1242 == 1)
  				{
  					iLocal_1230 = 1;
  					if (IntToFloat(iLocal_1246) < ((fLocal_1250 * 3f) / 4f) || bLocal_1219)
  					{
  						fLocal_1250 = ((fLocal_1250 * 3f) / 4f);
  					}
  					else
  					{
  						fLocal_1250 = SYSTEM::TO_FLOAT(iLocal_1246);
  					}
  				}
  				else if (iLocal_1242 == 2)
  				{
  					iLocal_1230 = 2;
  					if (IntToFloat(iLocal_1246) < ((fLocal_1250 * 1f) / 2f) || bLocal_1219)
  					{
  						fLocal_1250 = ((fLocal_1250 * 1f) / 2f);
  					}
  					else
  					{
  						fLocal_1250 = SYSTEM::TO_FLOAT(iLocal_1246);
  					}
  				}
  				else if (iLocal_1242 == 3)
  				{
  					iLocal_1230 = 3;
  					if (IntToFloat(iLocal_1246) < ((fLocal_1250 * 1f) / 4f) || bLocal_1219)
  					{
  						fLocal_1250 = ((fLocal_1250 * 1f) / 4f);
  					}
  					else
  					{
  						fLocal_1250 = SYSTEM::TO_FLOAT(iLocal_1246);
  					}
  				}
  				else if (iLocal_1242 == 4)
  				{
  					fLocal_1250 = 540000f;
  				}
  				func_43(&iLocal_964);
  				if (iLocal_1242 < 4)
  				{
  					iLocal_1167 = iLocal_1230;
  				}
  				iLocal_1205 = 1;
  			}
  			else if (!func_497(&iLocal_964))
  			{
  				func_43(&iLocal_964);
  				Global_111638.f_19958.f_6 = 0f;
  			}
  			if (iLocal_1242 < 4)
  			{
  				func_464(uParam0);
  				func_463();
  			}
  			if (bLocal_1204)
  			{
  				func_456(uParam0, &uLocal_1596, 1);
  				MISC::CLEAR_AREA(Local_1256, 5f, true, false, false, false);
  				iVar1 = func_417(Local_1256, fLocal_1257);
  				if ((!VEHICLE::IS_THIS_MODEL_A_BOAT(ENTITY::GET_ENTITY_MODEL(iVar1)) && !VEHICLE::IS_THIS_MODEL_A_PLANE(ENTITY::GET_ENTITY_MODEL(iVar1))) && !VEHICLE::IS_THIS_MODEL_A_HELI(ENTITY::GET_ENTITY_MODEL(iVar1)))
  				{
  					VEHICLE::SET_VEHICLE_ON_GROUND_PROPERLY(iVar1, 5f);
  				}
  				else
  				{
  					VEHICLE::DELETE_VEHICLE(&iVar1);
  				}
  			}
  			else
  			{
  				func_456(uParam0, &uLocal_1596, 0);
  			}
  			if (iLocal_1167 == 0 && iLocal_1242 != 4)
  			{
  				func_416();
  			}
  			if (bLocal_1203)
  			{
  				func_413(0, -1, 1);
  				if (CAM::IS_SCREEN_FADED_OUT())
  				{
  					CAM::SET_GAMEPLAY_CAM_RELATIVE_HEADING(0f);
  					CAM::SET_GAMEPLAY_CAM_RELATIVE_PITCH(0f, 1f);
  				}
  			}
  			func_412(500);
  			if (iLocal_1242 < 4)
  			{
  				iLocal_968 = 5;
  			}
  			else
  			{
  				PLAYER::CLEAR_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID());
  				iLocal_968 = 12;
  			}
  			break;
  		
  		case 5:
  			if (func_398(uParam0, &uLocal_1596, 0) && func_387(uParam0))
  			{
  				iLocal_968 = 6;
  			}
  			break;
  		
  		case 6:
  			SYSTEM::SETTIMERA(0);
  			func_373();
  			func_303();
  			iLocal_1246 = iLocal_1245;
  			Global_98744.f_12[0] = iLocal_1246;
  			if (!HUD::DOES_BLIP_EXIST(uParam1->f_2))
  			{
  				uParam1->f_2 = HUD::ADD_BLIP_FOR_COORD(uParam0->f_6);
  				HUD::SET_BLIP_ROUTE(uParam1->f_2, true);
  				HUD::SET_BLIP_ROUTE_COLOUR(uParam1->f_2, 1);
  				HUD::SET_BLIP_COLOUR(uParam1->f_2, 1);
  			}
  			iLocal_968 = 7;
  			break;
  		
  		case 7:
  			func_302();
  			if (!iLocal_1224)
  			{
  				if (SYSTEM::TIMERA() > 15000)
  				{
  					func_300();
  					iLocal_1224 = 1;
  				}
  			}
  			if (iLocal_1230 == 0)
  			{
  				func_285();
  			}
  			func_284(uParam0, uParam1);
  			if (bLocal_1215)
  			{
  				func_283();
  			}
  			func_282();
  			if (iLocal_1167 >= 2)
  			{
  				if (ENTITY::DOES_ENTITY_EXIST(iLocal_1259))
  				{
  					if (func_281(iLocal_1259, PLAYER::PLAYER_PED_ID(), 1) > 500f)
  					{
  						ENTITY::SET_VEHICLE_AS_NO_LONGER_NEEDED(&iLocal_1259);
  					}
  				}
  			}
  			if (!iLocal_1226)
  			{
  				if (iLocal_1167 == 0)
  				{
  					if (func_280(uParam0->f_6, 1) < 400f || func_280(uParam0->f_1, 1) < 400f)
  					{
  						if (func_279(uParam0))
  						{
  							func_274(uParam0, &Local_971);
  							func_272(uParam0, &Local_971);
  							iLocal_1226 = 1;
  						}
  					}
  				}
  				else if (iLocal_1167 == 1)
  				{
  					if (func_280(uParam0->f_6, 1) < 400f || func_280(uParam0->f_1, 1) < 400f)
  					{
  						if (func_271(uParam0))
  						{
  							func_274(uParam0, &Local_971);
  							func_272(uParam0, &Local_971);
  							iLocal_1226 = 1;
  						}
  					}
  				}
  				else if (iLocal_1167 == 2)
  				{
  					if (func_280(uParam0->f_6, 1) < 400f || func_280(uParam0->f_1, 1) < 400f)
  					{
  						if (func_270(uParam0))
  						{
  							func_274(uParam0, &Local_971);
  							func_272(uParam0, &Local_971);
  							iLocal_1226 = 1;
  						}
  					}
  				}
  				else if (iLocal_1167 == 3)
  				{
  					if (func_280(uParam0->f_6, 1) < 500f || func_280(uParam0->f_1, 1) < 500f)
  					{
  						if (func_269(uParam0))
  						{
  							func_274(uParam0, &Local_971);
  							func_272(uParam0, &Local_971);
  							iLocal_1226 = 1;
  						}
  					}
  				}
  			}
  			else if (func_268(&Local_971, uParam0) || (iLocal_1206 == 1 && iLocal_1167 == 2))
  			{
  				if (iLocal_1167 == 0)
  				{
  					func_266(1);
  				}
  				iLocal_968 = 11;
  			}
  			else if (!func_265(&Local_971))
  			{
  				if ((func_264(uParam0, uParam1) || (PLAYER::IS_PLAYER_TARGETTING_ENTITY(PLAYER::PLAYER_ID(), *uParam1) && func_263(*uParam1, 1) < 150f)) || (PLAYER::IS_PLAYER_FREE_AIMING_AT_ENTITY(PLAYER::PLAYER_ID(), *uParam1) && func_263(*uParam1, 1) < 150f))
  				{
  					func_262(*uParam1);
  					iLocal_968 = 10;
  				}
  				else if (iLocal_1167 == 0)
  				{
  					if (!iLocal_1209)
  					{
  						func_261(uParam0, uParam1);
  					}
  				}
  				else if (iLocal_1167 == 1)
  				{
  					func_260(uParam1);
  				}
  			}
  			else
  			{
  				iLocal_1208 = 1;
  				func_262(*uParam1);
  				iLocal_968 = 10;
  			}
  			break;
  		
  		case 10:
  			func_284(uParam0, uParam1);
  			if (func_268(&Local_971, uParam0) || iLocal_1206)
  			{
  				if (iLocal_1206 && !PED::IS_PED_INJURED(*uParam1))
  				{
  					func_258();
  					AUDIO::PLAY_PAIN(*uParam1, 1, 0, 0);
  				}
  				func_257(&uLocal_1460, 0, 0);
  				if (!func_497(&iLocal_1279))
  				{
  					func_43(&iLocal_1279);
  				}
  				else
  				{
  					func_44(&iLocal_1279);
  				}
  				if (iLocal_1167 == 0)
  				{
  					func_266(1);
  				}
  				func_256();
  				SYSTEM::SETTIMERA(0);
  				iLocal_968 = 11;
  			}
  			else
  			{
  				func_187(uParam0, &Local_971);
  			}
  			break;
  		
  		case 11:
  			if (iLocal_1167 == 0)
  			{
  				sVar2 = "OJAS_BDCOM";
  			}
  			else if (iLocal_1167 == 1)
  			{
  				sVar2 = "OJAS_YACOM";
  			}
  			else if (iLocal_1167 == 2)
  			{
  				sVar2 = "OJAS_WWCOM";
  			}
  			else if (iLocal_1167 == 3)
  			{
  				sVar2 = "OJAS_BICOM";
  			}
  			if (HUD::DOES_BLIP_EXIST(uParam1->f_2))
  			{
  				HUD::REMOVE_BLIP(&(uParam1->f_2));
  			}
  			func_186(&iLocal_1227, &(uParam1->f_16), "OJASAUD", sVar2, 9, 1, 0, 0);
  			if (iLocal_1227 || SYSTEM::TIMERA() > 1000)
  			{
  				if (!PED::IS_PED_INJURED(*uParam1) && iLocal_1167 == 2)
  				{
  					ENTITY::SET_ENTITY_HEALTH(*uParam1, 0, 0);
  				}
  				if (iLocal_1167 == 1)
  				{
  					if (!PED::IS_PED_INJURED(uParam1->f_7))
  					{
  						TASK::OPEN_SEQUENCE_TASK(&iVar0);
  						TASK::TASK_PLAY_ANIM(0, "oddjobs@assassinate@multi@yachttarget@lapdance", "exit_quick_f", 8f, -8f, -1, 0, 0f, false, false, false);
  						TASK::TASK_PLAY_ANIM(0, "oddjobs@assassinate@multi@yachttarget@lapdance", "exit_cower_loop_f", 1000f, -8f, -1, 1, 0f, false, false, false);
  						TASK::CLOSE_SEQUENCE_TASK(iVar0);
  						TASK::TASK_PERFORM_SEQUENCE(uParam1->f_7, iVar0);
  						TASK::CLEAR_SEQUENCE_TASK(&iVar0);
  					}
  					if (ENTITY::DOES_ENTITY_EXIST(uParam1->f_1))
  					{
  						if (VEHICLE::IS_VEHICLE_DRIVEABLE(uParam1->f_1, false))
  						{
  							VEHICLE::SET_VEHICLE_HAS_BEEN_DRIVEN_FLAG(uParam1->f_1, false);
  						}
  					}
  				}
  				iLocal_1230++;
  				if (iLocal_1230 >= 4)
  				{
  					iLocal_968 = 12;
  				}
  				else
  				{
  					func_166(uParam0, &Local_971);
  					func_164(uParam0);
  					iLocal_968 = 4;
  				}
  			}
  			break;
  		
  		case 12:
  			if (PLAYER::GET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID()) == 0)
  			{
  				if (func_161(uParam1))
  				{
  					return 1;
  				}
  			}
  			else if (!iLocal_956)
  			{
  				func_160("ASS_ML_COPS", 7500, 1);
  				func_44(&iLocal_1285);
  				iLocal_956 = 1;
  			}
  			else if (func_157(&iLocal_1285, 2f))
  			{
  				AUDIO::PLAY_POLICE_REPORT("SCRIPTED_SCANNER_REPORT_ASS_MULTI_01", 0f);
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_157(int* iParam0, float fParam1)
  {
  	if (func_159(iParam0, fParam1))
  	{
  		func_158(iParam0);
  		return 1;
  	}
  	return 0;
  }
  
  void func_158(var uParam0)
  {
  	uParam0->f_1 = 0f;
  	uParam0->f_2 = 0f;
  	*uParam0 = 0;
  }
  
  int func_159(var uParam0, float fParam1)
  {
  	if (func_497(uParam0))
  	{
  		if (func_45(uParam0) > fParam1)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_160(char* sParam0, int iParam1, int iParam2)
  {
  	iParam2 = iParam2;
  	HUD::BEGIN_TEXT_COMMAND_PRINT(sParam0);
  	HUD::END_TEXT_COMMAND_PRINT(iParam1, true);
  }
  
  int func_161(var uParam0)
  {
  	if (!func_497(&iLocal_1282))
  	{
  		func_43(&iLocal_1282);
  	}
  	else
  	{
  		if (!iLocal_1220)
  		{
  			if (func_45(&iLocal_1282) > 5f)
  			{
  				func_38(&(uParam0->f_16), 1, PLAYER::PLAYER_PED_ID(), "FRANKLIN", 0, 1);
  				func_38(&(uParam0->f_16), 3, 0, "LESTER", 0, 1);
  				if (func_163(&(uParam0->f_16), 12, "OJASAUD", "OJAS_MULTI_C", 14, 1, 0, 0, 0))
  				{
  					iLocal_1220 = 1;
  				}
  			}
  		}
  		if (iLocal_1220 && func_162())
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_162()
  {
  	if (Global_20805 == 0)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_163(var uParam0, int iParam1, char* sParam2, char* sParam3, int iParam4, int iParam5, int iParam6, int iParam7, bool bParam8)
  {
  	func_37(uParam0, iParam1, sParam2, iParam6, iParam7, 0);
  	Global_20853 = 0;
  	Global_20812 = 1;
  	Global_20819 = 0;
  	Global_20814 = 0;
  	Global_21796 = 0;
  	Global_21798 = 0;
  	Global_21802 = 0;
  	Global_20810 = 0;
  	Global_20857 = 0;
  	Global_20859 = 0;
  	if (iParam5 == 1)
  	{
  		Global_20817 = 1;
  	}
  	else
  	{
  		Global_20817 = 0;
  	}
  	Global_2621441 = 0;
  	return func_23(sParam3, iParam4, bParam8);
  }
  
  void func_164(var uParam0)
  {
  	int iVar0;
  	
  	iLocal_1202 = 0;
  	iLocal_1167 = iLocal_1230;
  	iLocal_1168 = 0;
  	iLocal_969 = 0;
  	Local_121.f_3 = 0;
  	uParam0->f_5 = 0;
  	uParam0->f_17 = 0;
  	*uParam0 = 0;
  	uParam0->f_1 = { func_165() };
  	uParam0->f_4 = 0f;
  	uParam0->f_14 = 0;
  	uParam0->f_18 = { func_165() };
  	uParam0->f_16 = 0;
  	uParam0->f_22 = { func_165() };
  	uParam0->f_25 = 0f;
  	uParam0->f_17 = 0;
  	uParam0->f_30 = { func_165() };
  	uParam0->f_33 = 0f;
  	uParam0->f_5 = 0;
  	uParam0->f_9 = { func_165() };
  	uParam0->f_12 = 0f;
  	uParam0->f_6 = { func_165() };
  	uParam0->f_271 = { func_165() };
  	uParam0->f_13 = 0;
  	iVar0 = 0;
  	while (iVar0 < 4)
  	{
  		uParam0->f_249[iVar0 /*3*/] = { func_165() };
  		iVar0++;
  	}
  }
  
  Vector3 func_165()
  {
  	struct<3> Var0;
  	
  	return Var0;
  }
  
  void func_166(var uParam0, int* iParam1)
  {
  	int iVar0;
  	
  	func_185();
  	func_184();
  	func_179(iParam1, uParam0);
  	func_178(&(uParam0->f_34));
  	func_177(&(uParam0->f_46));
  	func_176(&(uParam0->f_34));
  	func_174(&(uParam0->f_46));
  	func_168(&uLocal_1596, 0);
  	*iParam1 = 0;
  	if (iLocal_1167 != 1)
  	{
  		ENTITY::SET_VEHICLE_AS_NO_LONGER_NEEDED(&(iParam1->f_1));
  		if (ENTITY::DOES_ENTITY_EXIST(iLocal_1259))
  		{
  			ENTITY::SET_VEHICLE_AS_NO_LONGER_NEEDED(&iLocal_1259);
  		}
  	}
  	else if (ENTITY::DOES_ENTITY_EXIST(iParam1->f_1))
  	{
  		iLocal_1259 = iParam1->f_1;
  	}
  	if (ENTITY::DOES_ENTITY_EXIST(iLocal_1258))
  	{
  		ENTITY::SET_VEHICLE_AS_NO_LONGER_NEEDED(&iLocal_1258);
  	}
  	if (ENTITY::DOES_ENTITY_EXIST(iLocal_1261))
  	{
  		ENTITY::SET_VEHICLE_AS_NO_LONGER_NEEDED(&iLocal_1261);
  	}
  	if (ENTITY::DOES_ENTITY_EXIST(iLocal_1260))
  	{
  		ENTITY::SET_VEHICLE_AS_NO_LONGER_NEEDED(&iLocal_1260);
  	}
  	iLocal_1208 = 0;
  	iLocal_1238 = 0;
  	iLocal_132 = 0;
  	iLocal_1211 = 0;
  	iLocal_1210 = 0;
  	iLocal_1206 = 0;
  	iLocal_1224 = 0;
  	iLocal_1232 = 0;
  	iLocal_1227 = 0;
  	iLocal_1226 = 0;
  	iLocal_1228 = 0;
  	iLocal_1222 = 0;
  	iLocal_1229 = 0;
  	iVar0 = 3;
  	while (iVar0 <= 9)
  	{
  		func_167(&(iParam1->f_16), iVar0);
  		iVar0++;
  	}
  }
  
  void func_167(var uParam0, int iParam1)
  {
  	if ((uParam0[iParam1 /*10*/])->f_7 == 1)
  	{
  		(uParam0[iParam1 /*10*/])->f_7 = 0;
  	}
  }
  
  void func_168(var uParam0, bool bParam1)
  {
  	int iVar0;
  	
  	if (!bParam1)
  	{
  		func_170(uParam0);
  	}
  	iVar0 = 0;
  	while (iVar0 < 15)
  	{
  		func_169(uParam0[iVar0 /*18*/]);
  		iVar0++;
  	}
  	uParam0->f_271 = 0;
  	uParam0->f_272 = -1;
  	uParam0->f_273 = 1;
  }
  
  void func_169(var uParam0)
  {
  	*uParam0 = 0;
  	uParam0->f_1 = -1;
  	StringCopy(&(uParam0->f_2), "NULL", 64);
  }
  
  void func_170(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 15)
  	{
  		if (MISC::IS_BIT_SET((*uParam0)[iVar0 /*18*/], 30))
  		{
  			func_171(uParam0[iVar0 /*18*/]);
  		}
  		iVar0++;
  	}
  	uParam0->f_271 = 1;
  }
  
  void func_171(var uParam0)
  {
  	func_172(*uParam0, &(uParam0->f_2), uParam0->f_1);
  }
  
  void func_172(int iParam0, char* sParam1, int iParam2)
  {
  	if (MISC::IS_BIT_SET(iParam0, 30))
  	{
  		switch (func_173(iParam0))
  		{
  			case 0:
  				STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(iParam2);
  				break;
  			
  			case 1:
  				STREAMING::REMOVE_ANIM_DICT(sParam1);
  				break;
  			
  			case 2:
  				STREAMING::REMOVE_CLIP_SET(sParam1);
  				break;
  			
  			case 3:
  				GRAPHICS::SET_STREAMED_TEXTURE_DICT_AS_NO_LONGER_NEEDED(sParam1);
  				break;
  			
  			case 4:
  				VEHICLE::REMOVE_VEHICLE_RECORDING(iParam2, sParam1);
  				break;
  			
  			case 5:
  				TASK::REMOVE_WAYPOINT_RECORDING(sParam1);
  				break;
  			
  			case 6:
  				AUDIO::RELEASE_SCRIPT_AUDIO_BANK();
  				break;
  			
  			case 7:
  				SCRIPT::SET_SCRIPT_WITH_NAME_HASH_AS_NO_LONGER_NEEDED(iParam2);
  				break;
  			
  			case 8:
  				HUD::CLEAR_ADDITIONAL_TEXT(iParam2, MISC::IS_BIT_SET(iParam0, 26));
  				break;
  			
  			case 9:
  				STREAMING::REMOVE_PTFX_ASSET();
  				break;
  			
  			default:
  				break;
  		}
  	}
  }
  
  int func_173(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 10)
  	{
  		if (MISC::IS_BIT_SET(iParam0, iVar0))
  		{
  			return iVar0;
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  void func_174(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		(*uParam0)[iVar0] = func_175();
  		iVar0++;
  	}
  }
  
  var func_175()
  {
  	var uVar0;
  	
  	return uVar0;
  }
  
  void func_176(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		(*uParam0)[iVar0] = 0;
  		iVar0++;
  	}
  }
  
  void func_177(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		if (!MISC::IS_STRING_NULL_OR_EMPTY((*uParam0)[iVar0]))
  		{
  			STREAMING::REMOVE_ANIM_DICT((*uParam0)[iVar0]);
  		}
  		iVar0++;
  	}
  }
  
  void func_178(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		if ((*uParam0)[iVar0] != 0)
  		{
  			STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED((*uParam0)[iVar0]);
  		}
  		iVar0++;
  	}
  }
  
  void func_179(int* iParam0, var uParam1)
  {
  	func_183(iParam0, uParam1);
  	func_182(iParam0, uParam1);
  	func_181(iParam0, uParam1);
  	func_180(iParam0, uParam1);
  }
  
  void func_180(int* iParam0, var uParam1)
  {
  	if (*uParam1 != 0)
  	{
  		STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(*uParam1);
  	}
  	if (ENTITY::DOES_ENTITY_EXIST(*iParam0))
  	{
  		ENTITY::SET_PED_AS_NO_LONGER_NEEDED(iParam0);
  	}
  }
  
  void func_181(int* iParam0, var uParam1)
  {
  	if (*uParam1 != 0)
  	{
  		STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(*uParam1);
  	}
  	if (ENTITY::DOES_ENTITY_EXIST(*iParam0))
  	{
  		ENTITY::SET_PED_AS_NO_LONGER_NEEDED(iParam0);
  	}
  }
  
  void func_182(int* iParam0, var uParam1)
  {
  	if (*uParam1 != 0)
  	{
  		STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(*uParam1);
  	}
  	if (uParam1->f_14 != 0)
  	{
  		STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(uParam1->f_14);
  	}
  	if (ENTITY::DOES_ENTITY_EXIST(*iParam0))
  	{
  		ENTITY::SET_PED_AS_NO_LONGER_NEEDED(iParam0);
  	}
  	if (ENTITY::DOES_ENTITY_EXIST(iParam0->f_7))
  	{
  		ENTITY::SET_PED_AS_NO_LONGER_NEEDED(&(iParam0->f_7));
  	}
  	if (ENTITY::DOES_ENTITY_EXIST(iParam0->f_9))
  	{
  		ENTITY::SET_PED_AS_NO_LONGER_NEEDED(&(iParam0->f_9));
  	}
  }
  
  void func_183(int* iParam0, var uParam1)
  {
  	int iVar0;
  	
  	if (*uParam1 != 0)
  	{
  		STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(*uParam1);
  	}
  	STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(joaat("a_f_y_beach_01"));
  	STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(joaat("a_f_y_fitness_02"));
  	if (ENTITY::DOES_ENTITY_EXIST(*iParam0))
  	{
  		ENTITY::SET_PED_AS_NO_LONGER_NEEDED(iParam0);
  	}
  	iVar0 = 0;
  	while (iVar0 <= 1)
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(Local_1870[iVar0 /*9*/]))
  		{
  			ENTITY::SET_PED_AS_NO_LONGER_NEEDED(&(Local_1870[iVar0 /*9*/]));
  		}
  		iVar0++;
  	}
  }
  
  void func_184()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 4)
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(iLocal_1262[iVar0]))
  		{
  			ENTITY::SET_VEHICLE_AS_NO_LONGER_NEEDED(&(iLocal_1262[iVar0]));
  		}
  		iVar0++;
  	}
  }
  
  void func_185()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 3)
  	{
  		if (iLocal_1265[iVar0] != 0)
  		{
  			STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(iLocal_1265[iVar0]);
  		}
  		iVar0++;
  	}
  }
  
  int func_186(var uParam0, var uParam1, char* sParam2, char* sParam3, int iParam4, int iParam5, int iParam6, int iParam7)
  {
  	if (!*uParam0)
  	{
  		if (func_22(uParam1, sParam2, sParam3, iParam4, iParam5, iParam6, iParam7))
  		{
  			*uParam0 = 1;
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_187(var uParam0, int iParam1)
  {
  	switch (iLocal_1167)
  	{
  		case 0:
  			func_244(uParam0, iParam1);
  			break;
  		
  		case 1:
  			func_234(uParam0, iParam1);
  			break;
  		
  		case 2:
  			func_232(iParam1);
  			break;
  		
  		case 3:
  			func_218(uParam0, iParam1);
  			break;
  	}
  	func_188(&uLocal_1460, *iParam1, 0, 0, 1, 1, 1);
  }
  
  void func_188(var uParam0, int iParam1, char* sParam2, int iParam3, bool bParam4, int iParam5, bool bParam6)
  {
  	func_189(uParam0, iParam1, sParam2, iParam3, bParam4, iParam5, bParam6);
  }
  
  void func_189(var uParam0, int iParam1, char* sParam2, int iParam3, bool bParam4, var uParam5, bool bParam6)
  {
  	func_190(uParam0, iParam1, 0f, 0f, 0f, sParam2, iParam3, bParam4, uParam5, bParam6);
  }
  
  void func_190(var uParam0, int iParam1, struct<3> Param2, char* sParam3, int iParam4, bool bParam5, var uParam6, bool bParam7)
  {
  	if (!PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), true))
  	{
  		func_257(uParam0, 0, 0);
  	}
  	uParam0->f_6 = 2;
  	func_191(uParam0, iParam1, Param2, sParam3, iParam4, bParam5, uParam6, bParam7);
  }
  
  void func_191(var uParam0, int iParam1, struct<3> Param2, char* sParam3, int iParam4, bool bParam5, var uParam6, bool bParam7)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (uParam0->f_1 && CAM::IS_GAMEPLAY_HINT_ACTIVE())
  	{
  		if (MISC::GET_GAME_TIMER() >= (uParam0->f_8 + uParam0->f_9))
  		{
  			uParam0->f_1 = 0;
  		}
  	}
  	iVar0 = sParam3;
  	if (MISC::IS_STRING_NULL(iVar0))
  	{
  		if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  		{
  			iVar0 = "CMN_HINT";
  		}
  		else
  		{
  			iVar0 = "FM_IHELP_HNT";
  		}
  	}
  	if (func_217(iVar0))
  	{
  		func_216();
  	}
  	if (func_215(iParam1) && ENTITY::IS_ENTITY_VISIBLE(iParam1))
  	{
  		iVar1 = 0;
  		if (ENTITY::IS_ENTITY_A_PED(iParam1))
  		{
  			PED::REQUEST_PED_VISIBILITY_TRACKING(ENTITY::GET_PED_INDEX_FROM_ENTITY_INDEX(iParam1));
  			PED::REQUEST_PED_VEHICLE_VISIBILITY_TRACKING(ENTITY::GET_PED_INDEX_FROM_ENTITY_INDEX(iParam1), true);
  			if (PED::IS_TRACKED_PED_VISIBLE(ENTITY::GET_PED_INDEX_FROM_ENTITY_INDEX(iParam1)))
  			{
  				iVar1 = 1;
  			}
  		}
  		else if (ENTITY::IS_ENTITY_A_VEHICLE(iParam1))
  		{
  			VEHICLE::TRACK_VEHICLE_VISIBILITY(ENTITY::GET_VEHICLE_INDEX_FROM_ENTITY_INDEX(iParam1));
  			if (VEHICLE::IS_VEHICLE_VISIBLE(ENTITY::GET_VEHICLE_INDEX_FROM_ENTITY_INDEX(iParam1)))
  			{
  				iVar1 = 1;
  			}
  		}
  		else if (ENTITY::IS_ENTITY_AN_OBJECT(iParam1))
  		{
  			OBJECT::TRACK_OBJECT_VISIBILITY(ENTITY::GET_OBJECT_INDEX_FROM_ENTITY_INDEX(iParam1));
  			if (OBJECT::IS_OBJECT_VISIBLE(ENTITY::GET_OBJECT_INDEX_FROM_ENTITY_INDEX(iParam1)))
  			{
  				iVar1 = 1;
  			}
  		}
  		if (!CAM::IS_GAMEPLAY_HINT_ACTIVE())
  		{
  			if (func_210(uParam0, bParam5, bParam7, 0))
  			{
  				func_206(uParam0, iParam1, Param2, iParam4);
  			}
  			if (*uParam0)
  			{
  				*uParam0 = 0;
  			}
  			else if (uParam0->f_6 == 2)
  			{
  				if (func_196(iVar0))
  				{
  					if ((MISC::IS_STRING_NULL(uParam0->f_3) && !MISC::IS_STRING_NULL(iVar0)) && PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  					{
  						if ((iVar1 && !HUD::IS_HELP_MESSAGE_BEING_DISPLAYED()) && uParam6)
  						{
  							if (!func_217(iVar0))
  							{
  								func_195(iVar0, -1);
  								uParam0->f_3 = iVar0;
  								if (MISC::ARE_STRINGS_EQUAL("CMN_HINT", iVar0))
  								{
  									func_194(1);
  								}
  							}
  						}
  					}
  				}
  			}
  			else if (func_196(iVar0))
  			{
  				if (MISC::IS_STRING_NULL(uParam0->f_3) && !MISC::IS_STRING_NULL(iVar0))
  				{
  					if (((ENTITY::IS_ENTITY_ON_SCREEN(iParam1) && iVar1) && !HUD::IS_HELP_MESSAGE_BEING_DISPLAYED()) && uParam6)
  					{
  						if (!func_217(iVar0))
  						{
  							func_195(iVar0, -1);
  							uParam0->f_3 = iVar0;
  							if (MISC::ARE_STRINGS_EQUAL("CMN_HINT", iVar0))
  							{
  								func_194(1);
  							}
  						}
  					}
  				}
  			}
  		}
  		else
  		{
  			if (!MISC::IS_STRING_NULL(sParam3))
  			{
  				if (func_217(sParam3))
  				{
  					HUD::CLEAR_HELP(true);
  				}
  			}
  			if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), true))
  			{
  				if (PED::IS_PED_IN_ANY_BOAT(PLAYER::PLAYER_PED_ID()))
  				{
  					if (CAM::_0xEE778F8C7E1142E2(3) == 3 || CAM::_0xEE778F8C7E1142E2(3) == 4)
  					{
  						func_257(uParam0, iVar0, 1);
  					}
  				}
  				else if (PED::IS_PED_IN_ANY_HELI(PLAYER::PLAYER_PED_ID()))
  				{
  					if (CAM::_0xEE778F8C7E1142E2(6) == 3 || CAM::_0xEE778F8C7E1142E2(6) == 4)
  					{
  						func_257(uParam0, iVar0, 1);
  					}
  				}
  				else if (PED::IS_PED_IN_ANY_PLANE(PLAYER::PLAYER_PED_ID()))
  				{
  					if (CAM::_0xEE778F8C7E1142E2(4) == 3 || CAM::_0xEE778F8C7E1142E2(4) == 4)
  					{
  						func_257(uParam0, iVar0, 1);
  					}
  				}
  				else if (PED::IS_PED_IN_ANY_SUB(PLAYER::PLAYER_PED_ID()))
  				{
  					if (CAM::_0xEE778F8C7E1142E2(5) == 3 || CAM::_0xEE778F8C7E1142E2(5) == 4)
  					{
  						func_257(uParam0, iVar0, 1);
  					}
  				}
  				else if (PED::IS_PED_ON_ANY_BIKE(PLAYER::PLAYER_PED_ID()))
  				{
  					if (CAM::_0xEE778F8C7E1142E2(2) == 3 || CAM::_0xEE778F8C7E1142E2(2) == 4)
  					{
  						func_257(uParam0, iVar0, 1);
  					}
  				}
  				else if (CAM::GET_FOLLOW_VEHICLE_CAM_VIEW_MODE() == 3 || CAM::GET_FOLLOW_VEHICLE_CAM_VIEW_MODE() == 4)
  				{
  					func_257(uParam0, iVar0, 1);
  				}
  			}
  			if (!func_210(uParam0, bParam5, bParam7, 0))
  			{
  				if ((!*uParam0 && !uParam0->f_1) && !func_193(uParam0))
  				{
  					func_192(uParam0);
  				}
  			}
  		}
  	}
  	else
  	{
  		func_257(uParam0, iVar0, 0);
  	}
  }
  
  void func_192(var uParam0)
  {
  	if (func_215(PLAYER::PLAYER_PED_ID()))
  	{
  		TASK::TASK_CLEAR_LOOK_AT(PLAYER::PLAYER_PED_ID());
  	}
  	if (CAM::IS_GAMEPLAY_HINT_ACTIVE())
  	{
  		CAM::SET_CINEMATIC_BUTTON_ACTIVE(true);
  		CAM::STOP_GAMEPLAY_HINT(false);
  		AUDIO::STOP_AUDIO_SCENE("HINT_CAM_SCENE");
  		GRAPHICS::ANIMPOSTFX_STOP("FocusIn");
  		if (uParam0->f_11)
  		{
  			GRAPHICS::ANIMPOSTFX_PLAY("FocusOut", 0, false);
  			AUDIO::PLAY_SOUND_FRONTEND(-1, "FocusOut", "HintCamSounds", true);
  			uParam0->f_11 = 0;
  		}
  	}
  	uParam0->f_2 = -1;
  	*uParam0 = 1;
  }
  
  int func_193(var uParam0)
  {
  	int iVar0;
  	
  	if (uParam0->f_2 > 0)
  	{
  		iVar0 = (uParam0->f_10 / 2);
  		if (uParam0->f_2 + iVar0) > MISC::GET_GAME_TIMER()
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_194(bool bParam0)
  {
  	switch (Global_41431)
  	{
  		case 0:
  		case 3:
  			if (bParam0)
  			{
  				Global_111638.f_10044.f_100++;
  			}
  			return Global_111638.f_10044.f_100;
  			break;
  		
  		case 4:
  			if (bParam0)
  			{
  				Global_111638.f_10044.f_101++;
  			}
  			return Global_111638.f_10044.f_101;
  			break;
  		
  		case 5:
  		case 15:
  			if (bParam0)
  			{
  				Global_111638.f_10044.f_102++;
  			}
  			return Global_111638.f_10044.f_102;
  			break;
  		
  		default:
  			break;
  	}
  	return 3;
  }
  
  void func_195(char* sParam0, int iParam1)
  {
  	HUD::BEGIN_TEXT_COMMAND_DISPLAY_HELP(sParam0);
  	HUD::END_TEXT_COMMAND_DISPLAY_HELP(0, false, true, iParam1);
  }
  
  int func_196(char* sParam0)
  {
  	if (!func_197(1, 1, 0))
  	{
  		if ((!MISC::IS_STRING_NULL_OR_EMPTY(sParam0) && func_217(sParam0)) || func_217("CMN_HINT"))
  		{
  			HUD::CLEAR_HELP(true);
  		}
  		return 0;
  	}
  	switch (Global_41431)
  	{
  		case 0:
  		case 3:
  			if (func_194(0) < 3)
  			{
  				return 1;
  			}
  			break;
  		
  		case 4:
  			if (func_194(0) < 1)
  			{
  				return 1;
  			}
  			break;
  		
  		case 5:
  		case 15:
  			if (func_194(0) < 1)
  			{
  				return 1;
  			}
  			break;
  		
  		default:
  			break;
  	}
  	return 0;
  }
  
  int func_197(bool bParam0, bool bParam1, bool bParam2)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (bParam0)
  	{
  		if (!PLAYER::IS_PLAYER_CONTROL_ON(PLAYER::PLAYER_ID()))
  		{
  			return 0;
  		}
  	}
  	if (bParam2)
  	{
  		return 1;
  	}
  	if (STREAMING::IS_PLAYER_SWITCH_IN_PROGRESS())
  	{
  		return 0;
  	}
  	if (func_135(0))
  	{
  		return 0;
  	}
  	if (func_205())
  	{
  		return 0;
  	}
  	if (NETWORK::_NETWORK_IS_TEXT_CHAT_ACTIVE())
  	{
  		return 0;
  	}
  	if (Global_73825)
  	{
  		return 0;
  	}
  	if (SCRIPT::_GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH(joaat("appinternet")) > 0)
  	{
  		return 0;
  	}
  	if (Global_58693)
  	{
  		return 0;
  	}
  	if (bParam1)
  	{
  		if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), true))
  		{
  			if (PED::IS_PED_IN_ANY_BOAT(PLAYER::PLAYER_PED_ID()))
  			{
  				if (CAM::_0xEE778F8C7E1142E2(3) == 3 || CAM::_0xEE778F8C7E1142E2(3) == 4)
  				{
  					return 0;
  				}
  			}
  			else if (PED::IS_PED_IN_ANY_HELI(PLAYER::PLAYER_PED_ID()))
  			{
  				if (CAM::_0xEE778F8C7E1142E2(6) == 3 || CAM::_0xEE778F8C7E1142E2(6) == 4)
  				{
  					return 0;
  				}
  			}
  			else if (PED::IS_PED_IN_ANY_PLANE(PLAYER::PLAYER_PED_ID()))
  			{
  				if (CAM::_0xEE778F8C7E1142E2(4) == 3 || CAM::_0xEE778F8C7E1142E2(4) == 4)
  				{
  					return 0;
  				}
  			}
  			else if (PED::IS_PED_IN_ANY_SUB(PLAYER::PLAYER_PED_ID()))
  			{
  				if (CAM::_0xEE778F8C7E1142E2(5) == 3 || CAM::_0xEE778F8C7E1142E2(5) == 4)
  				{
  					return 0;
  				}
  			}
  			else if (PED::IS_PED_ON_ANY_BIKE(PLAYER::PLAYER_PED_ID()))
  			{
  				if (CAM::_0xEE778F8C7E1142E2(2) == 3 || CAM::_0xEE778F8C7E1142E2(2) == 4)
  				{
  					return 0;
  				}
  			}
  			else if (CAM::GET_FOLLOW_VEHICLE_CAM_VIEW_MODE() == 3 || CAM::GET_FOLLOW_VEHICLE_CAM_VIEW_MODE() == 4)
  			{
  				return 0;
  			}
  			if (CAM::IS_GAMEPLAY_CAM_LOOKING_BEHIND())
  			{
  				return 0;
  			}
  		}
  	}
  	if ((func_204() || func_203(Global_4456448.f_232883)) || func_202())
  	{
  		if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  		{
  			iVar0 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  			iVar1 = func_201(PLAYER::PLAYER_PED_ID(), 0);
  			if (((VEHICLE::IS_TURRET_SEAT(iVar0, iVar1) || (ENTITY::GET_ENTITY_MODEL(iVar0) == joaat("apc") && iVar1 != -1)) || (ENTITY::GET_ENTITY_MODEL(iVar0) == joaat("akula") && iVar1 != -1)) || (((ENTITY::GET_ENTITY_MODEL(iVar0) == joaat("riot2") && iVar1 == 0) && func_200(iVar0, 10)) && VEHICLE::GET_VEHICLE_MOD(iVar0, 10) != -1))
  			{
  				return 0;
  			}
  		}
  	}
  	if (Global_1686722)
  	{
  		return 0;
  	}
  	if (func_198(PLAYER::PLAYER_ID()))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_198(int iParam0)
  {
  	if (iParam0 != func_28())
  	{
  		if (func_199(iParam0, 1, 1))
  		{
  			return Global_2425662[iParam0 /*421*/].f_310.f_5 != -1;
  		}
  		else if ((Global_1312877 && iParam0 == PLAYER::PLAYER_ID()) && func_199(iParam0, 1, 0))
  		{
  			return Global_2425662[iParam0 /*421*/].f_310.f_5 != -1;
  		}
  	}
  	return 0;
  }
  
  int func_199(int iParam0, bool bParam1, bool bParam2)
  {
  	int iVar0;
  	
  	iVar0 = iParam0;
  	if (iVar0 != -1)
  	{
  		if (NETWORK::NETWORK_IS_PLAYER_ACTIVE(iParam0))
  		{
  			if (bParam1)
  			{
  				if (!PLAYER::IS_PLAYER_PLAYING(iParam0))
  				{
  					return 0;
  				}
  			}
  			if (bParam2)
  			{
  				if (!Global_2439138.f_3[iVar0])
  				{
  					return 0;
  				}
  			}
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_200(int iParam0, int iParam1)
  {
  	if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  	{
  		if (VEHICLE::GET_NUM_MOD_KITS(iParam0) > 0)
  		{
  			switch (iParam1)
  			{
  				case 17:
  				case 18:
  				case 19:
  				case 20:
  				case 21:
  				case 22:
  					return 1;
  					break;
  				
  				default:
  					if (VEHICLE::GET_NUM_VEHICLE_MODS(iParam0, iParam1) > 0)
  					{
  						return 1;
  					}
  					break;
  				}
  			}
  	}
  	return 0;
  }
  
  int func_201(int iParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	
  	if (!PED::IS_PED_INJURED(iParam0))
  	{
  		if (PED::IS_PED_IN_ANY_VEHICLE(iParam0, bParam1))
  		{
  			iVar0 = PED::GET_VEHICLE_PED_IS_IN(iParam0, bParam1);
  			if (ENTITY::DOES_ENTITY_EXIST(iVar0))
  			{
  				iVar1 = VEHICLE::GET_VEHICLE_MODEL_NUMBER_OF_SEATS(ENTITY::GET_ENTITY_MODEL(iVar0));
  				if (iVar1 == 1)
  				{
  					iVar3 = -1;
  					return iVar3;
  				}
  				iVar2 = 0;
  				while (iVar2 < iVar1)
  				{
  					iVar3 = (iVar2 - 1);
  					if (!VEHICLE::IS_VEHICLE_SEAT_FREE(iVar0, iVar3, false))
  					{
  						if (VEHICLE::GET_PED_IN_VEHICLE_SEAT(iVar0, iVar3, 0) == iParam0)
  						{
  							return iVar3;
  						}
  					}
  					iVar2++;
  				}
  			}
  		}
  	}
  	return iVar3;
  }
  
  var func_202()
  {
  	return Global_2450632.f_17;
  }
  
  bool func_203(int iParam0)
  {
  	return iParam0 == 51;
  }
  
  var func_204()
  {
  	return Global_2450632.f_16;
  }
  
  bool func_205()
  {
  	return MISC::GET_GAME_TIMER() <= Global_22350.f_5878 + 100;
  }
  
  void func_206(var uParam0, int iParam1, struct<3> Param2, int iParam3)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	
  	if (Global_1319117 == 1)
  	{
  		return;
  	}
  	if (ENTITY::IS_ENTITY_DEAD(iParam1, false))
  	{
  		func_257(uParam0, 0, 0);
  	}
  	if (func_209(Param2, 0f, 0f, 0f, 0))
  	{
  		if (ENTITY::IS_ENTITY_A_PED(iParam1))
  		{
  			iVar0 = ENTITY::GET_PED_INDEX_FROM_ENTITY_INDEX(iParam1);
  			if (!PED::IS_PED_IN_ANY_VEHICLE(iVar0, false))
  			{
  				if (PED::IS_PED_A_PLAYER(iVar0))
  				{
  					if (!func_207())
  					{
  						Param2 = { 0f, 0f, 1f };
  					}
  				}
  				else if (PED::IS_PED_MALE(iVar0))
  				{
  					Param2 = { 0f, 0f, 1f };
  				}
  			}
  		}
  	}
  	CAM::SET_CINEMATIC_BUTTON_ACTIVE(false);
  	iVar1 = uParam0->f_9;
  	iVar2 = uParam0->f_10;
  	if (iParam3 == 1726668277)
  	{
  		if (iVar1 < 1500)
  		{
  			iVar1 = 1500;
  		}
  		if (iVar2 < 1500)
  		{
  			iVar2 = 1500;
  		}
  	}
  	CAM::SET_GAMEPLAY_ENTITY_HINT(iParam1, Param2, true, -1, iVar1, iVar2, iParam3);
  	iVar3 = 2048;
  	iVar4 = 3;
  	TASK::TASK_LOOK_AT_ENTITY(PLAYER::PLAYER_PED_ID(), iParam1, -1, iVar3, iVar4);
  	GRAPHICS::ANIMPOSTFX_PLAY("FocusIn", 0, false);
  	AUDIO::START_AUDIO_SCENE("HINT_CAM_SCENE");
  	AUDIO::PLAY_SOUND_FRONTEND(-1, "FocusIn", "HintCamSounds", true);
  	uParam0->f_11 = 1;
  	uParam0->f_8 = MISC::GET_GAME_TIMER();
  	uParam0->f_1 = 1;
  	*uParam0 = 0;
  }
  
  bool func_207()
  {
  	return func_208(PLAYER::PLAYER_ID());
  }
  
  int func_208(int iParam0)
  {
  	if (ENTITY::GET_ENTITY_MODEL(PLAYER::GET_PLAYER_PED(iParam0)) == joaat("mp_f_freemode_01"))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_209(struct<3> Param0, struct<3> Param1, bool bParam2)
  {
  	if (bParam2)
  	{
  		return (Param0.x == Param1.x && Param0.f_1 == Param1.f_1);
  	}
  	return ((Param0.x == Param1.x && Param0.f_1 == Param1.f_1) && Param0.f_2 == Param1.f_2);
  }
  
  int func_210(var uParam0, bool bParam1, bool bParam2, bool bParam3)
  {
  	if (uParam0->f_1)
  	{
  		if (MISC::GET_GAME_TIMER() >= (uParam0->f_8 + uParam0->f_9))
  		{
  			uParam0->f_1 = 0;
  		}
  	}
  	switch (uParam0->f_5)
  	{
  		case 0:
  			uParam0->f_7 = 0;
  			if (uParam0->f_6 == 0)
  			{
  				if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), true))
  				{
  					if (func_214(bParam1, bParam2, bParam3))
  					{
  						uParam0->f_4 = MISC::GET_GAME_TIMER();
  						uParam0->f_5 = 1;
  						uParam0->f_7 = 1;
  					}
  				}
  				else if (func_213(bParam1, bParam2, bParam3))
  				{
  					uParam0->f_4 = MISC::GET_GAME_TIMER();
  					uParam0->f_5 = 1;
  					uParam0->f_7 = 1;
  				}
  			}
  			else if (uParam0->f_6 == 1)
  			{
  				if (func_213(bParam1, bParam2, bParam3))
  				{
  					uParam0->f_4 = MISC::GET_GAME_TIMER();
  					uParam0->f_5 = 1;
  					uParam0->f_7 = 1;
  				}
  			}
  			else if (uParam0->f_6 == 2)
  			{
  				if (func_214(bParam1, bParam2, bParam3))
  				{
  					uParam0->f_4 = MISC::GET_GAME_TIMER();
  					uParam0->f_5 = 1;
  					uParam0->f_7 = 1;
  				}
  			}
  			if (func_193(uParam0))
  			{
  				uParam0->f_7 = 1;
  				uParam0->f_5 = 4;
  			}
  			break;
  		
  		case 1:
  			if ((MISC::GET_GAME_TIMER() - uParam0->f_4) <= 500)
  			{
  				if (uParam0->f_6 == 0)
  				{
  					if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), true))
  					{
  						if (!func_214(bParam1, bParam2, bParam3))
  						{
  							uParam0->f_4 = MISC::GET_GAME_TIMER();
  							uParam0->f_5 = 3;
  						}
  					}
  					else if (!func_213(bParam1, bParam2, bParam3))
  					{
  						uParam0->f_4 = MISC::GET_GAME_TIMER();
  						uParam0->f_5 = 3;
  					}
  				}
  				else if (uParam0->f_6 == 1)
  				{
  					if (!func_213(bParam1, bParam2, bParam3))
  					{
  						uParam0->f_4 = MISC::GET_GAME_TIMER();
  						uParam0->f_5 = 3;
  					}
  				}
  				else if (uParam0->f_6 == 2)
  				{
  					if (!func_214(bParam1, bParam2, bParam3))
  					{
  						uParam0->f_4 = MISC::GET_GAME_TIMER();
  						uParam0->f_5 = 3;
  					}
  				}
  			}
  			else
  			{
  				uParam0->f_5 = 2;
  			}
  			break;
  		
  		case 2:
  			if (uParam0->f_6 == 0)
  			{
  				if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), true))
  				{
  					if (!func_214(bParam1, bParam2, bParam3))
  					{
  						uParam0->f_5 = 0;
  					}
  				}
  				else if (!func_213(bParam1, bParam2, bParam3))
  				{
  					uParam0->f_5 = 0;
  				}
  			}
  			else if (uParam0->f_6 == 1)
  			{
  				if (!func_213(bParam1, bParam2, bParam3) || PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), true))
  				{
  					uParam0->f_5 = 0;
  				}
  			}
  			else if (uParam0->f_6 == 2)
  			{
  				if (!PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), true) || TASK::GET_IS_TASK_ACTIVE(PLAYER::PLAYER_PED_ID(), 2))
  				{
  					uParam0->f_5 = 0;
  				}
  				else if (!func_214(bParam1, bParam2, bParam3))
  				{
  					uParam0->f_5 = 0;
  				}
  			}
  			break;
  		
  		case 3:
  			if ((MISC::GET_GAME_TIMER() - uParam0->f_4) > 500)
  			{
  				if (uParam0->f_6 == 0)
  				{
  					if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), true))
  					{
  						if (func_212(bParam1, bParam2, bParam3))
  						{
  							uParam0->f_5 = 0;
  						}
  					}
  					else if (func_211(bParam1, bParam2, bParam3))
  					{
  						uParam0->f_5 = 0;
  					}
  				}
  				else if (uParam0->f_6 == 1)
  				{
  					if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), true) || func_211(bParam1, bParam2, bParam3))
  					{
  						uParam0->f_5 = 0;
  					}
  				}
  				else if (uParam0->f_6 == 2)
  				{
  					if (!PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), true) || TASK::GET_IS_TASK_ACTIVE(PLAYER::PLAYER_PED_ID(), 2))
  					{
  						uParam0->f_5 = 0;
  					}
  					else if (func_212(bParam1, bParam2, bParam3))
  					{
  						uParam0->f_5 = 0;
  					}
  				}
  			}
  			break;
  		
  		case 4:
  			if (!func_193(uParam0))
  			{
  				uParam0->f_5 = 0;
  			}
  			break;
  	}
  	if (!func_197(bParam1, bParam2, bParam3))
  	{
  		uParam0->f_5 = 0;
  		uParam0->f_7 = 0;
  	}
  	if (uParam0->f_7)
  	{
  		func_216();
  		return 1;
  	}
  	else
  	{
  		return 0;
  	}
  	return 0;
  }
  
  int func_211(bool bParam0, bool bParam1, bool bParam2)
  {
  	if (!func_197(bParam0, bParam1, bParam2))
  	{
  		return 0;
  	}
  	if (!PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  	{
  		if (!PLAYER::IS_PLAYER_TARGETTING_ANYTHING(PLAYER::PLAYER_ID()))
  		{
  			PAD::DISABLE_CONTROL_ACTION(0, 140, true);
  			PAD::DISABLE_CONTROL_ACTION(0, 80, true);
  			if (PAD::IS_DISABLED_CONTROL_JUST_RELEASED(0, 80))
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_212(bool bParam0, bool bParam1, bool bParam2)
  {
  	if (!func_197(bParam0, bParam1, bParam2))
  	{
  		return 0;
  	}
  	if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  	{
  		PAD::DISABLE_CONTROL_ACTION(0, 80, true);
  		if (CAM::IS_FOLLOW_VEHICLE_CAM_ACTIVE())
  		{
  			if (PAD::IS_DISABLED_CONTROL_JUST_RELEASED(0, 80))
  			{
  				CAM::SET_CINEMATIC_BUTTON_ACTIVE(false);
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_213(bool bParam0, bool bParam1, bool bParam2)
  {
  	if (!func_197(bParam0, bParam1, bParam2))
  	{
  		return 0;
  	}
  	if (!PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  	{
  		if (!PLAYER::IS_PLAYER_TARGETTING_ANYTHING(PLAYER::PLAYER_ID()))
  		{
  			PAD::DISABLE_CONTROL_ACTION(0, 140, true);
  			PAD::DISABLE_CONTROL_ACTION(0, 80, true);
  			if (PAD::IS_DISABLED_CONTROL_PRESSED(0, 80) && MISC::GET_GAME_TIMER() > Global_116)
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_214(bool bParam0, bool bParam1, bool bParam2)
  {
  	if (!func_197(bParam0, bParam1, bParam2))
  	{
  		return 0;
  	}
  	if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  	{
  		PAD::DISABLE_CONTROL_ACTION(0, 80, true);
  		if (CAM::IS_FOLLOW_VEHICLE_CAM_ACTIVE())
  		{
  			if (PAD::IS_DISABLED_CONTROL_PRESSED(0, 80) && MISC::GET_GAME_TIMER() > Global_116)
  			{
  				CAM::SET_CINEMATIC_BUTTON_ACTIVE(false);
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_215(int iParam0)
  {
  	if (ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		if (ENTITY::IS_ENTITY_A_VEHICLE(iParam0))
  		{
  			if (VEHICLE::IS_VEHICLE_DRIVEABLE(ENTITY::GET_VEHICLE_INDEX_FROM_ENTITY_INDEX(iParam0), false))
  			{
  				return 1;
  			}
  		}
  		else if (ENTITY::IS_ENTITY_A_PED(iParam0))
  		{
  			if (!PED::IS_PED_INJURED(ENTITY::GET_PED_INDEX_FROM_ENTITY_INDEX(iParam0)))
  			{
  				return 1;
  			}
  		}
  		else if (ENTITY::IS_ENTITY_AN_OBJECT(iParam0))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_216()
  {
  	MISC::SET_BIT(&Global_7357, 4);
  }
  
  bool func_217(char* sParam0)
  {
  	HUD::BEGIN_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED(sParam0);
  	return HUD::END_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED(0);
  }
  
  void func_218(var uParam0, var uParam1)
  {
  	int iVar0;
  	
  	switch (iLocal_1168)
  	{
  		case 0:
  			func_230(uParam1);
  			ENTITY::SET_ENTITY_LOAD_COLLISION_FLAG(*uParam1, true, 1);
  			SYSTEM::SETTIMERA(0);
  			iLocal_1168 = 1;
  			break;
  		
  		case 1:
  			if (func_223(*uParam1, uParam1->f_1, &Local_120, &uLocal_122, 1, 0, 0, 1, 1) || iLocal_1208)
  			{
  				if (!PED::IS_PED_INJURED(*uParam1))
  				{
  					ENTITY::SET_ENTITY_LOAD_COLLISION_FLAG(*uParam1, true, 1);
  					if (PED::IS_PED_IN_VEHICLE(*uParam1, uParam1->f_1, false))
  					{
  						if (VEHICLE::IS_VEHICLE_DRIVEABLE(uParam1->f_1, false))
  						{
  							if (!PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  							{
  								TASK::TASK_VEHICLE_MISSION_PED_TARGET(*uParam1, uParam1->f_1, PLAYER::PLAYER_PED_ID(), 8, 35f, 786468, 500f, -1f, true);
  							}
  							else
  							{
  								TASK::TASK_VEHICLE_MISSION(*uParam1, uParam1->f_1, PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false), 8, 35f, 786468, 500f, -1f, true);
  							}
  						}
  					}
  					else
  					{
  						TASK::TASK_SMART_FLEE_PED(*uParam1, PLAYER::PLAYER_PED_ID(), 1000f, -1, false, false);
  					}
  				}
  				SYSTEM::SETTIMERA(0);
  				iLocal_1168 = 2;
  			}
  			else if (!iLocal_1207)
  			{
  				if (!PED::IS_PED_IN_ANY_VEHICLE(*uParam1, false))
  				{
  					PED::SET_PED_INTO_VEHICLE(*uParam1, uParam1->f_1, -1);
  					VEHICLE::SET_VEHICLE_ON_GROUND_PROPERLY(uParam1->f_1, 5f);
  				}
  				VEHICLE::SET_VEHICLE_FORWARD_SPEED(uParam1->f_1, 4f);
  				TASK::OPEN_SEQUENCE_TASK(&iVar0);
  				TASK::TASK_VEHICLE_MISSION_COORS_TARGET(0, uParam1->f_1, -1637.682f, 1018.619f, 152.1026f, 4, 22f, 786468, 10f, -1f, true);
  				TASK::TASK_VEHICLE_DRIVE_WANDER(0, uParam1->f_1, 22f, 786468);
  				TASK::CLOSE_SEQUENCE_TASK(iVar0);
  				TASK::TASK_PERFORM_SEQUENCE(*uParam1, iVar0);
  				TASK::CLEAR_SEQUENCE_TASK(&iVar0);
  				iLocal_1207 = 1;
  			}
  			break;
  		
  		case 2:
  			if (func_222(*uParam1, fLocal_1248, 0))
  			{
  				func_2(Local_971, uParam0, 0);
  			}
  			else if (!PED::IS_PED_INJURED(*uParam1))
  			{
  				if (!iLocal_1216)
  				{
  					if (!PED::IS_PED_IN_ANY_VEHICLE(*uParam1, false))
  					{
  						if (TASK::GET_SCRIPT_TASK_STATUS(*uParam1, 780511057) != 1)
  						{
  							PED::SET_PED_COMBAT_ATTRIBUTES(*uParam1, 1, false);
  							TASK::TASK_SMART_FLEE_PED(*uParam1, PLAYER::PLAYER_PED_ID(), 1000f, -1, false, false);
  							iLocal_1216 = 1;
  						}
  					}
  				}
  				if ((func_263(*uParam1, 1) < 15f && !func_51()) && !PED::IS_PED_RAGDOLL(*uParam1))
  				{
  					if (!iLocal_1211)
  					{
  						if (func_219(&iLocal_1232))
  						{
  							iLocal_1211 = 1;
  							SYSTEM::SETTIMERA(0);
  						}
  					}
  					else if (!iLocal_1210)
  					{
  						if (SYSTEM::TIMERA() >= 10000)
  						{
  							func_22(&(uParam1->f_16), "OJASAUD", "OJASml_bkTP2", 8, 0, 0, 0);
  							iLocal_1210 = 1;
  						}
  					}
  				}
  			}
  			break;
  	}
  }
  
  int func_219(int iParam0)
  {
  	switch (*iParam0)
  	{
  		case 0:
  			func_22(&(Local_971.f_16), "OJASAUD", "OJASml_bkTP1", 8, 0, 0, 0);
  			func_221();
  			*iParam0++;
  			break;
  		
  		case 1:
  			if (func_220())
  			{
  				func_22(&(Local_971.f_16), "OJASAUD", "OJASml_bkTP2", 8, 0, 0, 0);
  				return 1;
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_220()
  {
  	if (func_497(&iLocal_1267))
  	{
  		if (!func_51() && func_45(&iLocal_1267) > fLocal_1249)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_221()
  {
  	func_44(&iLocal_1267);
  	fLocal_1249 = MISC::GET_RANDOM_FLOAT_IN_RANGE(3f, 7f);
  }
  
  int func_222(int iParam0, float fParam1, float fParam2)
  {
  	int iVar0;
  	float fVar1;
  	
  	if (ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		if (!PED::IS_PED_INJURED(iParam0))
  		{
  			if (PED::IS_PED_IN_ANY_VEHICLE(iParam0, false))
  			{
  				iVar0 = PED::GET_VEHICLE_PED_IS_IN(iParam0, false);
  				fVar1 = func_263(iParam0, 1);
  				if (fVar1 > fParam1)
  				{
  					if (!ENTITY::IS_ENTITY_ON_SCREEN(iVar0) || ENTITY::IS_ENTITY_OCCLUDED(iVar0))
  					{
  						return 1;
  					}
  					else if (fParam2 != 0f)
  					{
  						if (fVar1 > fParam2)
  						{
  							if (!PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  							{
  								return 1;
  							}
  						}
  					}
  				}
  			}
  			else if (func_263(iParam0, 1) > fParam1)
  			{
  				if (!ENTITY::IS_ENTITY_ON_SCREEN(iParam0) || ENTITY::IS_ENTITY_OCCLUDED(iParam0))
  				{
  					return 1;
  				}
  			}
  		}
  	}
  	return 0;
  }
  
  int func_223(int iParam0, int iParam1, var uParam2, var uParam3, bool bParam4, bool bParam5, bool bParam6, int iParam7, bool bParam8)
  {
  	int iVar0;
  	bool bVar1;
  	
  	iVar0 = PLAYER::PLAYER_PED_ID();
  	if (!ENTITY::IS_ENTITY_DEAD(iVar0, false) && !ENTITY::IS_ENTITY_DEAD(iParam0, false))
  	{
  		if (!func_93(*uParam2, 1))
  		{
  			if (func_229(iParam0, uParam2))
  			{
  				*uParam3 = 1;
  				return 1;
  			}
  		}
  		if (!func_93(*uParam2, 2))
  		{
  			if (PLAYER::GET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID()) > 0)
  			{
  				*uParam3 = 2;
  				return 1;
  			}
  		}
  		if (!func_93(*uParam2, 4))
  		{
  			if (func_227(iVar0, iParam0, uParam2, bParam5))
  			{
  				*uParam3 = 4;
  				return 1;
  			}
  		}
  		if (!func_93(*uParam2, 8))
  		{
  			if (func_226(iVar0, iParam0, uParam2))
  			{
  				*uParam3 = 8;
  				return 1;
  			}
  		}
  		bVar1 = !func_93(*uParam2, 128);
  		if (bParam4)
  		{
  			if (func_224(iParam0, iParam1, 1, bParam6, bVar1, 1))
  			{
  				*uParam3 = 32;
  				return 1;
  			}
  		}
  		else if (!func_93(*uParam2, 16))
  		{
  			if (func_224(iParam0, iParam1, 0, bParam6, bVar1, bParam8))
  			{
  				*uParam3 = 16;
  				return 1;
  			}
  		}
  	}
  	else if (ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		if (iParam7 && ENTITY::HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY(iParam0, iVar0, true))
  		{
  			*uParam3 = 16;
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_224(int iParam0, int iParam1, bool bParam2, bool bParam3, bool bParam4, bool bParam5)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (bParam3)
  	{
  		if (!bLocal_116)
  		{
  			iLocal_117 = ENTITY::GET_ENTITY_HEALTH(iParam0);
  			bLocal_116 = true;
  		}
  		iLocal_118 = ENTITY::GET_ENTITY_HEALTH(iParam0);
  		iLocal_119 = (iLocal_117 - iLocal_118);
  		iVar0 = PLAYER::GET_PLAYERS_LAST_VEHICLE();
  		if (!ENTITY::IS_ENTITY_DEAD(iVar0, false))
  		{
  			if (ENTITY::HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY(iParam0, iVar0, true))
  			{
  				if (IntToFloat(iLocal_119) > 100f)
  				{
  					return 1;
  				}
  			}
  		}
  		if (bLocal_116)
  		{
  			if (ENTITY::HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY(iParam0, PLAYER::PLAYER_PED_ID(), true))
  			{
  				if (IntToFloat(iLocal_119) > 100f)
  				{
  					return 1;
  				}
  			}
  		}
  	}
  	else if (ENTITY::HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY(iParam0, PLAYER::PLAYER_PED_ID(), true))
  	{
  		return 1;
  	}
  	if (!bParam3)
  	{
  		iVar1 = PLAYER::GET_PLAYERS_LAST_VEHICLE();
  		if (!ENTITY::IS_ENTITY_DEAD(iVar1, false))
  		{
  			if (ENTITY::HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY(iParam0, iVar1, true))
  			{
  				return 1;
  			}
  		}
  	}
  	if (bParam4)
  	{
  		if (!ENTITY::IS_ENTITY_DEAD(iParam0, false))
  		{
  			if (PED::IS_PED_BEING_JACKED(iParam0))
  			{
  				if (PED::GET_PEDS_JACKER(iParam0) == PLAYER::PLAYER_PED_ID())
  				{
  					return 1;
  				}
  			}
  		}
  	}
  	if (bParam5)
  	{
  		if (PED::IS_PED_IN_MELEE_COMBAT(PLAYER::PLAYER_PED_ID()))
  		{
  			if (ENTITY::IS_ENTITY_AT_COORD(iParam0, ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true), 10f, 10f, 10f, false, true, 0))
  			{
  				if (PLAYER::HAS_PLAYER_DAMAGED_AT_LEAST_ONE_PED(PLAYER::PLAYER_ID()))
  				{
  					return 1;
  				}
  			}
  		}
  	}
  	if (PED::IS_PED_PERFORMING_STEALTH_KILL(PLAYER::PLAYER_PED_ID()))
  	{
  		if (PED::WAS_PED_KILLED_BY_STEALTH(iParam0))
  		{
  			return 1;
  		}
  	}
  	if (func_225(PLAYER::PLAYER_PED_ID(), iParam0))
  	{
  		return 1;
  	}
  	if (bParam2)
  	{
  		if (PED::IS_PED_RAGDOLL(iParam0) && func_263(iParam0, 1) < 1.5f)
  		{
  			return 1;
  		}
  		else if (PED::IS_PED_IN_ANY_VEHICLE(iParam0, false))
  		{
  			if (ENTITY::IS_ENTITY_TOUCHING_ENTITY(PLAYER::PLAYER_PED_ID(), PED::GET_VEHICLE_PED_IS_IN(iParam0, false)))
  			{
  				return 1;
  			}
  		}
  		else if (ENTITY::IS_ENTITY_TOUCHING_ENTITY(PLAYER::PLAYER_PED_ID(), iParam0))
  		{
  			return 1;
  		}
  		if (!ENTITY::IS_ENTITY_DEAD(iParam1, false))
  		{
  			if (ENTITY::HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY(iParam1, PLAYER::PLAYER_PED_ID(), true))
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_225(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	WEAPON::GET_CURRENT_PED_WEAPON(iParam0, &iVar0, true);
  	if (iVar0 == joaat("weapon_petrolcan"))
  	{
  		if (PED::IS_PED_SHOOTING(iParam0))
  		{
  			if (SYSTEM::VDIST(ENTITY::GET_ENTITY_COORDS(iParam0, true), ENTITY::GET_ENTITY_COORDS(iParam1, true)) < 2.5f)
  			{
  				if (PED::IS_PED_FACING_PED(iParam0, iParam1, 180f))
  				{
  					return 1;
  				}
  			}
  		}
  	}
  	return 0;
  }
  
  int func_226(int iParam0, int iParam1, var uParam2)
  {
  	if (WEAPON::IS_PED_ARMED(iParam0, 4))
  	{
  		if (PED::IS_PED_SHOOTING(iParam0) && !WEAPON::IS_PED_CURRENT_WEAPON_SILENCED(iParam0))
  		{
  			if (ENTITY::IS_ENTITY_AT_COORD(iParam1, ENTITY::GET_ENTITY_COORDS(iParam0, true), IntToFloat(uParam2->f_4), IntToFloat(uParam2->f_4), IntToFloat(uParam2->f_4), false, true, 0))
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_227(int iParam0, int iParam1, var uParam2, bool bParam3)
  {
  	struct<3> Var0;
  	int iVar1;
  	
  	iVar1 = 0;
  	if (!ENTITY::IS_ENTITY_DEAD(iParam1, false))
  	{
  		Var0 = { ENTITY::GET_ENTITY_COORDS(iParam1, true) };
  	}
  	if (MISC::IS_BULLET_IN_AREA(Var0, 4f, true))
  	{
  		return 1;
  	}
  	if (MISC::HAS_BULLET_IMPACTED_IN_AREA(Var0, SYSTEM::TO_FLOAT(uParam2->f_6), true, true))
  	{
  		return 1;
  	}
  	if (WEAPON::IS_PED_ARMED(iParam0, 2))
  	{
  		if (PED::IS_PED_SHOOTING(iParam0))
  		{
  			if (ENTITY::IS_ENTITY_AT_COORD(iParam1, ENTITY::GET_ENTITY_COORDS(iParam0, true), IntToFloat(uParam2->f_6 * 3), IntToFloat(uParam2->f_6 * 3), IntToFloat(uParam2->f_6 * 3), false, true, 0))
  			{
  				if (PED::IS_PED_FACING_PED(ENTITY::GET_PED_INDEX_FROM_ENTITY_INDEX(iParam1), iParam0, 120f) && ENTITY::HAS_ENTITY_CLEAR_LOS_TO_ENTITY(iParam1, iParam0, 17))
  				{
  					return 1;
  				}
  			}
  		}
  		else
  		{
  			if (PED::IS_PED_IN_ANY_VEHICLE(ENTITY::GET_PED_INDEX_FROM_ENTITY_INDEX(iParam1), false))
  			{
  				iVar1 = PED::GET_VEHICLE_PED_IS_IN(ENTITY::GET_PED_INDEX_FROM_ENTITY_INDEX(iParam1), false);
  			}
  			if (PED::IS_PED_PLANTING_BOMB(iParam0) || func_228(iVar1))
  			{
  				if (ENTITY::IS_ENTITY_AT_COORD(iParam1, ENTITY::GET_ENTITY_COORDS(iParam0, true), IntToFloat(uParam2->f_6 * 3), IntToFloat(uParam2->f_6 * 3), IntToFloat(uParam2->f_6 * 3), false, true, 0))
  				{
  					if (PED::IS_PED_FACING_PED(ENTITY::GET_PED_INDEX_FROM_ENTITY_INDEX(iParam1), iParam0, 120f) && ENTITY::HAS_ENTITY_CLEAR_LOS_TO_ENTITY(iParam1, iParam0, 17))
  					{
  						return 1;
  					}
  				}
  			}
  		}
  	}
  	if (bParam3)
  	{
  		if (MISC::IS_PROJECTILE_IN_AREA((Var0.x - IntToFloat(uParam2->f_6)), (Var0.f_1 - IntToFloat(uParam2->f_6)), (Var0.f_2 - IntToFloat(uParam2->f_6)), (Var0.x + IntToFloat(uParam2->f_6)), (Var0.f_1 + IntToFloat(uParam2->f_6)), (Var0.f_2 + IntToFloat(uParam2->f_6)), false))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_228(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  		{
  			if (VEHICLE::GET_PED_IN_VEHICLE_SEAT(iParam0, -1, 0) != 0)
  			{
  				if (WEAPON::GET_CURRENT_PED_WEAPON(PLAYER::PLAYER_PED_ID(), &iVar0, true))
  				{
  					if (iVar0 == joaat("weapon_stickybomb"))
  					{
  						if (func_281(PLAYER::PLAYER_PED_ID(), iParam0, 1) < 40f)
  						{
  							if (PLAYER::GET_ENTITY_PLAYER_IS_FREE_AIMING_AT(PLAYER::PLAYER_ID(), &iVar1))
  							{
  								if ((ENTITY::IS_ENTITY_A_VEHICLE(iVar1) && ENTITY::GET_VEHICLE_INDEX_FROM_ENTITY_INDEX(iVar1) == iParam0) || (ENTITY::IS_ENTITY_A_PED(iVar1) && ENTITY::GET_PED_INDEX_FROM_ENTITY_INDEX(iVar1) == VEHICLE::GET_PED_IN_VEHICLE_SEAT(iParam0, -1, 0)))
  								{
  									if ((PED::IS_PED_ON_FOOT(PLAYER::PLAYER_PED_ID()) && PAD::IS_CONTROL_PRESSED(0, 24)) || (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false) && PAD::IS_CONTROL_PRESSED(0, 69)))
  									{
  										return 1;
  									}
  								}
  							}
  						}
  					}
  				}
  			}
  		}
  	}
  	return 0;
  }
  
  int func_229(int iParam0, var uParam1)
  {
  	if (!ENTITY::IS_ENTITY_DEAD(iParam0, false))
  	{
  		if (WEAPON::IS_PED_ARMED(PLAYER::PLAYER_PED_ID(), 6))
  		{
  			if (PLAYER::IS_PLAYER_FREE_AIMING_AT_ENTITY(PLAYER::PLAYER_ID(), iParam0) || PLAYER::IS_PLAYER_TARGETTING_ENTITY(PLAYER::PLAYER_ID(), iParam0))
  			{
  				if (PED::IS_PED_FACING_PED(iParam0, PLAYER::PLAYER_PED_ID(), 90f))
  				{
  					if (func_263(iParam0, 1) < uParam1->f_2)
  					{
  						if (uParam1->f_1 == 0)
  						{
  							uParam1->f_1 = MISC::GET_GAME_TIMER();
  						}
  						else if ((MISC::GET_GAME_TIMER() - uParam1->f_1) > uParam1->f_3)
  						{
  							return 1;
  						}
  					}
  				}
  			}
  		}
  	}
  	return 0;
  }
  
  void func_230(var uParam0)
  {
  	if (HUD::DOES_BLIP_EXIST(uParam0->f_2))
  	{
  		HUD::REMOVE_BLIP(&(uParam0->f_2));
  	}
  	uParam0->f_2 = func_231(*uParam0, 0, 0);
  	HUD::SET_BLIP_COLOUR(uParam0->f_2, 1);
  	HUD::SET_BLIP_ROUTE(uParam0->f_2, false);
  }
  
  int func_231(int iParam0, bool bParam1, bool bParam2)
  {
  	int iVar0;
  	
  	if (!ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		return 0;
  	}
  	iVar0 = HUD::ADD_BLIP_FOR_ENTITY(iParam0);
  	if (ENTITY::IS_ENTITY_A_VEHICLE(iParam0))
  	{
  		HUD::SET_BLIP_SCALE(iVar0, func_104(NETWORK::NETWORK_IS_GAME_IN_PROGRESS(), 1f, 1f));
  		if (!bParam2)
  		{
  			HUD::SET_BLIP_AS_FRIENDLY(iVar0, bParam1);
  		}
  		else
  		{
  			HUD::SET_BLIP_COLOUR(iVar0, 2);
  		}
  	}
  	else if (ENTITY::IS_ENTITY_A_PED(iParam0))
  	{
  		HUD::SET_BLIP_SCALE(iVar0, func_104(NETWORK::NETWORK_IS_GAME_IN_PROGRESS(), 0.7f, 0.7f));
  		HUD::SET_BLIP_AS_FRIENDLY(iVar0, bParam1);
  	}
  	else if (ENTITY::IS_ENTITY_AN_OBJECT(iParam0))
  	{
  		HUD::SET_BLIP_SCALE(iVar0, func_104(NETWORK::NETWORK_IS_GAME_IN_PROGRESS(), 0.7f, 0.7f));
  	}
  	return iVar0;
  }
  
  void func_232(var uParam0)
  {
  	switch (iLocal_1168)
  	{
  		case 0:
  			func_230(uParam0);
  			iLocal_1168 = 1;
  			break;
  		
  		case 1:
  			if (!iLocal_1206)
  			{
  				if ((((func_223(*uParam0, 0, &Local_120, &uLocal_122, 0, 1, 0, 1, 1) || MISC::HAS_BULLET_IMPACTED_IN_AREA(ENTITY::GET_ENTITY_COORDS(*uParam0, true), 15f, false, true)) || iLocal_1208) || func_263(*uParam0, 1) < 5f) || (PED::IS_PED_IN_FLYING_VEHICLE(PLAYER::PLAYER_PED_ID()) && func_263(*uParam0, 1) <= 35f))
  				{
  					if (!PED::IS_PED_INJURED(*uParam0))
  					{
  						if (func_263(*uParam0, 1) <= 100f)
  						{
  							func_22(&(uParam0->f_16), "OJASAUD", "OJASml_wwTP", 8, 0, 0, 0);
  						}
  						TASK::TASK_PLAY_ANIM(*uParam0, "oddjobs@assassinate@multi@windowwasher", "_shot_reaction", 8f, -8f, -1, 2, 0f, false, false, false);
  						iLocal_1168 = 2;
  					}
  				}
  			}
  			break;
  		
  		case 2:
  			if (!iLocal_1210)
  			{
  				if (func_263(*uParam0, 1) <= 100f && !func_51())
  				{
  					if (func_233(&iLocal_1232))
  					{
  						iLocal_1210 = 1;
  					}
  				}
  			}
  			if (TASK::GET_SCRIPT_TASK_STATUS(*uParam0, -2017877118) != 1 && TASK::GET_SCRIPT_TASK_STATUS(*uParam0, 474215631) != 1)
  			{
  				TASK::TASK_COWER(*uParam0, -1);
  			}
  			break;
  	}
  	if (bLocal_1215)
  	{
  		func_283();
  	}
  }
  
  int func_233(int iParam0)
  {
  	switch (*iParam0)
  	{
  		case 0:
  			func_22(&(Local_971.f_16), "OJASAUD", "OJASml_wwTP2", 8, 0, 0, 0);
  			*iParam0++;
  			break;
  		
  		case 1:
  			if (!func_51())
  			{
  				func_22(&(Local_971.f_16), "OJASAUD", "OJASml_wwPAN", 8, 0, 0, 0);
  				return 1;
  			}
  			break;
  	}
  	return 0;
  }
  
  void func_234(var uParam0, var uParam1)
  {
  	int iVar0;
  	float fVar1;
  	float fVar2;
  	
  	switch (iLocal_1168)
  	{
  		case 0:
  			func_230(uParam1);
  			if (!ENTITY::IS_ENTITY_DEAD(uParam1->f_1, false))
  			{
  				VEHICLE::SET_BOAT_SINKS_WHEN_WRECKED(uParam1->f_1, true);
  			}
  			if (!ENTITY::IS_ENTITY_DEAD(*uParam1, false))
  			{
  				PED::SET_RAGDOLL_BLOCKING_FLAGS(*uParam1, 16);
  			}
  			if (!ENTITY::IS_ENTITY_DEAD(uParam1->f_7, false))
  			{
  				PED::SET_RAGDOLL_BLOCKING_FLAGS(uParam1->f_7, 16);
  				ENTITY::SET_ENTITY_HEALTH(uParam1->f_7, 105, 0);
  			}
  			STREAMING::REQUEST_ANIM_DICT("veh@boat@marquis@rps@enter_exit");
  			iLocal_1168 = 1;
  			break;
  		
  		case 1:
  			fVar1 = func_263(*uParam1, 1);
  			if (((func_223(*uParam1, uParam1->f_1, &Local_120, &uLocal_122, 0, 1, 0, 1, 1) || func_223(uParam1->f_7, uParam1->f_1, &Local_120, &uLocal_122, 0, 1, 0, 1, 1)) || func_243(uParam1)) || (func_242(*uParam1, 50f) && iLocal_1208))
  			{
  				if (!PED::IS_PED_INJURED(*uParam1))
  				{
  					if (fVar1 <= 75f)
  					{
  						if (!ENTITY::IS_ENTITY_DEAD(uParam1->f_1, false))
  						{
  							if (STREAMING::HAS_ANIM_DICT_LOADED("veh@boat@marquis@rps@enter_exit"))
  							{
  								iLocal_1294 = PED::CREATE_SYNCHRONIZED_SCENE(0f, 0f, 0f, 0f, 0f, 0f, 2);
  								PED::ATTACH_SYNCHRONIZED_SCENE_TO_ENTITY(iLocal_1294, uParam1->f_1, ENTITY::GET_ENTITY_BONE_INDEX_BY_NAME(uParam1->f_1, "seat_dside_r"));
  								TASK::TASK_SYNCHRONIZED_SCENE(*uParam1, iLocal_1294, "veh@boat@marquis@rps@enter_exit", "jump_out", 4f, -4f, 0, 1, 1000f, 0);
  							}
  						}
  					}
  					else
  					{
  						bLocal_1221 = true;
  						if (!ENTITY::IS_ENTITY_DEAD(uParam1->f_1, false))
  						{
  							iLocal_1294 = PED::CREATE_SYNCHRONIZED_SCENE(0f, 0f, 0f, 0f, 0f, 0f, 2);
  							PED::ATTACH_SYNCHRONIZED_SCENE_TO_ENTITY(iLocal_1294, uParam1->f_1, ENTITY::GET_ENTITY_BONE_INDEX_BY_NAME(uParam1->f_1, "seat_dside_r"));
  							TASK::TASK_SYNCHRONIZED_SCENE(*uParam1, iLocal_1294, "oddjobs@assassinate@multi@yachttarget@lapdance", "exit_steer_m", 4f, -1000f, 0, 1, 1000f, 0);
  						}
  					}
  				}
  				if (!PED::IS_PED_INJURED(uParam1->f_7))
  				{
  					TASK::OPEN_SEQUENCE_TASK(&iVar0);
  					if (fVar1 <= 75f)
  					{
  						TASK::TASK_PLAY_ANIM(0, "oddjobs@assassinate@multi@yachttarget@lapdance", "exit_quick_f", 8f, -8f, -1, 0, 0f, false, false, false);
  						TASK::TASK_PLAY_ANIM(0, "oddjobs@assassinate@multi@yachttarget@lapdance", "exit_cower_loop_f", 1000f, -8f, -1, 1, 0f, false, false, false);
  					}
  					else
  					{
  						TASK::TASK_PLAY_ANIM(0, "oddjobs@assassinate@multi@yachttarget@lapdance", "exit_steer_f", 8f, -8f, -1, 0, 0f, false, false, false);
  						TASK::TASK_PLAY_ANIM(0, "oddjobs@assassinate@multi@yachttarget@lapdance", "exit_cower_loop_f", 1000f, -8f, -1, 1, 0f, false, false, false);
  					}
  					TASK::CLOSE_SEQUENCE_TASK(iVar0);
  					TASK::TASK_PERFORM_SEQUENCE(uParam1->f_7, iVar0);
  					TASK::CLEAR_SEQUENCE_TASK(&iVar0);
  					PED::SET_PED_KEEP_TASK(uParam1->f_7, true);
  					if (func_263(uParam1->f_7, 1) <= 50f)
  					{
  						func_38(&(uParam1->f_16), 5, uParam1->f_7, "YachtPed1", 0, 1);
  						func_22(&(uParam1->f_16), "OJASAUD", "OJASml_ytG1", 8, 0, 0, 0);
  					}
  				}
  				if (!PED::IS_PED_INJURED(uParam1->f_9))
  				{
  					if (TASK::GET_SCRIPT_TASK_STATUS(uParam1->f_9, 1805844857) != 1)
  					{
  						TASK::CLEAR_PED_TASKS(uParam1->f_9);
  						TASK::TASK_SMART_FLEE_PED(uParam1->f_9, PLAYER::PLAYER_PED_ID(), 200f, -1, false, false);
  						PED::SET_PED_KEEP_TASK(uParam1->f_9, true);
  					}
  				}
  				iLocal_1232 = 0;
  				ENTITY::SET_ENTITY_LOAD_COLLISION_FLAG(*uParam1, true, 1);
  				iLocal_1168 = 2;
  			}
  			else
  			{
  				func_260(uParam1);
  				if (fVar1 <= 15f && !iLocal_1211)
  				{
  					if (!func_51())
  					{
  						if (func_241(&iLocal_1232))
  						{
  							iLocal_1211 = 1;
  						}
  					}
  				}
  				else if (fVar1 <= 25f)
  				{
  					if (!func_51())
  					{
  						func_238();
  					}
  				}
  				if (!iLocal_1212)
  				{
  					if (PED::IS_PED_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), iLocal_1258, false))
  					{
  						if (!PED::IS_PED_INJURED(uParam1->f_9))
  						{
  							if (TASK::GET_SCRIPT_TASK_STATUS(uParam1->f_9, 1805844857) != 1)
  							{
  								TASK::CLEAR_PED_TASKS(uParam1->f_9);
  								TASK::TASK_SMART_FLEE_PED(uParam1->f_9, PLAYER::PLAYER_PED_ID(), 200f, -1, false, false);
  								PED::SET_PED_KEEP_TASK(uParam1->f_9, true);
  								if (func_263(uParam1->f_9, 1) < 50f)
  								{
  									func_38(&(uParam1->f_16), 4, uParam1->f_9, "OJAmlSUNBATHER", 0, 1);
  									func_22(&(uParam1->f_16), "OJASAUD", "OJASml_ytSUN", 8, 0, 0, 0);
  								}
  								iLocal_1212 = 1;
  							}
  						}
  					}
  				}
  			}
  			break;
  		
  		case 2:
  			if (!ENTITY::IS_ENTITY_DEAD(*uParam1, false))
  			{
  				if (!ENTITY::IS_ENTITY_DEAD(uParam1->f_1, false))
  				{
  					if (VEHICLE::GET_PED_IN_VEHICLE_SEAT(uParam1->f_1, -1, 0) != *uParam1)
  					{
  						if (bLocal_1221)
  						{
  							if (PED::IS_SYNCHRONIZED_SCENE_RUNNING(iLocal_1294))
  							{
  								fVar2 = PED::GET_SYNCHRONIZED_SCENE_PHASE(iLocal_1294);
  							}
  							if (fVar2 > 0.8f)
  							{
  								TASK::CLEAR_PED_TASKS(*uParam1);
  								PED::SET_PED_INTO_VEHICLE(*uParam1, uParam1->f_1, -1);
  							}
  						}
  						else
  						{
  							if (PED::IS_SYNCHRONIZED_SCENE_RUNNING(iLocal_1294))
  							{
  								fVar2 = PED::GET_SYNCHRONIZED_SCENE_PHASE(iLocal_1294);
  							}
  							if (fVar2 > 0.9f)
  							{
  								if (TASK::GET_SCRIPT_TASK_STATUS(*uParam1, 1805844857) != 1)
  								{
  									TASK::TASK_SMART_FLEE_PED(*uParam1, PLAYER::PLAYER_PED_ID(), 1000f, -1, false, false);
  								}
  							}
  							else if (!iLocal_1222)
  							{
  								if (fVar2 > 0.36f)
  								{
  									func_237(&iLocal_1244);
  									func_236("MULT_ASSAS_WATER_SPLASH_master", &iLocal_1244, 0, *uParam1, 0, 0, 0, 0);
  									iLocal_1222 = 1;
  								}
  							}
  						}
  					}
  					else if (TASK::GET_SCRIPT_TASK_STATUS(*uParam1, -1273030092) != 1)
  					{
  						TASK::TASK_VEHICLE_MISSION_COORS_TARGET(*uParam1, uParam1->f_1, ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true), 8, 20f, 786468, 500f, -1f, true);
  					}
  				}
  				if (!iLocal_1210)
  				{
  					if (!func_51() && func_263(*uParam1, 1) < 35f)
  					{
  						if (func_235(&iLocal_1232))
  						{
  							iLocal_1210 = 1;
  						}
  					}
  				}
  			}
  			if (func_222(*uParam1, fLocal_1248, 0))
  			{
  				func_2(Local_971, uParam0, 0);
  			}
  			break;
  	}
  }
  
  int func_235(int iParam0)
  {
  	switch (*iParam0)
  	{
  		case 0:
  			func_22(&(Local_971.f_16), "OJASAUD", "OJASml_ytTP2", 8, 0, 0, 0);
  			*iParam0++;
  			break;
  		
  		case 1:
  			if (!func_51())
  			{
  				func_22(&(Local_971.f_16), "OJASAUD", "OJASml_beg", 8, 0, 0, 0);
  				return 1;
  			}
  			break;
  	}
  	return 0;
  }
  
  void func_236(char* sParam0, int iParam1, bool bParam2, int iParam3, float fParam4, float fParam5, float fParam6, char* sParam7)
  {
  	func_237(iParam1);
  	if (bParam2)
  	{
  		*iParam1 = AUDIO::GET_SOUND_ID();
  	}
  	else
  	{
  		*iParam1 = -1;
  	}
  	if (iParam3 != 0)
  	{
  		AUDIO::PLAY_SOUND_FROM_ENTITY(*iParam1, sParam0, iParam3, sParam7, false, 0);
  	}
  	else if ((fParam4 != 0f || fParam5 != 0f) || fParam6 != 0f)
  	{
  		AUDIO::PLAY_SOUND_FROM_COORD(*iParam1, sParam0, fParam4, fParam5, fParam6, sParam7, false, 0, false);
  	}
  	else
  	{
  		AUDIO::PLAY_SOUND_FRONTEND(*iParam1, sParam0, sParam7, true);
  	}
  }
  
  void func_237(int iParam0)
  {
  	if (*iParam0 != -1)
  	{
  		AUDIO::STOP_SOUND(*iParam0);
  		AUDIO::RELEASE_SOUND_ID(*iParam0);
  		*iParam0 = -1;
  	}
  }
  
  void func_238()
  {
  	switch (iLocal_1234)
  	{
  		case 0:
  			if (!func_51())
  			{
  				if (iLocal_1233 == -1)
  				{
  					iLocal_1233 = MISC::GET_RANDOM_INT_IN_RANGE(0, 4);
  				}
  				else if (iLocal_1233 == 0)
  				{
  					if (func_240(&(Local_971.f_16), "OJASAUD", "OJASml_ytT1", "OJASml_ytT1_1", 9, 0, 0))
  					{
  						func_239();
  					}
  				}
  				else if (iLocal_1233 == 1)
  				{
  					if (func_240(&(Local_971.f_16), "OJASAUD", "OJASml_ytT1", "OJASml_ytT1_2", 8, 0, 0))
  					{
  						func_239();
  					}
  				}
  				else if (iLocal_1233 == 2)
  				{
  					if (func_240(&(Local_971.f_16), "OJASAUD", "OJASml_ytT1", "OJASml_ytT1_3", 8, 0, 0))
  					{
  						func_239();
  					}
  				}
  				else if (func_240(&(Local_971.f_16), "OJASAUD", "OJASml_ytT1", "OJASml_ytT1_4", 8, 0, 0))
  				{
  					func_239();
  				}
  			}
  			break;
  		
  		case 1:
  			if (func_220())
  			{
  				if (iLocal_1233 == -1)
  				{
  					iLocal_1233 = MISC::GET_RANDOM_INT_IN_RANGE(0, 4);
  				}
  				else if (iLocal_1233 == 0)
  				{
  					if (func_240(&(Local_971.f_16), "OJASAUD", "OJASml_ytT1", "OJASml_ytT1_5", 9, 0, 0))
  					{
  						func_239();
  					}
  				}
  				else if (iLocal_1233 == 1)
  				{
  					if (func_240(&(Local_971.f_16), "OJASAUD", "OJASml_ytT1", "OJASml_ytT1_6", 8, 0, 0))
  					{
  						func_239();
  					}
  				}
  				else if (iLocal_1233 == 2)
  				{
  					if (func_240(&(Local_971.f_16), "OJASAUD", "OJASml_ytT1", "OJASml_ytT1_7", 8, 0, 0))
  					{
  						func_239();
  					}
  				}
  				else if (func_240(&(Local_971.f_16), "OJASAUD", "OJASml_ytT1", "OJASml_ytT1_8", 8, 0, 0))
  				{
  					func_239();
  				}
  			}
  			break;
  		
  		case 2:
  			if (func_220())
  			{
  				if (iLocal_1233 == -1)
  				{
  					iLocal_1233 = MISC::GET_RANDOM_INT_IN_RANGE(0, 3);
  				}
  				else if (iLocal_1233 == 0)
  				{
  					if (func_240(&(Local_971.f_16), "OJASAUD", "OJASml_ytT1", "OJASml_ytT1_9", 9, 0, 0))
  					{
  						func_239();
  					}
  				}
  				else if (iLocal_1233 == 1)
  				{
  					if (func_240(&(Local_971.f_16), "OJASAUD", "OJASml_ytT1", "OJASml_ytT1_10", 8, 0, 0))
  					{
  						func_239();
  					}
  				}
  				else if (iLocal_1233 == 2)
  				{
  					if (func_240(&(Local_971.f_16), "OJASAUD", "OJASml_ytT1", "OJASml_ytT1_11", 8, 0, 0))
  					{
  						func_239();
  					}
  				}
  			}
  			break;
  	}
  }
  
  void func_239()
  {
  	iLocal_1234++;
  	iLocal_1233 = -1;
  	func_221();
  }
  
  bool func_240(var uParam0, char* sParam1, char* sParam2, char* sParam3, int iParam4, int iParam5, int iParam6)
  {
  	func_37(uParam0, 145, sParam1, iParam5, iParam6, 0);
  	if (iParam4 > 7)
  	{
  		if (iParam4 < 12)
  		{
  			iParam4 = 7;
  		}
  	}
  	Global_20812 = 0;
  	Global_20819 = 0;
  	Global_20814 = 0;
  	Global_21796 = 1;
  	Global_21798 = 0;
  	Global_21802 = 0;
  	StringCopy(&Global_21809, sParam3, 24);
  	Global_2621441 = 0;
  	return func_23(sParam2, iParam4, 0);
  }
  
  int func_241(int iParam0)
  {
  	switch (*iParam0)
  	{
  		case 0:
  			func_22(&(Local_971.f_16), "OJASAUD", "OJASml_spot", 9, 0, 0, 0);
  			TASK::TASK_LOOK_AT_ENTITY(Local_971, PLAYER::PLAYER_PED_ID(), 5000, 0, 2);
  			*iParam0++;
  			break;
  		
  		case 1:
  			if (!func_51())
  			{
  				func_22(&(Local_971.f_16), "OJASAUD", "OJASml_get", 8, 0, 0, 0);
  				TASK::TASK_LOOK_AT_ENTITY(Local_971, PLAYER::PLAYER_PED_ID(), 5000, 0, 2);
  				return 1;
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_242(int iParam0, float fParam1)
  {
  	struct<3> Var0;
  	
  	if (PLAYER::GET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID()) > 0)
  	{
  		if (!PED::IS_PED_INJURED(iParam0))
  		{
  			Var0 = { ENTITY::GET_ENTITY_COORDS(iParam0, true) };
  			if (PED::IS_COP_PED_IN_AREA_3D((Var0.x - fParam1), (Var0.f_1 - fParam1), (Var0.f_2 - fParam1), (Var0.x + fParam1), (Var0.f_1 + fParam1), (Var0.f_2 + fParam1)))
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_243(var uParam0)
  {
  	if (VEHICLE::IS_VEHICLE_DRIVEABLE(uParam0->f_1, false))
  	{
  		if (PED::IS_PED_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), uParam0->f_1, true) || ENTITY::IS_ENTITY_TOUCHING_ENTITY(PLAYER::PLAYER_PED_ID(), uParam0->f_1))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_244(var uParam0, var uParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	func_255();
  	switch (iLocal_1168)
  	{
  		case 0:
  			func_230(uParam1);
  			iLocal_1168 = 1;
  			break;
  		
  		case 1:
  			if (((((func_223(*uParam1, 0, &Local_120, &uLocal_122, 1, 0, 0, 1, 1) || func_254(&bLocal_1213)) || func_253(*uParam1, &iLocal_1273, 1f, 20f, &uLocal_1214)) || (func_242(*uParam1, 25f) && iLocal_1208)) || FIRE::IS_EXPLOSION_IN_ANGLED_AREA(-1, -1218.042f, -1549.616f, -3.3703f, -1185.349f, -1597.103f, 10.5993f, 46f)) || iLocal_1208)
  			{
  				AUDIO::STOP_SCRIPTED_CONVERSATION(false);
  				if (WEAPON::GET_CURRENT_PED_WEAPON(PLAYER::PLAYER_PED_ID(), &iVar1, true))
  				{
  					if (iVar1 != 0)
  					{
  						iVar2 = 1;
  					}
  				}
  				if (PED::IS_PED_SHOOTING(PLAYER::PLAYER_PED_ID()) || (iVar2 && iVar1 != joaat("weapon_unarmed")))
  				{
  					TASK::TASK_SMART_FLEE_PED(*uParam1, PLAYER::PLAYER_PED_ID(), 500f, -1, false, false);
  				}
  				else
  				{
  					TASK::TASK_COMBAT_PED(*uParam1, PLAYER::PLAYER_PED_ID(), 0, 16);
  				}
  				func_266(0);
  				ENTITY::SET_ENTITY_LOAD_COLLISION_FLAG(*uParam1, true, 1);
  				iLocal_1208 = 1;
  				iLocal_1168 = 2;
  			}
  			else if (!PED::IS_PED_INJURED(*uParam1))
  			{
  				if (!iLocal_1209)
  				{
  					func_261(uParam0, uParam1);
  				}
  				func_251();
  			}
  			break;
  		
  		case 2:
  			if (bLocal_1213 || uLocal_1214)
  			{
  				iVar0 = func_249(0, ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true), 20f);
  				if (iVar0 != 0)
  				{
  					func_38(&(uParam1->f_16), 4, iVar0, "OJAmlGymOnlookerF", 0, 1);
  				}
  				if (bLocal_1213)
  				{
  					if (!iLocal_1223)
  					{
  						if (func_22(&(uParam1->f_16), "OJASAUD", "OJASml_bbWN3", 8, 0, 0, 0))
  						{
  							iLocal_1223 = 1;
  						}
  					}
  				}
  				else if (!iLocal_1223)
  				{
  					if (func_22(&(uParam1->f_16), "OJASAUD", "OJASml_bbWN4", 8, 0, 0, 0))
  					{
  						iLocal_1223 = 1;
  					}
  				}
  			}
  			if (!PED::IS_PED_INJURED(*uParam1))
  			{
  				if (TASK::GET_SCRIPT_TASK_STATUS(*uParam1, 1805844857) != 1)
  				{
  					if (PED::IS_PED_SHOOTING(PLAYER::PLAYER_PED_ID()))
  					{
  						TASK::CLEAR_PED_TASKS(*uParam1);
  						TASK::TASK_SMART_FLEE_PED(*uParam1, PLAYER::PLAYER_PED_ID(), 500f, -1, false, false);
  					}
  				}
  			}
  			if (func_222(*uParam1, fLocal_1248, 0))
  			{
  				func_2(Local_971, uParam0, 0);
  			}
  			break;
  	}
  	func_245(uParam1);
  }
  
  void func_245(var uParam0)
  {
  	if (!PED::IS_PED_INJURED(*uParam0))
  	{
  		if (!func_51())
  		{
  			if (!iLocal_1208)
  			{
  				if (!iLocal_1209)
  				{
  					if (func_263(*uParam0, 1) < 3.5f)
  					{
  						iLocal_1209 = 1;
  					}
  					else if (func_263(*uParam0, 1) < 20f && !HUD::IS_MESSAGE_BEING_DISPLAYED())
  					{
  						func_248(uParam0);
  					}
  				}
  				else
  				{
  					func_246(uParam0);
  				}
  			}
  			else
  			{
  				if (!iLocal_1210)
  				{
  					if (TASK::GET_SCRIPT_TASK_STATUS(*uParam0, 1805844857) == 1)
  					{
  						func_22(&(uParam0->f_16), "OJASAUD", "OJASml_bbHLP", 8, 0, 0, 0);
  						iLocal_1210 = 1;
  					}
  				}
  				if (!iLocal_1211)
  				{
  					if (TASK::GET_SCRIPT_TASK_STATUS(*uParam0, 780511057) == 1)
  					{
  						if (func_263(*uParam0, 1) < 15f)
  						{
  							func_22(&(uParam0->f_16), "OJASAUD", "OJASml_bbKIL", 8, 0, 0, 0);
  							iLocal_1211 = 1;
  						}
  					}
  				}
  			}
  		}
  	}
  }
  
  void func_246(var uParam0)
  {
  	if (!PED::IS_PED_INJURED(*uParam0))
  	{
  		if (iLocal_1239 == 0)
  		{
  			func_247(*uParam0, "misscommon@response", "bring_it_on");
  			func_44(&iLocal_1270);
  			iLocal_1239++;
  		}
  		else if (iLocal_1239 == 1)
  		{
  			if (ENTITY::IS_ENTITY_PLAYING_ANIM(*uParam0, "misscommon@response", "bring_it_on", 3))
  			{
  				func_22(&(uParam0->f_16), "OJASAUD", "OJASml_bbWN1", 8, 0, 0, 0);
  				func_44(&iLocal_1270);
  				iLocal_1239++;
  			}
  		}
  		else if (iLocal_1239 == 2)
  		{
  			if (TASK::GET_SCRIPT_TASK_STATUS(*uParam0, -2017877118) != 1 && !func_51())
  			{
  				if (func_45(&iLocal_1270) > 5.5f)
  				{
  					if (func_263(*uParam0, 1) > 3.5f)
  					{
  						iLocal_1209 = 0;
  					}
  					iLocal_1239++;
  				}
  			}
  		}
  		else if (iLocal_1239 == 3)
  		{
  			if (iLocal_1209)
  			{
  				func_247(*uParam0, "misscommon@response", "threaten");
  				func_44(&iLocal_1270);
  				iLocal_1239++;
  			}
  		}
  		else if (iLocal_1239 == 4)
  		{
  			if (ENTITY::IS_ENTITY_PLAYING_ANIM(*uParam0, "misscommon@response", "threaten", 3))
  			{
  				func_22(&(uParam0->f_16), "OJASAUD", "OJASml_bbWN2", 8, 0, 0, 0);
  				func_44(&iLocal_1270);
  				iLocal_1239++;
  			}
  		}
  		else if (iLocal_1239 == 5)
  		{
  			if (TASK::GET_SCRIPT_TASK_STATUS(*uParam0, -2017877118) != 1)
  			{
  				if (func_45(&iLocal_1270) > 7f)
  				{
  					if (func_263(*uParam0, 1) < 3.5f)
  					{
  						iLocal_1208 = 1;
  					}
  					else
  					{
  						iLocal_1209 = 0;
  					}
  				}
  			}
  		}
  	}
  }
  
  void func_247(int iParam0, char* sParam1, char* sParam2)
  {
  	int iVar0;
  	
  	TASK::CLEAR_PED_TASKS(iParam0);
  	TASK::CLEAR_SEQUENCE_TASK(&iVar0);
  	TASK::OPEN_SEQUENCE_TASK(&iVar0);
  	TASK::TASK_TURN_PED_TO_FACE_ENTITY(0, PLAYER::PLAYER_PED_ID(), 0);
  	TASK::TASK_PLAY_ANIM(0, sParam1, sParam2, 4f, -4f, -1, 0, 0f, false, false, false);
  	TASK::CLOSE_SEQUENCE_TASK(iVar0);
  	TASK::TASK_PERFORM_SEQUENCE(iParam0, iVar0);
  	TASK::CLEAR_SEQUENCE_TASK(&iVar0);
  }
  
  void func_248(var uParam0)
  {
  	if (!func_497(&iLocal_1267))
  	{
  		func_44(&iLocal_1267);
  	}
  	else if (iLocal_1238 < 7)
  	{
  		if (func_45(&iLocal_1267) > fLocal_1249 && !func_51())
  		{
  			switch (iLocal_1238)
  			{
  				case 0:
  					func_22(&(uParam0->f_16), "OJASAUD", "OJASml_bbId0", 8, 0, 0, 0);
  					break;
  				
  				case 1:
  					func_38(&(uParam0->f_16), 4, Local_1870[0 /*9*/], "OJAmlGymOnlookerF", 0, 1);
  					func_22(&(uParam0->f_16), "OJASAUD", "OJASml_bbBY1", 8, 0, 0, 0);
  					break;
  				
  				case 2:
  					func_22(&(uParam0->f_16), "OJASAUD", "OJASml_bbId2", 8, 0, 0, 0);
  					break;
  				
  				case 3:
  					func_22(&(uParam0->f_16), "OJASAUD", "OJASml_bbBY3", 8, 0, 0, 0);
  					break;
  				
  				case 4:
  					func_22(&(uParam0->f_16), "OJASAUD", "OJASml_bbId0", 8, 0, 0, 0);
  					break;
  			}
  			func_44(&iLocal_1267);
  			fLocal_1249 = MISC::GET_RANDOM_FLOAT_IN_RANGE(5f, 8f);
  			iLocal_1238++;
  		}
  	}
  }
  
  var func_249(bool bParam0, struct<3> Param1, float fParam2)
  {
  	int iVar0;
  	float fVar1;
  	float fVar2;
  	var uVar3;
  	
  	fVar1 = fParam2;
  	iVar0 = 0;
  	while (iVar0 <= 1)
  	{
  		if (!PED::IS_PED_INJURED(Local_1870[iVar0 /*9*/]))
  		{
  			if ((bParam0 && PED::IS_PED_MALE(Local_1870[iVar0 /*9*/])) || (!bParam0 && !PED::IS_PED_MALE(Local_1870[iVar0 /*9*/])))
  			{
  				fVar2 = func_250(Local_1870[iVar0 /*9*/], Param1, 1);
  				if (fVar2 <= fVar1)
  				{
  					uVar3 = Local_1870[iVar0 /*9*/];
  					fVar1 = fVar2;
  				}
  			}
  		}
  		iVar0++;
  	}
  	return uVar3;
  }
  
  float func_250(int iParam0, struct<3> Param1, bool bParam2)
  {
  	if (ENTITY::IS_ENTITY_DEAD(iParam0, false))
  	{
  		return -1f;
  	}
  	return MISC::GET_DISTANCE_BETWEEN_COORDS(ENTITY::GET_ENTITY_COORDS(iParam0, true), Param1, bParam2);
  }
  
  void func_251()
  {
  	int iVar0;
  	int iVar1;
  	
  	if (iLocal_1237 < 2)
  	{
  		iVar0 = iLocal_1237;
  	}
  	else
  	{
  		iLocal_1237 = 0;
  	}
  	if (!PED::IS_PED_INJURED(Local_1870[iVar0 /*9*/]))
  	{
  		switch (Local_1870[iVar0 /*9*/].f_8)
  		{
  			case 0:
  				if (func_250(Local_1870[iVar0 /*9*/], Local_1870[iVar0 /*9*/].f_1, 1) > 2f)
  				{
  					if (TASK::GET_SCRIPT_TASK_STATUS(Local_1870[iVar0 /*9*/], 242628503) != 1)
  					{
  						TASK::CLEAR_PED_TASKS(Local_1870[iVar0 /*9*/]);
  						TASK::OPEN_SEQUENCE_TASK(&iVar1);
  						TASK::TASK_GO_TO_COORD_ANY_MEANS(0, Local_1870[iVar0 /*9*/].f_1, 1f, 0, false, 786603, -1f);
  						TASK::TASK_TURN_PED_TO_FACE_COORD(0, Local_1253, 0);
  						TASK::CLOSE_SEQUENCE_TASK(iVar1);
  						TASK::TASK_PERFORM_SEQUENCE(Local_1870[iVar0 /*9*/], iVar1);
  						TASK::CLEAR_SEQUENCE_TASK(&iVar1);
  					}
  				}
  				else if (TASK::GET_SCRIPT_TASK_STATUS(Local_1870[iVar0 /*9*/], 242628503) != 1 && TASK::GET_SCRIPT_TASK_STATUS(Local_1870[iVar0 /*9*/], -2017877118) != 1)
  				{
  					func_252(Local_1870[iVar0 /*9*/], 1);
  				}
  				break;
  			
  			case 1:
  				if (TASK::GET_SCRIPT_TASK_STATUS(Local_1870[iVar0 /*9*/], -2017877118) != 1)
  				{
  					func_252(Local_1870[iVar0 /*9*/], 0);
  				}
  				break;
  			
  			case 2:
  				if (TASK::GET_SCRIPT_TASK_STATUS(Local_1870[iVar0 /*9*/], -1146898486) != 1)
  				{
  					TASK::TASK_WANDER_STANDARD(Local_1870[iVar0 /*9*/], 40000f, 0);
  				}
  				break;
  			}
  	}
  	iLocal_1237++;
  }
  
  void func_252(int iParam0, bool bParam1)
  {
  	int iVar0;
  	
  	if (!PED::IS_PED_RAGDOLL(iParam0))
  	{
  		if (bParam1)
  		{
  			if (PED::IS_PED_MALE(iParam0))
  			{
  				iVar0 = (MISC::GET_RANDOM_INT_IN_RANGE(0, 65535) % 3);
  				if (iVar0 == 0)
  				{
  					TASK::TASK_PLAY_ANIM(iParam0, "oddjobs@assassinate@multi@", "react_big_variations_a", 4f, -4f, -1, 1, MISC::GET_RANDOM_FLOAT_IN_RANGE(0f, 1f), false, false, false);
  				}
  				else if (iVar0 == 1)
  				{
  					TASK::TASK_PLAY_ANIM(iParam0, "oddjobs@assassinate@multi@", "react_big_variations_b", 4f, -4f, -1, 1, MISC::GET_RANDOM_FLOAT_IN_RANGE(0f, 1f), false, false, false);
  				}
  				else
  				{
  					TASK::TASK_PLAY_ANIM(iParam0, "oddjobs@assassinate@multi@", "react_big_variations_c", 4f, -4f, -1, 1, MISC::GET_RANDOM_FLOAT_IN_RANGE(0f, 1f), false, false, false);
  				}
  			}
  			else
  			{
  				iVar0 = (MISC::GET_RANDOM_INT_IN_RANGE(0, 65535) % 2);
  				if (iVar0 == 0)
  				{
  					TASK::TASK_PLAY_ANIM(iParam0, "oddjobs@assassinate@multi@", "idle_a_pros", 4f, -4f, -1, 1, MISC::GET_RANDOM_FLOAT_IN_RANGE(0f, 1f), false, false, false);
  				}
  				else
  				{
  					TASK::TASK_PLAY_ANIM(iParam0, "oddjobs@assassinate@multi@", "idle_a_pros", 4f, -4f, -1, 1, MISC::GET_RANDOM_FLOAT_IN_RANGE(0f, 1f), false, false, false);
  				}
  			}
  		}
  	}
  }
  
  int func_253(int iParam0, int* iParam1, float fParam2, float fParam3, var uParam4)
  {
  	if (func_263(iParam0, 1) < fParam3)
  	{
  		if (WEAPON::IS_PED_ARMED(PLAYER::PLAYER_PED_ID(), 4))
  		{
  			if (PLAYER::IS_PLAYER_TARGETTING_ENTITY(PLAYER::PLAYER_ID(), iParam0) || PLAYER::IS_PLAYER_FREE_AIMING_AT_ENTITY(PLAYER::PLAYER_ID(), iParam0))
  			{
  				if (!func_497(iParam1))
  				{
  					func_44(iParam1);
  				}
  				else if (func_45(iParam1) >= fParam2)
  				{
  					*uParam4 = 1;
  					return 1;
  				}
  			}
  			else
  			{
  				func_44(iParam1);
  			}
  		}
  	}
  	return 0;
  }
  
  int func_254(var uParam0)
  {
  	if (func_223(Local_1870[iLocal_1236 /*9*/], 0, &Local_120, &uLocal_122, 0, 0, 0, 1, 1))
  	{
  		*uParam0 = 1;
  		return 1;
  	}
  	iLocal_1236++;
  	if (iLocal_1236 > 1)
  	{
  		iLocal_1236 = 0;
  	}
  	return 0;
  }
  
  void func_255()
  {
  	if (ENTITY::DOES_ENTITY_EXIST(Local_971))
  	{
  		if (!PED::IS_PED_INJURED(Local_971))
  		{
  			PED::SET_PED_RESET_FLAG(Local_971, 187, true);
  			PED::SET_PED_RESET_FLAG(Local_971, 155, true);
  		}
  	}
  }
  
  void func_256()
  {
  	Global_19671 = 0;
  	func_36();
  }
  
  void func_257(var uParam0, int iParam1, bool bParam2)
  {
  	char* sVar0;
  	
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		if (MISC::IS_BIT_SET(Global_2537071.f_4591, 26))
  		{
  			return;
  		}
  	}
  	if (CAM::IS_GAMEPLAY_HINT_ACTIVE())
  	{
  		CAM::STOP_GAMEPLAY_HINT(bParam2);
  		GRAPHICS::ANIMPOSTFX_STOP("FocusIn");
  		AUDIO::STOP_AUDIO_SCENE("HINT_CAM_SCENE");
  		if (uParam0->f_11)
  		{
  			GRAPHICS::ANIMPOSTFX_PLAY("FocusOut", 0, false);
  			AUDIO::PLAY_SOUND_FRONTEND(-1, "FocusOut", "HintCamSounds", true);
  			uParam0->f_11 = 0;
  		}
  	}
  	CAM::SET_CINEMATIC_BUTTON_ACTIVE(true);
  	uParam0->f_1 = 0;
  	*uParam0 = 0;
  	uParam0->f_2 = -1;
  	uParam0->f_8 = 0;
  	uParam0->f_5 = 0;
  	uParam0->f_6 = 0;
  	sVar0 = iParam1;
  	if (MISC::IS_STRING_NULL(sVar0))
  	{
  		if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  		{
  			sVar0 = "CMN_HINT";
  		}
  		else
  		{
  			sVar0 = "FM_IHELP_HNT";
  		}
  	}
  	if (!MISC::IS_STRING_NULL(uParam0->f_3))
  	{
  		if (func_217(uParam0->f_3))
  		{
  			HUD::CLEAR_HELP(true);
  		}
  	}
  	if (!MISC::IS_STRING_NULL(sVar0))
  	{
  		if (func_217(sVar0))
  		{
  			HUD::CLEAR_HELP(true);
  		}
  	}
  }
  
  void func_258()
  {
  	Global_19671 = 0;
  	func_259();
  }
  
  void func_259()
  {
  	AUDIO::RESTART_SCRIPTED_CONVERSATION();
  	Global_21816 = 0;
  	if (AUDIO::IS_SCRIPTED_CONVERSATION_ONGOING())
  	{
  		AUDIO::STOP_SCRIPTED_CONVERSATION(false);
  		Global_20805 = 6;
  	}
  }
  
  void func_260(var uParam0)
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	struct<3> Var2;
  	struct<3> Var3;
  	
  	Var0 = { -0.78f, -4.48f, 1.05f };
  	Var1 = { 0f, 0f, 275.04f };
  	Var2 = { -0.18f, -4.45f, 1.5f };
  	Var3 = { 0f, 0f, 0f };
  	if (VEHICLE::IS_VEHICLE_DRIVEABLE(uParam0->f_1, false))
  	{
  		if (!PED::IS_PED_INJURED(*uParam0))
  		{
  			if (!ENTITY::IS_ENTITY_PLAYING_ANIM(*uParam0, "oddjobs@assassinate@multi@yachttarget@lapdance", "yacht_ld_m", 3))
  			{
  				TASK::TASK_PLAY_ANIM(*uParam0, "oddjobs@assassinate@multi@yachttarget@lapdance", "yacht_ld_m", 8f, -8f, -1, 1, 0f, false, false, false);
  			}
  			if (!ENTITY::IS_ENTITY_ATTACHED(*uParam0))
  			{
  				ENTITY::ATTACH_ENTITY_TO_ENTITY(*uParam0, uParam0->f_1, 0, Var0, Var1, true, true, false, false, 2, true);
  			}
  		}
  		if (!PED::IS_PED_INJURED(uParam0->f_7))
  		{
  			if (!ENTITY::IS_ENTITY_PLAYING_ANIM(uParam0->f_7, "oddjobs@assassinate@multi@yachttarget@lapdance", "yacht_ld_f", 3))
  			{
  				TASK::TASK_PLAY_ANIM(uParam0->f_7, "oddjobs@assassinate@multi@yachttarget@lapdance", "yacht_ld_f", 8f, -8f, -1, 1, 0f, false, false, false);
  			}
  			if (!ENTITY::IS_ENTITY_ATTACHED(uParam0->f_7))
  			{
  				ENTITY::ATTACH_ENTITY_TO_ENTITY(uParam0->f_7, uParam0->f_1, 0, Var2, Var3, true, true, true, false, 2, true);
  			}
  		}
  	}
  }
  
  void func_261(var uParam0, var uParam1)
  {
  	int iVar0;
  	float fVar1;
  	
  	switch (iLocal_1169)
  	{
  		case 0:
  			if (TASK::GET_SCRIPT_TASK_STATUS(*uParam1, 242628503) != 1)
  			{
  				fVar1 = ENTITY::GET_ENTITY_HEADING(*uParam1);
  				if (fVar1 < (uParam0->f_4 - 20f) || fVar1 > (uParam0->f_4 + 20f))
  				{
  					if (TASK::GET_SCRIPT_TASK_STATUS(*uParam1, 1920390111) != 1)
  					{
  						TASK::TASK_ACHIEVE_HEADING(*uParam1, uParam0->f_4, 0);
  					}
  				}
  				else
  				{
  					TASK::OPEN_SEQUENCE_TASK(&iVar0);
  					TASK::TASK_PLAY_ANIM(0, "oddjobs@assassinate@multi@", "idle_a", 4f, -4f, -1, 1, 0f, false, false, false);
  					TASK::CLOSE_SEQUENCE_TASK(iVar0);
  					TASK::TASK_PERFORM_SEQUENCE(*uParam1, iVar0);
  					TASK::CLEAR_SEQUENCE_TASK(&iVar0);
  				}
  			}
  			break;
  	}
  }
  
  void func_262(int iParam0)
  {
  	if (func_263(iParam0, 0) > fLocal_1248)
  	{
  		fLocal_1248 = (func_263(iParam0, 0) + 50f);
  	}
  }
  
  float func_263(int iParam0, bool bParam1)
  {
  	return func_281(PLAYER::GET_PLAYER_PED(PLAYER::GET_PLAYER_INDEX()), iParam0, bParam1);
  }
  
  int func_264(var uParam0, var uParam1)
  {
  	switch (iLocal_1167)
  	{
  		case 0:
  			if (func_280(uParam0->f_6, 1) < fLocal_1247 || func_263(*uParam1, 1) < fLocal_1247)
  			{
  				if (HUD::DOES_BLIP_EXIST(uParam1->f_2))
  				{
  					HUD::REMOVE_BLIP(&(uParam1->f_2));
  				}
  				return 1;
  			}
  			break;
  		
  		case 1:
  			if (func_280(uParam0->f_6, 1) < fLocal_1247 || func_263(*uParam1, 1) < fLocal_1247)
  			{
  				if (HUD::DOES_BLIP_EXIST(uParam1->f_2))
  				{
  					HUD::REMOVE_BLIP(&(uParam1->f_2));
  				}
  				return 1;
  			}
  			break;
  		
  		case 2:
  			if (func_280(uParam0->f_6, 1) < fLocal_1247 || func_263(*uParam1, 1) < fLocal_1247)
  			{
  				if (HUD::DOES_BLIP_EXIST(uParam1->f_2))
  				{
  					HUD::REMOVE_BLIP(&(uParam1->f_2));
  				}
  				return 1;
  			}
  			break;
  		
  		case 3:
  			if (func_280(uParam0->f_6, 1) < fLocal_1247 || func_263(*uParam1, 1) < (fLocal_1247 + 50f))
  			{
  				if (HUD::DOES_BLIP_EXIST(uParam1->f_2))
  				{
  					HUD::REMOVE_BLIP(&(uParam1->f_2));
  				}
  				return 1;
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_265(int iParam0)
  {
  	if (iLocal_1167 == 0)
  	{
  		if ((func_223(*iParam0, 0, &Local_120, &uLocal_122, 0, 0, 0, 1, 1) || func_254(&bLocal_1213)) || FIRE::IS_EXPLOSION_IN_SPHERE(-1, Local_1253, 25f))
  		{
  			return 1;
  		}
  	}
  	else if (iLocal_1167 == 1)
  	{
  		if (func_223(*iParam0, iParam0->f_1, &Local_120, &uLocal_122, 0, 0, 0, 1, 1) || func_223(iParam0->f_7, 0, &Local_120, &uLocal_122, 0, 0, 0, 1, 1))
  		{
  			return 1;
  		}
  	}
  	else if (func_223(*iParam0, iParam0->f_1, &Local_120, &uLocal_122, 0, 0, 0, 1, 1))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_266(bool bParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!iLocal_1217)
  	{
  		iVar0 = 0;
  		while (iVar0 <= 1)
  		{
  			if (!PED::IS_PED_INJURED(Local_1870[iVar0 /*9*/]))
  			{
  				iVar1 = (MISC::GET_RANDOM_INT_IN_RANGE(0, 65535) % 3);
  				if (iVar1 == 0 || iVar1 == 1)
  				{
  					if (TASK::GET_SCRIPT_TASK_STATUS(Local_1870[iVar0 /*9*/], 1805844857) != 1)
  					{
  						TASK::TASK_SMART_FLEE_PED(Local_1870[iVar0 /*9*/], PLAYER::PLAYER_PED_ID(), 200f, -1, false, false);
  						PED::SET_PED_KEEP_TASK(Local_1870[iVar0 /*9*/], true);
  					}
  				}
  				else if (TASK::GET_SCRIPT_TASK_STATUS(Local_1870[iVar0 /*9*/], 1805844857) != 1)
  				{
  					TASK::TASK_GO_TO_COORD_ANY_MEANS(Local_1870[iVar0 /*9*/], func_267(), 2f, 0, false, 786603, -1f);
  					PED::SET_PED_KEEP_TASK(Local_1870[iVar0 /*9*/], true);
  				}
  			}
  			if (bParam0)
  			{
  				ENTITY::SET_PED_AS_NO_LONGER_NEEDED(&(Local_1870[iVar0 /*9*/]));
  			}
  			iVar0++;
  		}
  		iLocal_1217 = 1;
  	}
  }
  
  Vector3 func_267()
  {
  	struct<3> Var0;
  	int iVar1;
  	
  	iVar1 = (MISC::GET_RANDOM_INT_IN_RANGE(0, 65535) % 6);
  	switch (iVar1)
  	{
  		case 0:
  			Var0 = { -1328.256f, -1595.244f, 3.4691f };
  			break;
  		
  		case 1:
  			Var0 = { -1226.843f, -1627.844f, 3.0966f };
  			break;
  		
  		case 2:
  			Var0 = { -1277.865f, -1499.797f, 3.4114f };
  			break;
  		
  		case 3:
  			Var0 = { -1245.8f, -1473.177f, 3.2454f };
  			break;
  		
  		case 4:
  			Var0 = { -1153.423f, -1599.508f, 3.386f };
  			break;
  		
  		case 5:
  			Var0 = { -1272.224f, -1612.436f, 3.0916f };
  			break;
  		
  		default:
  			Var0 = { -1272.224f, -1612.436f, 3.0916f };
  			break;
  	}
  	return Var0;
  }
  
  int func_268(int iParam0, var uParam1)
  {
  	if (CAM::IS_SCREEN_FADED_IN())
  	{
  		if (uParam1->f_274 != 0)
  		{
  			if (ENTITY::DOES_ENTITY_EXIST(*iParam0))
  			{
  				if (ENTITY::IS_ENTITY_DEAD(*iParam0, false))
  				{
  					RECORDING::_0x293220DA1B46CEBC(3f, 2f, 3);
  					return 1;
  				}
  			}
  		}
  		else if (ENTITY::DOES_ENTITY_EXIST(*iParam0))
  		{
  			if (PED::IS_PED_INJURED(*iParam0))
  			{
  				if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0->f_1, false) && ENTITY::HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY(*iParam0, iParam0->f_1, true))
  				{
  					iLocal_953 = 1;
  				}
  				else if (func_497(&iLocal_961) && func_45(&iLocal_961) < 3f)
  				{
  					iLocal_953 = 1;
  				}
  				RECORDING::_0x293220DA1B46CEBC(3f, 2f, 3);
  				return 1;
  			}
  			else if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0->f_1, false))
  			{
  				if (PED::IS_PED_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), iParam0->f_1, false))
  				{
  					if (ENTITY::GET_ENTITY_SPEED(iParam0->f_1) > 10f && ENTITY::IS_ENTITY_TOUCHING_ENTITY(iParam0->f_1, *iParam0))
  					{
  						if (PED::IS_PED_IN_ANY_VEHICLE(*iParam0, false))
  						{
  							PED::KNOCK_PED_OFF_VEHICLE(*iParam0);
  						}
  						ENTITY::SET_ENTITY_HEALTH(*iParam0, 0, 0);
  						iLocal_953 = 1;
  						RECORDING::_0x293220DA1B46CEBC(3f, 2f, 3);
  						return 1;
  					}
  				}
  			}
  		}
  	}
  	return 0;
  }
  
  int func_269(var uParam0)
  {
  	STREAMING::REQUEST_MODEL(*uParam0);
  	if (STREAMING::HAS_MODEL_LOADED(*uParam0))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_270(var uParam0)
  {
  	STREAMING::REQUEST_MODEL(*uParam0);
  	if (STREAMING::HAS_MODEL_LOADED(*uParam0))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_271(var uParam0)
  {
  	STREAMING::REQUEST_MODEL(*uParam0);
  	STREAMING::REQUEST_MODEL(uParam0->f_14);
  	if (STREAMING::HAS_MODEL_LOADED(*uParam0) && STREAMING::HAS_MODEL_LOADED(uParam0->f_14))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_272(var uParam0, int iParam1)
  {
  	switch (iLocal_1167)
  	{
  		case 0:
  			if (!PED::IS_PED_INJURED(*iParam1))
  			{
  				PED::SET_PED_COMPONENT_VARIATION(*iParam1, 0, 0, 0, 0);
  				PED::SET_PED_COMPONENT_VARIATION(*iParam1, 3, 1, 0, 0);
  				PED::SET_PED_COMPONENT_VARIATION(*iParam1, 4, 1, 0, 0);
  				PED::SET_PED_COMPONENT_VARIATION(*iParam1, 8, 1, 0, 0);
  				PED::SET_COMBAT_FLOAT(*iParam1, 7, 1f);
  				func_38(&uLocal_1295, 3, *iParam1, "OJAmlBODYBUILDER", 0, 1);
  				func_38(&(iParam1->f_16), 3, *iParam1, "OJAmlBODYBUILDER", 0, 1);
  			}
  			func_273();
  			break;
  		
  		case 1:
  			if (!ENTITY::DOES_ENTITY_EXIST(iParam1->f_9))
  			{
  				iParam1->f_9 = PED::CREATE_PED(5, uParam0->f_16, uParam0->f_22, uParam0->f_25, true, true);
  				PED::_0x2208438012482A1A(iParam1->f_9, false, false);
  				TASK::TASK_START_SCENARIO_AT_POSITION(iParam1->f_9, "WORLD_HUMAN_SUNBATHE", uParam0->f_22, uParam0->f_25, 0, false, true);
  				PED::SET_PED_COMBAT_ATTRIBUTES(iParam1->f_9, 17, true);
  			}
  			if (!PED::IS_PED_INJURED(iParam1->f_7))
  			{
  				PED::SET_BLOCKING_OF_NON_TEMPORARY_EVENTS(iParam1->f_7, true);
  				PED::SET_PED_DIES_IN_WATER(iParam1->f_7, false);
  				PED::SET_PED_COMPONENT_VARIATION(iParam1->f_7, 0, 1, 0, 0);
  				PED::SET_PED_COMPONENT_VARIATION(iParam1->f_7, 2, 1, 2, 0);
  				PED::SET_PED_COMPONENT_VARIATION(iParam1->f_7, 3, 0, 3, 0);
  				PED::SET_PED_COMPONENT_VARIATION(iParam1->f_7, 4, 0, 3, 0);
  				PED::SET_PED_COMPONENT_VARIATION(iParam1->f_7, 8, 1, 0, 0);
  			}
  			if (ENTITY::DOES_ENTITY_EXIST(iParam1->f_1))
  			{
  				AUDIO::SET_VEHICLE_RADIO_ENABLED(iParam1->f_1, true);
  				AUDIO::SET_VEHICLE_RADIO_LOUD(iParam1->f_1, true);
  				ENTITY::_SET_ENTITY_SOMETHING(iParam1->f_1, true);
  			}
  			if (!PED::IS_PED_INJURED(*iParam1))
  			{
  				PED::SET_PED_DIES_IN_WATER(*iParam1, false);
  				func_38(&uLocal_1295, 3, *iParam1, "OJAmlYACHTTARGET", 0, 1);
  				func_38(&(iParam1->f_16), 3, *iParam1, "OJAmlYACHTTARGET", 0, 1);
  				ENTITY::SET_ENTITY_LOAD_COLLISION_FLAG(*iParam1, true, 1);
  			}
  			iLocal_1258 = VEHICLE::CREATE_VEHICLE(joaat("seashark"), -2190.741f, -470.3163f, -0.4779f, 308.1181f, true, true, false);
  			PED::REMOVE_SCENARIO_BLOCKING_AREA(iLocal_1266, false);
  			iLocal_1266 = PED::ADD_SCENARIO_BLOCKING_AREA(Vector(-0.10296f, -468.8926f, -2182.363f) - Vector(15f, 15f, 15f), Vector(-0.10296f, -468.8926f, -2182.363f) + Vector(15f, 15f, 15f), false, true, true, true);
  			iLocal_1233 = -1;
  			iLocal_1234 = 0;
  			break;
  		
  		case 2:
  			if ((!PED::IS_PED_INJURED(*iParam1) && ENTITY::DOES_ENTITY_EXIST(iParam1->f_11[0])) && ENTITY::DOES_ENTITY_EXIST(iParam1->f_11[1]))
  			{
  				func_38(&(iParam1->f_16), 3, *iParam1, "OJAmlWASHER", 0, 1);
  				ENTITY::ATTACH_ENTITY_TO_ENTITY(*iParam1, iParam1->f_11[0], 0, -2.1f, -0.4f, 0.25f, 0f, 0f, 180f, true, true, false, false, 2, true);
  				TASK::TASK_PLAY_ANIM(*iParam1, "oddjobs@assassinate@multi@windowwasher", "_idle", 8f, -8f, -1, 1, 0f, false, false, false);
  				ENTITY::SET_ENTITY_LOD_DIST(iParam1->f_11[0], 225);
  				ENTITY::SET_ENTITY_LOD_DIST(iParam1->f_11[1], 225);
  			}
  			break;
  		
  		case 3:
  			if (!PED::IS_PED_INJURED(*iParam1))
  			{
  				PED::SET_PED_COMBAT_ATTRIBUTES(*iParam1, 6, true);
  				PED::GIVE_PED_HELMET(*iParam1, false, 4096, -1);
  				PED::SET_PED_HELMET(*iParam1, true);
  				func_38(&uLocal_1295, 3, *iParam1, "OJAmlBIKER", 0, 1);
  				func_38(&(iParam1->f_16), 3, *iParam1, "OJAmlBIKER", 0, 1);
  				if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam1->f_1, false))
  				{
  					PED::SET_PED_INTO_VEHICLE(*iParam1, iParam1->f_1, -1);
  					VEHICLE::SET_VEHICLE_ON_GROUND_PROPERLY(iParam1->f_1, 5f);
  				}
  			}
  			iLocal_1260 = VEHICLE::CREATE_VEHICLE(joaat("camper"), -1400.575f, 738.8264f, 182.1478f, 194.607f, true, true, false);
  			VEHICLE::SET_VEHICLE_ON_GROUND_PROPERLY(iLocal_1260, 5f);
  			iLocal_1261 = VEHICLE::CREATE_VEHICLE(joaat("bjxl"), -1371.269f, 734.4243f, 182.5433f, 182.766f, true, true, false);
  			VEHICLE::SET_VEHICLE_ON_GROUND_PROPERLY(iLocal_1261, 5f);
  			break;
  	}
  	if (!PED::IS_PED_INJURED(*iParam1))
  	{
  		ENTITY::SET_ENTITY_IS_TARGET_PRIORITY(*iParam1, true, 0f);
  	}
  }
  
  void func_273()
  {
  	Local_1870[0 /*9*/].f_1 = { -1209.031f, -1553.94f, 3.3721f };
  	Local_1870[1 /*9*/].f_1 = { -1214.192f, -1558.596f, 3.3476f };
  	Local_1870[0 /*9*/].f_8 = 1;
  	Local_1870[1 /*9*/].f_8 = 1;
  	Local_1870[0 /*9*/] = PED::CREATE_PED(5, joaat("a_f_y_fitness_02"), Local_1870[0 /*9*/].f_1, 169.9513f, true, true);
  	func_252(Local_1870[0 /*9*/], 1);
  	Local_1870[1 /*9*/] = PED::CREATE_PED(5, joaat("a_f_y_beach_01"), Local_1870[1 /*9*/].f_1, 257.4617f, true, true);
  	func_252(Local_1870[1 /*9*/], 1);
  	PED::SET_PED_COMBAT_ATTRIBUTES(Local_1870[0 /*9*/], 17, true);
  	PED::SET_PED_COMBAT_ATTRIBUTES(Local_1870[0 /*9*/], 1, false);
  	PED::SET_BLOCKING_OF_NON_TEMPORARY_EVENTS(Local_1870[0 /*9*/], true);
  	PED::SET_PED_COMBAT_ATTRIBUTES(Local_1870[1 /*9*/], 17, true);
  	PED::SET_PED_COMBAT_ATTRIBUTES(Local_1870[1 /*9*/], 1, false);
  	PED::SET_BLOCKING_OF_NON_TEMPORARY_EVENTS(Local_1870[1 /*9*/], true);
  }
  
  void func_274(var uParam0, int iParam1)
  {
  	int iVar0;
  	
  	func_38(&(iParam1->f_16), 1, PLAYER::PLAYER_PED_ID(), "FRANKLIN", 0, 1);
  	if (uParam0->f_274 == 1)
  	{
  		iParam1->f_3 = { -547.167f, -1827.514f, 21.9023f };
  		iParam1->f_6 = 81.6995f;
  	}
  	else if (uParam0->f_274 == 0)
  	{
  		iParam1->f_3 = { 359.6962f, -687.8932f, 28.188f };
  		iParam1->f_6 = 326.413f;
  	}
  	if (HUD::DOES_BLIP_EXIST(iParam1->f_2))
  	{
  		HUD::REMOVE_BLIP(&(iParam1->f_2));
  	}
  	if (uParam0->f_274 == 1)
  	{
  		HUD::SET_BLIP_NAME_FROM_TEXT_FILE(iParam1->f_2, "ASS_HK_DESTBLIP");
  	}
  	else if (uParam0->f_274 == 0)
  	{
  	}
  	if (!func_209(iParam1->f_3, func_165(), 0))
  	{
  		func_278(&(iParam1->f_2), iParam1->f_3, iParam1->f_6);
  	}
  	if (uParam0->f_274 != 0 && uParam0->f_274 != 1)
  	{
  		func_277(uParam0, iParam1);
  	}
  	if (uParam0->f_274 != 1)
  	{
  		func_276(uParam0, iParam1);
  	}
  	if (uParam0->f_14 != 0 && uParam0->f_274 != 0)
  	{
  		if (!ENTITY::DOES_ENTITY_EXIST(iParam1->f_7))
  		{
  			iParam1->f_7 = PED::CREATE_PED(4, uParam0->f_14, uParam0->f_18, uParam0->f_21, true, true);
  			if (uParam0->f_274 == 1)
  			{
  				TASK::TASK_PLAY_ANIM(iParam1->f_7, "ODDJOBS@ASSASSINATE@VICE@HOOKER", "idle_b", 1000f, -1000f, -1, 1, 0f, false, false, false);
  				PED::SET_PED_CAN_USE_AUTO_CONVERSATION_LOOKAT(iParam1->f_7, true);
  				func_38(&(iParam1->f_16), 4, iParam1->f_7, "OJAhkHOOKER", 0, 1);
  				PED::SET_BLOCKING_OF_NON_TEMPORARY_EVENTS(iParam1->f_7, true);
  				PED::SET_PED_COMBAT_ATTRIBUTES(iParam1->f_7, 17, true);
  				PED::SET_PED_FLEE_ATTRIBUTES(iParam1->f_7, 128, true);
  				PED::SET_PED_CONFIG_FLAG(iParam1->f_7, 134, true);
  			}
  		}
  	}
  	if (uParam0->f_15 != 0)
  	{
  		if (uParam0->f_274 != 0)
  		{
  			iParam1->f_8 = VEHICLE::CREATE_VEHICLE(uParam0->f_15, uParam0->f_26, uParam0->f_29, true, true, false);
  		}
  		if (uParam0->f_274 == 1)
  		{
  			VEHICLE::SET_VEHICLE_EXTRA(iParam1->f_8, 3, false);
  			VEHICLE::REMOVE_VEHICLE_WINDOW(iParam1->f_8, 1);
  			VEHICLE::REMOVE_VEHICLE_WINDOW(iParam1->f_8, 0);
  			iLocal_955 = PED::CREATE_PED_INSIDE_VEHICLE(iParam1->f_8, 4, uParam0->f_16, -1, true, true);
  			PED::SET_BLOCKING_OF_NON_TEMPORARY_EVENTS(iLocal_955, true);
  			func_38(&(Local_971.f_16), 5, iLocal_955, "KerbCrawler", 0, 1);
  		}
  	}
  	if (uParam0->f_274 == 2)
  	{
  		if (!HUD::DOES_BLIP_EXIST(iParam1->f_2))
  		{
  			iParam1->f_2 = HUD::ADD_BLIP_FOR_COORD(uParam0->f_6);
  			HUD::SET_BLIP_ROUTE(iParam1->f_2, true);
  			HUD::SET_BLIP_ROUTE_COLOUR(iParam1->f_2, 1);
  			HUD::SET_BLIP_COLOUR(iParam1->f_2, 1);
  		}
  	}
  	else if (uParam0->f_274 == 0)
  	{
  		iParam1->f_2 = HUD::ADD_BLIP_FOR_COORD(uParam0->f_6);
  		HUD::SET_BLIP_ROUTE(iParam1->f_2, true);
  		HUD::SET_BLIP_ROUTE_COLOUR(iParam1->f_2, 3);
  		HUD::SET_BLIP_COLOUR(iParam1->f_2, 3);
  		HUD::SET_BLIP_NAME_FROM_TEXT_FILE(iParam1->f_2, "ASS_BS_BLIP");
  	}
  	else
  	{
  		iParam1->f_2 = HUD::ADD_BLIP_FOR_COORD(uParam0->f_6);
  		HUD::SET_BLIP_ROUTE(iParam1->f_2, true);
  	}
  	iVar0 = 0;
  	while (iVar0 < 4)
  	{
  		if (!func_275(uParam0->f_249[iVar0 /*3*/]))
  		{
  			iParam1->f_11[iVar0] = OBJECT::CREATE_OBJECT(uParam0->f_244[iVar0], uParam0->f_249[iVar0 /*3*/], true, true, false);
  			ENTITY::SET_ENTITY_RECORDS_COLLISIONS(iParam1->f_11[iVar0], true);
  			ENTITY::SET_ENTITY_COLLISION(iParam1->f_11[iVar0], true, false);
  			if (iVar0 == 1)
  			{
  				ENTITY::FREEZE_ENTITY_POSITION(iParam1->f_11[iVar0], true);
  			}
  			if (uParam0->f_262[iVar0] != 0f)
  			{
  				ENTITY::SET_ENTITY_HEADING(iParam1->f_11[iVar0], uParam0->f_262[iVar0]);
  			}
  		}
  		iVar0++;
  	}
  }
  
  int func_275(struct<3> Param0)
  {
  	if ((Param0.x == 0f && Param0.f_1 == 0f) && Param0.f_2 == 0f)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_276(var uParam0, var uParam1)
  {
  	if (uParam0->f_5 != 0)
  	{
  		if (!ENTITY::DOES_ENTITY_EXIST(uParam1->f_1))
  		{
  			uParam1->f_1 = VEHICLE::CREATE_VEHICLE(uParam0->f_5, uParam0->f_9, uParam0->f_12, true, true, false);
  			if (uParam0->f_274 == 1)
  			{
  				VEHICLE::SET_VEHICLE_EXTRA(uParam1->f_1, 2, true);
  				VEHICLE::REMOVE_VEHICLE_WINDOW(uParam1->f_1, 1);
  				VEHICLE::REMOVE_VEHICLE_WINDOW(uParam1->f_1, 0);
  				VEHICLE::SET_VEHICLE_DOORS_LOCKED(uParam1->f_1, 3);
  			}
  			else if (uParam0->f_274 == 0)
  			{
  				ENTITY::SET_ENTITY_LOAD_COLLISION_FLAG(uParam1->f_1, true, 1);
  				VEHICLE::SET_VEHICLE_COLOUR_COMBINATION(uParam1->f_1, 0);
  			}
  			VEHICLE::ADD_VEHICLE_UPSIDEDOWN_CHECK(uParam1->f_1);
  			if (uParam0->f_267 == 1)
  			{
  				if (ENTITY::DOES_ENTITY_EXIST(uParam1->f_1))
  				{
  					if (VEHICLE::IS_VEHICLE_DRIVEABLE(uParam1->f_1, false))
  					{
  						if (!PED::IS_PED_INJURED(*uParam1))
  						{
  							PED::SET_PED_INTO_VEHICLE(*uParam1, uParam1->f_1, -1);
  						}
  					}
  				}
  			}
  		}
  	}
  }
  
  void func_277(var uParam0, var uParam1)
  {
  	if (!ENTITY::DOES_ENTITY_EXIST(*uParam1))
  	{
  		*uParam1 = PED::CREATE_PED(4, *uParam0, uParam0->f_1, uParam0->f_4, true, true);
  		PED::SET_PED_MODEL_IS_SUPPRESSED(*uParam0, true);
  		PED::SET_PED_CAN_USE_AUTO_CONVERSATION_LOOKAT(*uParam1, true);
  		PED::SET_PED_CAN_BE_TARGETTED(*uParam1, true);
  		PED::SET_PED_CAN_BE_SHOT_IN_VEHICLE(*uParam1, true);
  		PED::SET_PED_CONFIG_FLAG(*uParam1, 29, true);
  		ENTITY::SET_ENTITY_IS_TARGET_PRIORITY(*uParam1, true, 0f);
  		if (!iLocal_957)
  		{
  			PED::ADD_RELATIONSHIP_GROUP("Target", &iLocal_967);
  			iLocal_957 = 1;
  		}
  		PED::SET_RELATIONSHIP_BETWEEN_GROUPS(5, iLocal_967, 1862763509);
  		PED::SET_RELATIONSHIP_BETWEEN_GROUPS(5, 1862763509, iLocal_967);
  		PED::SET_PED_RELATIONSHIP_GROUP_HASH(*uParam1, iLocal_967);
  		if (uParam0->f_268)
  		{
  			PED::SET_BLOCKING_OF_NON_TEMPORARY_EVENTS(*uParam1, true);
  		}
  		if (uParam0->f_269)
  		{
  			PED::SET_PED_COMBAT_ATTRIBUTES(*uParam1, 3, false);
  			PED::SET_PED_GET_OUT_UPSIDE_DOWN_VEHICLE(*uParam1, true);
  		}
  		if (uParam0->f_13 != 0)
  		{
  			WEAPON::GIVE_WEAPON_TO_PED(*uParam1, uParam0->f_13, -1, false, true);
  		}
  		if (uParam0->f_274 == 0)
  		{
  			PED::SET_PED_COMPONENT_VARIATION(*uParam1, 0, 0, 1, 0);
  			PED::SET_PED_COMPONENT_VARIATION(*uParam1, 2, 2, 2, 0);
  			PED::SET_PED_COMPONENT_VARIATION(*uParam1, 3, 0, 1, 0);
  			PED::SET_PED_COMPONENT_VARIATION(*uParam1, 4, 0, 1, 0);
  			PED::SET_PED_COMPONENT_VARIATION(*uParam1, 8, 1, 2, 0);
  			func_38(&(uParam1->f_16), 3, *uParam1, "INVESTOR", 0, 1);
  		}
  		else if (uParam0->f_274 == 1)
  		{
  			func_38(&(uParam1->f_16), 3, *uParam1, "OJAhkJUNKIE", 0, 1);
  			PED::SET_PED_COMPONENT_VARIATION(*uParam1, 0, 0, 0, 0);
  			PED::SET_PED_COMPONENT_VARIATION(*uParam1, 2, 1, 0, 0);
  			PED::SET_PED_COMPONENT_VARIATION(*uParam1, 3, 1, 2, 0);
  			PED::SET_PED_COMPONENT_VARIATION(*uParam1, 4, 0, 0, 0);
  			PED::SET_PED_CONFIG_FLAG(*uParam1, 134, true);
  			PED::SET_PED_PLAYS_HEAD_ON_HORN_ANIM_WHEN_DIES_IN_VEHICLE(*uParam1, true);
  			PED::SET_PED_MONEY(*uParam1, MISC::GET_RANDOM_INT_IN_RANGE(80, 100));
  			WEAPON::GIVE_WEAPON_TO_PED(*uParam1, joaat("weapon_combatpistol"), -1, false, true);
  			PED::SET_PED_ACCURACY(*uParam1, 50);
  		}
  	}
  }
  
  void func_278(var uParam0, struct<3> Param1, var uParam2)
  {
  	if (HUD::DOES_BLIP_EXIST(*uParam0))
  	{
  		Global_110674 = *uParam0;
  		Global_110679 = { Param1 };
  		Global_110683 = uParam2;
  	}
  }
  
  int func_279(var uParam0)
  {
  	STREAMING::REQUEST_MODEL(*uParam0);
  	STREAMING::REQUEST_MODEL(joaat("a_f_y_beach_01"));
  	STREAMING::REQUEST_MODEL(joaat("a_f_y_fitness_02"));
  	if ((STREAMING::HAS_MODEL_LOADED(*uParam0) && STREAMING::HAS_MODEL_LOADED(joaat("a_f_y_beach_01"))) && STREAMING::HAS_MODEL_LOADED(joaat("a_f_y_fitness_02")))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  float func_280(struct<3> Param0, bool bParam1)
  {
  	return func_250(PLAYER::GET_PLAYER_PED(PLAYER::GET_PLAYER_INDEX()), Param0, bParam1);
  }
  
  float func_281(int iParam0, int iParam1, bool bParam2)
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	
  	if (!ENTITY::IS_ENTITY_DEAD(iParam0, false))
  	{
  		Var0 = { ENTITY::GET_ENTITY_COORDS(iParam0, true) };
  	}
  	else
  	{
  		Var0 = { ENTITY::GET_ENTITY_COORDS(iParam0, false) };
  	}
  	if (!ENTITY::IS_ENTITY_DEAD(iParam1, false))
  	{
  		Var1 = { ENTITY::GET_ENTITY_COORDS(iParam1, true) };
  	}
  	else
  	{
  		Var1 = { ENTITY::GET_ENTITY_COORDS(iParam1, false) };
  	}
  	return MISC::GET_DISTANCE_BETWEEN_COORDS(Var0, Var1, bParam2);
  }
  
  void func_282()
  {
  	struct<3> Var0;
  	
  	if (func_497(&iLocal_1279))
  	{
  		if (func_45(&iLocal_1279) > 30f)
  		{
  			if (!ENTITY::IS_ENTITY_DEAD(PLAYER::PLAYER_PED_ID(), false))
  			{
  				Var0 = { ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true) };
  			}
  			if (iLocal_1230 == 1)
  			{
  				if (SYSTEM::VDIST(Var0, Local_1292[0 /*3*/]) < 100f || PED::IS_PED_IN_FLYING_VEHICLE(PLAYER::PLAYER_PED_ID()))
  				{
  					if (PLAYER::GET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID()) == 0)
  					{
  						PLAYER::SET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID(), 2, false);
  						PLAYER::SET_PLAYER_WANTED_LEVEL_NOW(PLAYER::PLAYER_ID(), false);
  					}
  				}
  			}
  			else if (iLocal_1230 == 2)
  			{
  				if (SYSTEM::VDIST(Var0, Local_1292[1 /*3*/]) < 100f || PED::IS_PED_IN_FLYING_VEHICLE(PLAYER::PLAYER_PED_ID()))
  				{
  					if (PLAYER::GET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID()) == 0)
  					{
  						PLAYER::SET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID(), 2, false);
  						PLAYER::SET_PLAYER_WANTED_LEVEL_NOW(PLAYER::PLAYER_ID(), false);
  					}
  				}
  			}
  			else if (iLocal_1230 == 3)
  			{
  				if (SYSTEM::VDIST(Var0, Local_1292[2 /*3*/]) < 100f || PED::IS_PED_IN_FLYING_VEHICLE(PLAYER::PLAYER_PED_ID()))
  				{
  					if (PLAYER::GET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID()) == 0)
  					{
  						PLAYER::SET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID(), 2, false);
  						PLAYER::SET_PLAYER_WANTED_LEVEL_NOW(PLAYER::PLAYER_ID(), false);
  					}
  				}
  			}
  		}
  	}
  }
  
  void func_283()
  {
  	if (iLocal_1167 == 2)
  	{
  		if (!PHYSICS::DOES_ROPE_EXIST(&iLocal_1252))
  		{
  			if (!PED::IS_PED_INJURED(Local_971))
  			{
  				if (!iLocal_1206)
  				{
  					ENTITY::SET_ENTITY_LOAD_COLLISION_FLAG(Local_971, true, 1);
  					PED::SET_PED_TO_RAGDOLL(Local_971, 1, 1, 0, true, true, false);
  				}
  			}
  			if (AUDIO::LOAD_STREAM("WINDOWWASHERFALL_MASTER", 0))
  			{
  				AUDIO::PLAY_STREAM_FROM_POSITION(-648.59f, 305.73f, 120f);
  			}
  			if (CAM::IS_FIRST_PERSON_AIM_CAM_ACTIVE())
  			{
  				CAM::SET_FIRST_PERSON_AIM_CAM_ZOOM_FACTOR(1f);
  			}
  			iLocal_1206 = 1;
  		}
  		else if (!PHYSICS::DOES_ROPE_EXIST(&iLocal_1251))
  		{
  			if (!PED::IS_PED_INJURED(Local_971))
  			{
  				if (!iLocal_1206)
  				{
  					ENTITY::SET_ENTITY_LOAD_COLLISION_FLAG(Local_971, true, 1);
  					PED::SET_PED_TO_RAGDOLL(Local_971, 1, 1, 0, true, true, false);
  				}
  			}
  			if (AUDIO::LOAD_STREAM("WINDOWWASHERFALL_MASTER", 0))
  			{
  				AUDIO::PLAY_STREAM_FROM_POSITION(-638.1931f, 306.014f, 121.4236f);
  			}
  			if (CAM::IS_FIRST_PERSON_AIM_CAM_ACTIVE())
  			{
  				CAM::SET_FIRST_PERSON_AIM_CAM_ZOOM_FACTOR(1f);
  			}
  			iLocal_1206 = 1;
  		}
  	}
  }
  
  void func_284(var uParam0, var uParam1)
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	struct<3> Var2;
  	struct<3> Var3;
  	int iVar4;
  	float fVar5;
  	float fVar6;
  	
  	if (ENTITY::DOES_ENTITY_EXIST(uParam1->f_11[0]))
  	{
  		Var3 = { ENTITY::GET_ENTITY_COORDS(uParam1->f_11[0], true) };
  	}
  	else
  	{
  		Var3 = { uParam0->f_249[0 /*3*/] };
  	}
  	fVar5 = 142.1f;
  	fVar6 = (fVar5 - Var3.f_2);
  	if (!ENTITY::IS_ENTITY_DEAD(PLAYER::PLAYER_PED_ID(), false))
  	{
  		Var0 = { ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true) };
  	}
  	if (!ENTITY::IS_ENTITY_DEAD(*uParam1, false))
  	{
  		Var1 = { ENTITY::GET_ENTITY_COORDS(*uParam1, true) };
  	}
  	switch (iLocal_1240)
  	{
  		case 0:
  			if (!bLocal_1215)
  			{
  				if (iLocal_1167 == 2)
  				{
  					if (SYSTEM::VDIST2(Var0, Var1) < 40000f)
  					{
  						if (ENTITY::DOES_ENTITY_EXIST(uParam1->f_11[0]))
  						{
  							if (ENTITY::DOES_ENTITY_EXIST(uParam1->f_11[1]))
  							{
  								if (!PHYSICS::ROPE_ARE_TEXTURES_LOADED())
  								{
  									PHYSICS::ROPE_LOAD_TEXTURES();
  								}
  								else
  								{
  									if (!PHYSICS::DOES_ROPE_EXIST(&iLocal_1252))
  									{
  										iLocal_1252 = PHYSICS::ADD_ROPE(-648.59f, 305.73f, fVar5, 0f, 90f, 0f, fVar6, 0, -1f, 5f, 0.5f, false, false, true, 5f, true, 0);
  									}
  									if (!PHYSICS::DOES_ROPE_EXIST(&iLocal_1251))
  									{
  										iLocal_1251 = PHYSICS::ADD_ROPE(-638.93f, 304.92f, fVar5, 0f, 90f, 0f, fVar6, 0, -1f, 5f, 0.5f, false, false, true, 5f, true, 0);
  									}
  									if (PHYSICS::DOES_ROPE_EXIST(&iLocal_1251) && PHYSICS::DOES_ROPE_EXIST(&iLocal_1252))
  									{
  										PHYSICS::ATTACH_ENTITIES_TO_ROPE(iLocal_1252, uParam1->f_11[1], uParam1->f_11[0], -648.59f, 305.73f, fVar5, -648.59f, 305.73f, Var3.f_2, fVar6, false, false, 0, 0);
  										PHYSICS::ATTACH_ENTITIES_TO_ROPE(iLocal_1251, uParam1->f_11[1], uParam1->f_11[0], -638.93f, 304.92f, fVar5, -638.93f, 304.92f, Var3.f_2, fVar6, false, false, 0, 0);
  										bLocal_1215 = true;
  										iLocal_1240 = 1;
  									}
  								}
  							}
  						}
  					}
  				}
  			}
  			break;
  		
  		case 1:
  			if (SYSTEM::VDIST2(Var0, Var1) < 18225f)
  			{
  				if (ENTITY::IS_ENTITY_ON_SCREEN(uParam1->f_11[0]))
  				{
  					if (iLocal_1168 < 2)
  					{
  						if (!PED::IS_PED_INJURED(*uParam1))
  						{
  							TASK::OPEN_SEQUENCE_TASK(&iVar4);
  							TASK::TASK_PLAY_ANIM(0, "oddjobs@assassinate@multi@windowwasher", "_idle_to_up", 8f, -8f, -1, 0, 0f, false, false, false);
  							TASK::TASK_PLAY_ANIM(0, "oddjobs@assassinate@multi@windowwasher", "_up_loop", 1000f, -8f, -1, 1, 0f, false, false, false);
  							TASK::CLOSE_SEQUENCE_TASK(iVar4);
  							TASK::TASK_PERFORM_SEQUENCE(*uParam1, iVar4);
  							TASK::CLEAR_SEQUENCE_TASK(&iVar4);
  						}
  					}
  					iLocal_1240 = 2;
  				}
  			}
  			break;
  		
  		case 2:
  			Var2 = { ENTITY::GET_ENTITY_COORDS(uParam1->f_11[0], true) };
  			if (ENTITY::IS_ENTITY_DEAD(*uParam1, false))
  			{
  				iLocal_1240 = 3;
  			}
  			if (PHYSICS::DOES_ROPE_EXIST(&iLocal_1252) && PHYSICS::DOES_ROPE_EXIST(&iLocal_1251))
  			{
  				PHYSICS::START_ROPE_WINDING(iLocal_1252);
  				PHYSICS::START_ROPE_WINDING(iLocal_1251);
  				if (Var2.f_2 >= 125f)
  				{
  					if (iLocal_1168 < 2)
  					{
  						if (!PED::IS_PED_INJURED(*uParam1))
  						{
  							TASK::OPEN_SEQUENCE_TASK(&iVar4);
  							TASK::TASK_PLAY_ANIM(0, "oddjobs@assassinate@multi@windowwasher", "_up_to_wash", 8f, -8f, -1, 0, 0f, false, false, false);
  							TASK::TASK_PLAY_ANIM(0, "oddjobs@assassinate@multi@windowwasher", "_wash_loop", 1000f, -8f, -1, 1, 0f, false, false, false);
  							TASK::CLOSE_SEQUENCE_TASK(iVar4);
  							TASK::TASK_PERFORM_SEQUENCE(*uParam1, iVar4);
  							TASK::CLEAR_SEQUENCE_TASK(&iVar4);
  						}
  					}
  					PHYSICS::STOP_ROPE_WINDING(iLocal_1252);
  					PHYSICS::STOP_ROPE_WINDING(iLocal_1251);
  					iLocal_1240 = 3;
  					ENTITY::APPLY_FORCE_TO_ENTITY(uParam1->f_11[0], 2, -20f, 0f, -20f, -4.78f, 0.65f, -0.78f, 0, false, false, true, false, true);
  				}
  			}
  			else
  			{
  				if (PHYSICS::DOES_ROPE_EXIST(&iLocal_1252))
  				{
  					PHYSICS::STOP_ROPE_WINDING(iLocal_1252);
  				}
  				if (PHYSICS::DOES_ROPE_EXIST(&iLocal_1251))
  				{
  					PHYSICS::STOP_ROPE_WINDING(iLocal_1251);
  				}
  			}
  			break;
  		
  		case 3:
  			if (PHYSICS::DOES_ROPE_EXIST(&iLocal_1252))
  			{
  				PHYSICS::STOP_ROPE_WINDING(iLocal_1252);
  			}
  			if (PHYSICS::DOES_ROPE_EXIST(&iLocal_1251))
  			{
  				PHYSICS::STOP_ROPE_WINDING(iLocal_1251);
  			}
  			break;
  	}
  }
  
  void func_285()
  {
  	if (!ENTITY::DOES_ENTITY_EXIST(iLocal_1264))
  	{
  		if (!ENTITY::IS_ENTITY_DEAD(PLAYER::PLAYER_PED_ID(), false))
  		{
  			if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  			{
  				iLocal_1264 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  				if (ENTITY::DOES_ENTITY_EXIST(iLocal_1264) && !ENTITY::IS_ENTITY_DEAD(iLocal_1264, false))
  				{
  					func_286(iLocal_1264);
  				}
  			}
  		}
  	}
  }
  
  void func_286(int iParam0)
  {
  	func_287(&(Global_105187.f_2890), &Global_105187, iParam0, 1);
  }
  
  int func_287(var uParam0, var uParam1, int iParam2, int iParam3)
  {
  	if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam2, false))
  	{
  		func_289(uParam0, iParam2, iParam3);
  		uParam1->f_4 = iParam2;
  		if (func_288(iParam2))
  		{
  			uParam1->f_3 = 1;
  		}
  		else
  		{
  			uParam1->f_3 = 0;
  		}
  		return 1;
  	}
  	return 0;
  }
  
  int func_288(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 <= 6)
  	{
  		if (Global_98744.f_22[iVar0] == iParam0)
  		{
  			return 1;
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  void func_289(var uParam0, int iParam1, int iParam2)
  {
  	func_295(iParam1, &(uParam0->f_12));
  	uParam0->f_7 = func_292(iParam1, 145, 0);
  	uParam0->f_11 = func_291(iParam1);
  	if (!uParam0->f_7)
  	{
  		if (!uParam0->f_10)
  		{
  			uParam0->f_10 = func_290(iParam1);
  		}
  	}
  	if (iParam2 == 1)
  	{
  		*uParam0 = { ENTITY::GET_ENTITY_COORDS(iParam1, true) };
  		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, false, true, 0))
  		{
  			*uParam0 = { -1160.095f, -1515.407f, 3.1496f };
  			uParam0->f_6 = 305.6424f;
  		}
  		if (Global_76346 == iParam1)
  		{
  			uParam0->f_9 = 1;
  		}
  	}
  	if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  	{
  		uParam0->f_8 = 1;
  	}
  	else
  	{
  		uParam0->f_8 = 0;
  	}
  }
  
  int func_290(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 68)
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(Global_75441.f_484[iVar0]))
  		{
  			if (iParam0 == Global_75441.f_484[iVar0])
  			{
  				return 1;
  			}
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  int func_291(int iParam0)
  {
  	int iVar0;
  	
  	if (!ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		return 145;
  	}
  	if (!VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  	{
  		return 145;
  	}
  	iVar0 = 0;
  	while (iVar0 < 9)
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(Global_96075[iVar0]))
  		{
  			if (Global_96075[iVar0] == iParam0)
  			{
  				return Global_96085[iVar0];
  			}
  		}
  		iVar0++;
  	}
  	return 145;
  }
  
  int func_292(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	
  	if (!ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		return 0;
  	}
  	if (!VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  	{
  		return 0;
  	}
  	iVar0 = 0;
  	while (iVar0 < 9)
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(Global_96075[iVar0]))
  		{
  			if (Global_96075[iVar0] == iParam0)
  			{
  				if (iParam1 == 145 || iParam1 == Global_96085[iVar0])
  				{
  					if (iParam2 == 0 || ENTITY::GET_ENTITY_MODEL(iParam0) == func_293(iParam1, iParam2))
  					{
  						return 1;
  					}
  				}
  			}
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  int func_293(int iParam0, int iParam1)
  {
  	struct<82> Var0;
  	
  	if (func_13(iParam0))
  	{
  		Var0.f_11 = 12;
  		Var0.f_31 = 49;
  		Var0.f_81 = 2;
  		func_294(iParam0, &Var0, iParam1);
  		return Var0;
  	}
  	else if (iParam0 != 145)
  	{
  	}
  	return 0;
  }
  
  void func_294(int iParam0, var uParam1, int iParam2)
  {
  	int iVar0;
  	
  	uParam1->f_88 = 1;
  	uParam1->f_84 = 255;
  	uParam1->f_85 = 255;
  	uParam1->f_86 = 255;
  	uParam1->f_97 = 1;
  	uParam1->f_3 = 1000;
  	uParam1->f_1 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			iVar0 = joaat("tailgater");
  			if (Global_111638.f_9080.f_99.f_58[128] && !Global_111638.f_9080.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_111638.f_9080.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_111638.f_9080.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_295(int iParam0, var uParam1)
  {
  	int iVar0;
  	
  	if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  	{
  		func_299(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))
  		{
  			MISC::SET_BIT(&(uParam1->f_77), 28);
  		}
  		if (VEHICLE::_IS_VEHICLE_NEON_LIGHT_ENABLED(iParam0, 3))
  		{
  			MISC::SET_BIT(&(uParam1->f_77), 29);
  		}
  		if (VEHICLE::_IS_VEHICLE_NEON_LIGHT_ENABLED(iParam0, 0))
  		{
  			MISC::SET_BIT(&(uParam1->f_77), 30);
  		}
  		if (VEHICLE::_IS_VEHICLE_NEON_LIGHT_ENABLED(iParam0, 1))
  		{
  			MISC::SET_BIT(&(uParam1->f_77), 31);
  		}
  		if (uParam1->f_65 == -1 && !func_298(uParam1->f_66))
  		{
  			uParam1->f_65 = 0;
  		}
  		if (VEHICLE::IS_VEHICLE_A_CONVERTIBLE(iParam0, false))
  		{
  			uParam1->f_68 = VEHICLE::GET_CONVERTIBLE_ROOF_STATE(iParam0);
  		}
  		if (VEHICLE::IS_THIS_MODEL_A_PLANE(uParam1->f_66))
  		{
  			if (VEHICLE::IS_PLANE_LANDING_GEAR_INTACT(iParam0))
  			{
  				switch (VEHICLE::GET_LANDING_GEAR_STATE(iParam0))
  				{
  					case 3:
  					case 0:
  						MISC::CLEAR_BIT(&(uParam1->f_77), 23);
  						MISC::SET_BIT(&(uParam1->f_77), 22);
  						break;
  					
  					case 4:
  					case 1:
  						MISC::CLEAR_BIT(&(uParam1->f_77), 23);
  						MISC::CLEAR_BIT(&(uParam1->f_77), 22);
  						break;
  					
  					case 5:
  						MISC::SET_BIT(&(uParam1->f_77), 23);
  						break;
  				}
  			}
  			else
  			{
  				MISC::SET_BIT(&(uParam1->f_77), 23);
  			}
  		}
  		if (!VEHICLE::GET_VEHICLE_TYRES_CAN_BURST(iParam0))
  		{
  			MISC::SET_BIT(&(uParam1->f_77), 9);
  		}
  		if (VEHICLE::IS_VEHICLE_STOLEN(iParam0))
  		{
  			MISC::SET_BIT(&(uParam1->f_77), 10);
  		}
  		if (VEHICLE::GET_IS_VEHICLE_PRIMARY_COLOUR_CUSTOM(iParam0))
  		{
  			MISC::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))
  		{
  			MISC::SET_BIT(&(uParam1->f_77), 12);
  		}
  		func_297(&iParam0, &(uParam1->f_9), &(uParam1->f_59));
  		iVar0 = 0;
  		while (iVar0 <= 11)
  		{
  			if (VEHICLE::IS_VEHICLE_EXTRA_TURNED_ON(iParam0, iVar0 + 1))
  			{
  				MISC::SET_BIT(&(uParam1->f_77), func_296(iVar0 + 1));
  			}
  			iVar0++;
  		}
  		if (GRAPHICS::DOES_VEHICLE_HAVE_CREW_EMBLEM(iParam0, 0))
  		{
  			MISC::SET_BIT(&(uParam1->f_77), 11);
  		}
  		else
  		{
  			MISC::CLEAR_BIT(&(uParam1->f_77), 11);
  		}
  		if (DECORATOR::DECOR_EXIST_ON(iParam0, "IgnoredByQuickSave") && DECORATOR::DECOR_GET_BOOL(iParam0, "IgnoredByQuickSave"))
  		{
  			MISC::SET_BIT(&(uParam1->f_77), 27);
  		}
  		else
  		{
  			MISC::CLEAR_BIT(&(uParam1->f_77), 27);
  		}
  	}
  }
  
  int func_296(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 1:
  			return 0;
  			break;
  		
  		case 2:
  			return 1;
  			break;
  		
  		case 3:
  			return 2;
  			break;
  		
  		case 4:
  			return 3;
  			break;
  		
  		case 5:
  			return 4;
  			break;
  		
  		case 6:
  			return 5;
  			break;
  		
  		case 7:
  			return 6;
  			break;
  		
  		case 8:
  			return 7;
  			break;
  		
  		case 9:
  			return 8;
  			break;
  		
  		case 10:
  			return 24;
  			break;
  		
  		case 11:
  			return 25;
  			break;
  		
  		case 12:
  			return 26;
  			break;
  	}
  	return 0;
  }
  
  int func_297(int iParam0, var uParam1, var uParam2)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!VEHICLE::IS_VEHICLE_DRIVEABLE(*iParam0, false))
  	{
  		return 0;
  	}
  	if (VEHICLE::GET_NUM_MOD_KITS(*iParam0) == 0)
  	{
  		return 0;
  	}
  	iVar0 = 0;
  	while (iVar0 < *uParam1)
  	{
  		iVar1 = iVar0;
  		if ((((iVar1 == 17 || iVar1 == 18) || iVar1 == 19) || iVar1 == 20) || iVar1 == 21)
  		{
  			(*uParam1)[iVar0] = 0;
  			if (VEHICLE::IS_TOGGLE_MOD_ON(*iParam0, iVar1))
  			{
  				(*uParam1)[iVar0] = 1;
  			}
  		}
  		else if (iVar1 == 22)
  		{
  			if (VEHICLE::IS_TOGGLE_MOD_ON(*iParam0, iVar1))
  			{
  				switch (VEHICLE::_GET_VEHICLE_XENON_LIGHTS_COLOR(*iParam0))
  				{
  					case 255:
  						(*uParam1)[iVar0] = 1;
  						break;
  					
  					case 0:
  						(*uParam1)[iVar0] = 2;
  						break;
  					
  					case 1:
  						(*uParam1)[iVar0] = 3;
  						break;
  					
  					case 2:
  						(*uParam1)[iVar0] = 4;
  						break;
  					
  					case 3:
  						(*uParam1)[iVar0] = 5;
  						break;
  					
  					case 4:
  						(*uParam1)[iVar0] = 6;
  						break;
  					
  					case 5:
  						(*uParam1)[iVar0] = 7;
  						break;
  					
  					case 6:
  						(*uParam1)[iVar0] = 8;
  						break;
  					
  					case 7:
  						(*uParam1)[iVar0] = 9;
  						break;
  					
  					case 8:
  						(*uParam1)[iVar0] = 10;
  						break;
  					
  					case 9:
  						(*uParam1)[iVar0] = 11;
  						break;
  					
  					case 10:
  						(*uParam1)[iVar0] = 12;
  						break;
  					
  					case 11:
  						(*uParam1)[iVar0] = 13;
  						break;
  					
  					case 12:
  						(*uParam1)[iVar0] = 14;
  						break;
  					
  					case 13:
  						(*uParam1)[iVar0] = 15;
  						break;
  				}
  			}
  			else
  			{
  				(*uParam1)[iVar0] = 0;
  			}
  		}
  		else
  		{
  			(*uParam1)[iVar0] = 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 1;
  }
  
  int func_298(int iParam0)
  {
  	switch (iParam0)
  	{
  		case joaat("granger"):
  		case joaat("visione"):
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  void func_299(var uParam0)
  {
  	int iVar0;
  	
  	uParam0->f_66 = 0;
  	uParam0->f_77 = 0;
  	uParam0->f_65 = 0;
  	uParam0->f_62 = 0;
  	uParam0->f_63 = 0;
  	uParam0->f_64 = 0;
  	uParam0->f_74 = 0;
  	uParam0->f_75 = 0;
  	uParam0->f_76 = 0;
  	*uParam0 = 0;
  	StringCopy(&(uParam0->f_1), "", 16);
  	uParam0->f_5 = 0;
  	uParam0->f_6 = 0;
  	uParam0->f_7 = 0;
  	uParam0->f_8 = 0;
  	iVar0 = 0;
  	while (iVar0 < 49)
  	{
  		uParam0->f_9[iVar0] = 0;
  		iVar0++;
  	}
  	iVar0 = 0;
  	while (iVar0 < 2)
  	{
  		uParam0->f_59[iVar0] = 0;
  		iVar0++;
  	}
  	uParam0->f_67 = 0;
  	uParam0->f_68 = 0;
  	uParam0->f_69 = 0;
  	uParam0->f_70 = 1;
  	uParam0->f_71 = 0;
  	uParam0->f_72 = 0;
  	uParam0->f_73 = 0;
  }
  
  void func_300()
  {
  	switch (iLocal_1167)
  	{
  		case 0:
  			if (!iLocal_1202)
  			{
  				func_160("ASS_ML_T01", 7500, 1);
  				func_301(&iLocal_1276, "ASS_TIME_TK");
  				iLocal_1202 = 1;
  			}
  			break;
  		
  		case 1:
  			if (!iLocal_1202)
  			{
  				func_160("ASS_ML_T01", 7500, 1);
  				iLocal_1202 = 1;
  			}
  			break;
  		
  		case 2:
  			if (!iLocal_1202)
  			{
  				func_160("ASS_ML_T01", 7500, 1);
  				iLocal_1202 = 1;
  			}
  			break;
  		
  		case 3:
  			if (!iLocal_1202)
  			{
  				func_160("ASS_ML_T01", 7500, 1);
  				iLocal_1202 = 1;
  			}
  			break;
  	}
  }
  
  void func_301(int* iParam0, char* sParam1)
  {
  	func_44(iParam0);
  	StringCopy(&cLocal_948, sParam1, 32);
  }
  
  void func_302()
  {
  	struct<3> Var0;
  	
  	if (!ENTITY::DOES_ENTITY_EXIST(iLocal_1172))
  	{
  		return;
  	}
  	if (!ENTITY::IS_ENTITY_DEAD(PLAYER::PLAYER_PED_ID(), false))
  	{
  		Var0 = { ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true) };
  	}
  	if (SYSTEM::VDIST2(Var0, Local_1175) > 10000f)
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(iLocal_1172))
  		{
  			STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(joaat("p_phonebox_01b_s"));
  			OBJECT::DELETE_OBJECT(&iLocal_1172);
  		}
  		if (ENTITY::DOES_ENTITY_EXIST(iLocal_1171))
  		{
  			ENTITY::SET_ENTITY_VISIBLE(iLocal_1171, true, false);
  			ENTITY::SET_ENTITY_COLLISION(iLocal_1171, true, false);
  		}
  	}
  }
  
  void func_303()
  {
  	switch (iLocal_1167)
  	{
  		case 0:
  			func_304(0, "assassin_multi_locate_bodybuilder", 0, 0, 0, 1);
  			func_286(iLocal_1264);
  			break;
  		
  		case 1:
  			func_304(1, "assassin_multi_locate_yacht_target", 0, 0, 0, 1);
  			break;
  		
  		case 2:
  			func_304(2, "assassin_multi_locate_window_washer", 0, 0, 0, 1);
  			break;
  		
  		case 3:
  			func_304(3, "assassin_multi_locate_biker", 0, 0, 0, 1);
  			break;
  	}
  }
  
  void func_304(int iParam0, char* sParam1, int iParam2, int iParam3, int iParam4, int iParam5)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	char[] cVar3[8];
  	int iVar4;
  	var uVar5;
  	int iVar6;
  	
  	if (iParam3 == 1)
  	{
  		if (!MISC::ARE_STRINGS_EQUAL("FinaleC2", SCRIPT::GET_THIS_SCRIPT_NAME()))
  		{
  		}
  	}
  	iVar0 = 0;
  	if (iParam3 == 1)
  	{
  		if (iParam0 != Global_98781)
  		{
  			iVar0 = 1;
  		}
  	}
  	else if (iParam0 > Global_98781)
  	{
  		iVar0 = 1;
  	}
  	if (iVar0 == 1)
  	{
  		func_59(1);
  		if (iParam0 <= Global_98781)
  		{
  		}
  		iVar1 = func_371(SCRIPT::GET_THIS_SCRIPT_NAME(), 1);
  		if (iVar1 != -1 && iVar1 != 94)
  		{
  			Global_111638.f_9080.f_330[iVar1 /*6*/].f_1 = 0;
  			iVar2 = func_369(iVar1);
  			cVar3 = { Global_89532[iVar1 /*34*/].f_8 };
  			if (iVar1 == 90)
  			{
  				switch (Global_111638.f_9080.f_99.f_205[7])
  				{
  					case 1:
  						StringConCat(&cVar3, "A", 8);
  						break;
  					
  					case 2:
  						StringConCat(&cVar3, "B", 8);
  						break;
  					}
  			}
  			STATS::PLAYSTATS_MISSION_CHECKPOINT(&cVar3, iVar2, Global_98781, iParam0);
  		}
  		else
  		{
  			iVar4 = func_364(SCRIPT::GET_THIS_SCRIPT_NAME(), 1);
  			if (iVar4 != -1)
  			{
  				Global_111638.f_18569[iVar4 /*6*/].f_4 = 0;
  				MemCopy(&uVar5, {func_363(iVar4)}, 4);
  				STATS::PLAYSTATS_MISSION_CHECKPOINT(&uVar5, 0, Global_98781, iParam0);
  			}
  			else
  			{
  				iVar6 = func_362(&(Global_98744.f_3));
  				if (iVar6 > -1)
  				{
  					Global_111638.f_24981.f_4[iVar6] = 0;
  				}
  			}
  		}
  		Global_92922 = iParam2;
  		Global_98781 = iParam0;
  		func_305(iParam0, sParam1, iParam4, iParam5);
  		if (MISC::ARE_STRINGS_EQUAL(sParam1, ""))
  		{
  		}
  	}
  	else if (iParam0 < Global_98781)
  	{
  	}
  }
  
  void func_305(int iParam0, var uParam1, int iParam2, int iParam3)
  {
  	func_306(&Global_105187, SCRIPT::GET_THIS_SCRIPT_NAME(), iParam0, uParam1, iParam3, iParam2);
  }
  
  void func_306(var uParam0, char* sParam1, var uParam2, var uParam3, int iParam4, int iParam5)
  {
  	int iVar0;
  	int iVar1;
  	
  	*uParam0 = func_10();
  	uParam0->f_1 = func_351();
  	MISC::_GET_WEATHER_TYPE_TRANSITION(&(uParam0->f_6), &(uParam0->f_7), &(uParam0->f_8));
  	if (!PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID()))
  	{
  		func_325(&(uParam0->f_2884), 0);
  		func_324(PLAYER::PLAYER_PED_ID());
  		func_317(PLAYER::PLAYER_PED_ID(), 0);
  		WEAPON::GET_CURRENT_PED_WEAPON(PLAYER::PLAYER_PED_ID(), &(uParam0->f_2), true);
  		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_111638.f_2358.f_539.f_294[iVar1];
  		if (iVar1 == func_316())
  		{
  			func_312(PLAYER::PLAYER_PED_ID(), &(uParam0->f_616[iVar1 /*65*/]), 1, -1);
  		}
  		else
  		{
  			iVar0 = 0;
  			while (iVar0 < 12)
  			{
  				uParam0->f_616[iVar1 /*65*/][iVar0] = Global_98469[iVar1 /*65*/][iVar0];
  				uParam0->f_616[iVar1 /*65*/].f_13[iVar0] = Global_98469[iVar1 /*65*/].f_13[iVar0];
  				iVar0++;
  			}
  			uParam0->f_616[iVar1 /*65*/].f_59 = Global_98469[iVar1 /*65*/].f_59;
  			uParam0->f_616[iVar1 /*65*/].f_60 = Global_98469[iVar1 /*65*/].f_60;
  			uParam0->f_616[iVar1 /*65*/].f_61 = Global_98469[iVar1 /*65*/].f_61;
  			uParam0->f_616[iVar1 /*65*/].f_62 = Global_98469[iVar1 /*65*/].f_62;
  			uParam0->f_616[iVar1 /*65*/].f_63 = Global_98469[iVar1 /*65*/].f_63;
  			uParam0->f_616[iVar1 /*65*/].f_64 = Global_98469[iVar1 /*65*/].f_64;
  			iVar0 = 0;
  			while (iVar0 < 9)
  			{
  				uParam0->f_616[iVar1 /*65*/].f_39[iVar0] = Global_98469[iVar1 /*65*/].f_39[iVar0];
  				uParam0->f_616[iVar1 /*65*/].f_49[iVar0] = Global_98469[iVar1 /*65*/].f_49[iVar0];
  				iVar0++;
  			}
  		}
  		iVar0 = 0;
  		while (iVar0 < 44)
  		{
  			uParam0->f_812[iVar1 /*477*/][iVar0 /*5*/] = { Global_111638.f_2358.f_539.f_298[iVar1 /*477*/][iVar0 /*5*/] };
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 < 51)
  		{
  			uParam0->f_812[iVar1 /*477*/].f_221[iVar0 /*5*/] = { Global_111638.f_2358.f_539.f_298[iVar1 /*477*/].f_221[iVar0 /*5*/] };
  			iVar0++;
  		}
  		switch (iVar1)
  		{
  			case 0:
  				STATS::STAT_GET_INT(joaat("SP0_WEAP_PURCH_0"), &(uParam0->f_2244[iVar1 /*32*/][0]), -1);
  				STATS::STAT_GET_INT(joaat("SP0_WEAP_PURCH_1"), &(uParam0->f_2244[iVar1 /*32*/][1]), -1);
  				STATS::STAT_GET_INT(joaat("SP0_WEAP_ADDON_PURCH_0"), &(uParam0->f_2244[iVar1 /*32*/].f_5[0]), -1);
  				STATS::STAT_GET_INT(joaat("SP0_WEAP_ADDON_PURCH_1"), &(uParam0->f_2244[iVar1 /*32*/].f_5[1]), -1);
  				STATS::STAT_GET_INT(joaat("SP0_WEAP_ADDON_PURCH_2"), &(uParam0->f_2244[iVar1 /*32*/].f_5[2]), -1);
  				STATS::STAT_GET_INT(joaat("SP0_WEAP_ADDON_PURCH_3"), &(uParam0->f_2244[iVar1 /*32*/].f_5[3]), -1);
  				STATS::STAT_GET_INT(joaat("SP0_WEAP_ADDON_PURCH_4"), &(uParam0->f_2244[iVar1 /*32*/].f_5[4]), -1);
  				STATS::STAT_GET_INT(joaat("SP0_WEAP_TINT_PURCH_0"), &(uParam0->f_2244[iVar1 /*32*/].f_16[0]), -1);
  				STATS::STAT_GET_INT(joaat("SP0_WEAP_TINT_PURCH_1"), &(uParam0->f_2244[iVar1 /*32*/].f_16[1]), -1);
  				STATS::STAT_GET_INT(joaat("SP0_WEAP_TINT_PURCH_2"), &(uParam0->f_2244[iVar1 /*32*/].f_16[2]), -1);
  				STATS::STAT_GET_INT(joaat("SP0_WEAP_TINT_PURCH_3"), &(uParam0->f_2244[iVar1 /*32*/].f_16[3]), -1);
  				STATS::STAT_GET_INT(joaat("SP0_WEAP_TINT_PURCH_4"), &(uParam0->f_2244[iVar1 /*32*/].f_16[4]), -1);
  				STATS::STAT_GET_INT(joaat("SP0_WEAP_TINT_PURCH_5"), &(uParam0->f_2244[iVar1 /*32*/].f_16[5]), -1);
  				STATS::STAT_GET_INT(joaat("SP0_WEAP_TINT_PURCH_6"), &(uParam0->f_2244[iVar1 /*32*/].f_16[6]), -1);
  				STATS::STAT_GET_INT(joaat("SP0_WEAP_TINT_PURCH_7"), &(uParam0->f_2244[iVar1 /*32*/].f_16[7]), -1);
  				STATS::STAT_GET_INT(joaat("SP0_WEAP_TINT_PURCH_8"), &(uParam0->f_2244[iVar1 /*32*/].f_16[8]), -1);
  				STATS::STAT_GET_INT(joaat("SP0_WEAP_TINT_PURCH_9"), &(uParam0->f_2244[iVar1 /*32*/].f_16[9]), -1);
  				STATS::STAT_GET_INT(joaat("SP0_WEAP_TINT_PURCH_10"), &(uParam0->f_2244[iVar1 /*32*/].f_16[10]), -1);
  				STATS::STAT_GET_INT(joaat("SP0_WEAP_TINT_PURCH_11"), &(uParam0->f_2244[iVar1 /*32*/].f_16[11]), -1);
  				break;
  			
  			case 1:
  				STATS::STAT_GET_INT(joaat("SP1_WEAP_PURCH_0"), &(uParam0->f_2244[iVar1 /*32*/][0]), -1);
  				STATS::STAT_GET_INT(joaat("SP1_WEAP_PURCH_1"), &(uParam0->f_2244[iVar1 /*32*/][1]), -1);
  				STATS::STAT_GET_INT(joaat("SP1_WEAP_ADDON_PURCH_0"), &(uParam0->f_2244[iVar1 /*32*/].f_5[0]), -1);
  				STATS::STAT_GET_INT(joaat("SP1_WEAP_ADDON_PURCH_1"), &(uParam0->f_2244[iVar1 /*32*/].f_5[1]), -1);
  				STATS::STAT_GET_INT(joaat("SP1_WEAP_ADDON_PURCH_2"), &(uParam0->f_2244[iVar1 /*32*/].f_5[2]), -1);
  				STATS::STAT_GET_INT(joaat("SP1_WEAP_ADDON_PURCH_3"), &(uParam0->f_2244[iVar1 /*32*/].f_5[3]), -1);
  				STATS::STAT_GET_INT(joaat("SP1_WEAP_ADDON_PURCH_4"), &(uParam0->f_2244[iVar1 /*32*/].f_5[4]), -1);
  				STATS::STAT_GET_INT(joaat("SP1_WEAP_TINT_PURCH_0"), &(uParam0->f_2244[iVar1 /*32*/].f_16[0]), -1);
  				STATS::STAT_GET_INT(joaat("SP1_WEAP_TINT_PURCH_1"), &(uParam0->f_2244[iVar1 /*32*/].f_16[1]), -1);
  				STATS::STAT_GET_INT(joaat("SP1_WEAP_TINT_PURCH_2"), &(uParam0->f_2244[iVar1 /*32*/].f_16[2]), -1);
  				STATS::STAT_GET_INT(joaat("SP1_WEAP_TINT_PURCH_3"), &(uParam0->f_2244[iVar1 /*32*/].f_16[3]), -1);
  				STATS::STAT_GET_INT(joaat("SP1_WEAP_TINT_PURCH_4"), &(uParam0->f_2244[iVar1 /*32*/].f_16[4]), -1);
  				STATS::STAT_GET_INT(joaat("SP1_WEAP_TINT_PURCH_5"), &(uParam0->f_2244[iVar1 /*32*/].f_16[5]), -1);
  				STATS::STAT_GET_INT(joaat("SP1_WEAP_TINT_PURCH_6"), &(uParam0->f_2244[iVar1 /*32*/].f_16[6]), -1);
  				STATS::STAT_GET_INT(joaat("SP1_WEAP_TINT_PURCH_7"), &(uParam0->f_2244[iVar1 /*32*/].f_16[7]), -1);
  				STATS::STAT_GET_INT(joaat("SP1_WEAP_TINT_PURCH_8"), &(uParam0->f_2244[iVar1 /*32*/].f_16[8]), -1);
  				STATS::STAT_GET_INT(joaat("SP1_WEAP_TINT_PURCH_9"), &(uParam0->f_2244[iVar1 /*32*/].f_16[9]), -1);
  				STATS::STAT_GET_INT(joaat("SP1_WEAP_TINT_PURCH_10"), &(uParam0->f_2244[iVar1 /*32*/].f_16[10]), -1);
  				STATS::STAT_GET_INT(joaat("SP1_WEAP_TINT_PURCH_11"), &(uParam0->f_2244[iVar1 /*32*/].f_16[11]), -1);
  				break;
  			
  			case 2:
  				STATS::STAT_GET_INT(joaat("SP2_WEAP_PURCH_0"), &(uParam0->f_2244[iVar1 /*32*/][0]), -1);
  				STATS::STAT_GET_INT(joaat("SP2_WEAP_PURCH_1"), &(uParam0->f_2244[iVar1 /*32*/][1]), -1);
  				STATS::STAT_GET_INT(joaat("SP2_WEAP_ADDON_PURCH_0"), &(uParam0->f_2244[iVar1 /*32*/].f_5[0]), -1);
  				STATS::STAT_GET_INT(joaat("SP2_WEAP_ADDON_PURCH_1"), &(uParam0->f_2244[iVar1 /*32*/].f_5[1]), -1);
  				STATS::STAT_GET_INT(joaat("SP2_WEAP_ADDON_PURCH_2"), &(uParam0->f_2244[iVar1 /*32*/].f_5[2]), -1);
  				STATS::STAT_GET_INT(joaat("SP2_WEAP_ADDON_PURCH_3"), &(uParam0->f_2244[iVar1 /*32*/].f_5[3]), -1);
  				STATS::STAT_GET_INT(joaat("SP2_WEAP_ADDON_PURCH_4"), &(uParam0->f_2244[iVar1 /*32*/].f_5[4]), -1);
  				STATS::STAT_GET_INT(joaat("SP2_WEAP_TINT_PURCH_0"), &(uParam0->f_2244[iVar1 /*32*/].f_16[0]), -1);
  				STATS::STAT_GET_INT(joaat("SP2_WEAP_TINT_PURCH_1"), &(uParam0->f_2244[iVar1 /*32*/].f_16[1]), -1);
  				STATS::STAT_GET_INT(joaat("SP2_WEAP_TINT_PURCH_2"), &(uParam0->f_2244[iVar1 /*32*/].f_16[2]), -1);
  				STATS::STAT_GET_INT(joaat("SP2_WEAP_TINT_PURCH_3"), &(uParam0->f_2244[iVar1 /*32*/].f_16[3]), -1);
  				STATS::STAT_GET_INT(joaat("SP2_WEAP_TINT_PURCH_4"), &(uParam0->f_2244[iVar1 /*32*/].f_16[4]), -1);
  				STATS::STAT_GET_INT(joaat("SP2_WEAP_TINT_PURCH_5"), &(uParam0->f_2244[iVar1 /*32*/].f_16[5]), -1);
  				STATS::STAT_GET_INT(joaat("SP2_WEAP_TINT_PURCH_6"), &(uParam0->f_2244[iVar1 /*32*/].f_16[6]), -1);
  				STATS::STAT_GET_INT(joaat("SP2_WEAP_TINT_PURCH_7"), &(uParam0->f_2244[iVar1 /*32*/].f_16[7]), -1);
  				STATS::STAT_GET_INT(joaat("SP2_WEAP_TINT_PURCH_8"), &(uParam0->f_2244[iVar1 /*32*/].f_16[8]), -1);
  				STATS::STAT_GET_INT(joaat("SP2_WEAP_TINT_PURCH_9"), &(uParam0->f_2244[iVar1 /*32*/].f_16[9]), -1);
  				STATS::STAT_GET_INT(joaat("SP2_WEAP_TINT_PURCH_10"), &(uParam0->f_2244[iVar1 /*32*/].f_16[10]), -1);
  				STATS::STAT_GET_INT(joaat("SP2_WEAP_TINT_PURCH_11"), &(uParam0->f_2244[iVar1 /*32*/].f_16[11]), -1);
  				break;
  		}
  		uParam0->f_9[iVar1] = Global_111638.f_20559.f_233[iVar1 /*69*/].f_1;
  		uParam0->f_13[iVar1] = Global_58686[iVar1];
  		uParam0->f_25[0 /*295*/][iVar1 /*98*/] = { Global_111638.f_2358.f_539.f_2407[0 /*295*/][iVar1 /*98*/] };
  		uParam0->f_25[1 /*295*/][iVar1 /*98*/] = { Global_111638.f_2358.f_539.f_2407[1 /*295*/][iVar1 /*98*/] };
  		iVar0 = 0;
  		while (iVar0 <= 3)
  		{
  			uParam0->f_2838[iVar1 /*15*/][iVar0] = Global_111638.f_2358.f_493[iVar1 /*15*/][iVar0];
  			uParam0->f_2838[iVar1 /*15*/].f_5[iVar0] = Global_111638.f_2358.f_493[iVar1 /*15*/].f_5[iVar0];
  			uParam0->f_2838[iVar1 /*15*/].f_10[iVar0] = Global_111638.f_2358.f_493[iVar1 /*15*/].f_10[iVar0];
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 <= 2)
  		{
  			uParam0->f_2345[iVar1 /*164*/][iVar0] = Global_111638.f_2358[iVar1 /*164*/][iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_4[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_4[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_8[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_8[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_12[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_12[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_16[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_16[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_20[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_20[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_24[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_24[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_28[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_28[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_32[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_32[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_36[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_36[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_40[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_40[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_44[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_44[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_48[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_48[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_52[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_52[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_56[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_56[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_60[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_60[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_64[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_64[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_68[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_68[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_72[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_72[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_76[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_76[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_80[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_80[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_84[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_84[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_88[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_88[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_92[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_92[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_96[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_96[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_100[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_100[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_104[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_104[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_108[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_108[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_112[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_112[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_116[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_116[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_120[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_120[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_124[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_124[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_128[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_128[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_132[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_132[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_136[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_136[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_140[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_140[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_144[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_144[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_148[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_148[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_152[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_152[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_156[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_156[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_160[iVar0] = Global_111638.f_2358[iVar1 /*164*/].f_160[iVar0];
  			iVar0++;
  		}
  		iVar1++;
  	}
  	STATS::STAT_GET_INT(joaat("SP0_SPECIAL_ABILITY"), &(uParam0->f_2341[0]), -1);
  	STATS::STAT_GET_INT(joaat("SP1_SPECIAL_ABILITY"), &(uParam0->f_2341[1]), -1);
  	STATS::STAT_GET_INT(joaat("SP2_SPECIAL_ABILITY"), &(uParam0->f_2341[2]), -1);
  	uParam0->f_5 = 145;
  	if (iParam4 == 1)
  	{
  		func_308(&(uParam0->f_2890), uParam0, iParam5, 1, 1, 0);
  	}
  	func_307(&(uParam0->f_2980));
  	uParam3 = uParam3;
  	uParam2 = uParam2;
  }
  
  int func_307(var uParam0)
  {
  	*uParam0 = Global_94593;
  	uParam0->f_1 = Global_94594;
  	uParam0->f_2 = 0;
  	uParam0->f_3 = 0;
  	return 1;
  }
  
  void func_308(var uParam0, var uParam1, int iParam2, int iParam3, int iParam4, int iParam5)
  {
  	int iVar0;
  	
  	if (iParam2 == 0)
  	{
  		iParam2 = PLAYER::PLAYER_PED_ID();
  	}
  	if (ENTITY::DOES_ENTITY_EXIST(iParam2))
  	{
  		uParam1->f_5 = func_14(iParam2);
  	}
  	if (func_309(iParam2, &iVar0, iParam3, iParam5))
  	{
  		func_287(uParam0, uParam1, iVar0, iParam4);
  	}
  	else if (ENTITY::DOES_ENTITY_EXIST(iVar0))
  	{
  		if (!ENTITY::IS_ENTITY_DEAD(iVar0, false))
  		{
  			if (VEHICLE::IS_VEHICLE_MODEL(iVar0, joaat("skylift")) && PED::IS_PED_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), iVar0, false))
  			{
  				func_287(uParam0, uParam1, iVar0, iParam4);
  			}
  		}
  	}
  }
  
  int func_309(int iParam0, var uParam1, int iParam2, int iParam3)
  {
  	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, true);
  			}
  			if (ENTITY::DOES_ENTITY_EXIST(*uParam1))
  			{
  				if (VEHICLE::IS_VEHICLE_DRIVEABLE(*uParam1, false))
  				{
  					if (iParam2 == 0 || MISC::GET_DISTANCE_BETWEEN_COORDS(ENTITY::GET_ENTITY_COORDS(*uParam1, true), ENTITY::GET_ENTITY_COORDS(iParam0, true), true) < 100f)
  					{
  						if (VEHICLE::IS_VEHICLE_MODEL(*uParam1, joaat("taxi")))
  						{
  							if (VEHICLE::GET_PED_IN_VEHICLE_SEAT(*uParam1, -1, 0) != iParam0 && VEHICLE::GET_PED_IN_VEHICLE_SEAT(*uParam1, -1, 0) != 0)
  							{
  								return 0;
  							}
  						}
  						if (func_310(*uParam1, func_10(), 1))
  						{
  							sVar0 = SCRIPT::GET_THIS_SCRIPT_NAME();
  							if (!MISC::ARE_STRINGS_EQUAL(sVar0, "save_anywhere"))
  							{
  								return 0;
  							}
  							else if (!PED::IS_PED_IN_ANY_VEHICLE(iParam0, true))
  							{
  								return 0;
  							}
  						}
  						if (iParam3 == 1)
  						{
  							if (DECORATOR::DECOR_EXIST_ON(*uParam1, "IgnoredByQuickSave"))
  							{
  								if (DECORATOR::DECOR_GET_BOOL(*uParam1, "IgnoredByQuickSave"))
  								{
  									return 0;
  								}
  							}
  						}
  						else if (VEHICLE::IS_VEHICLE_MODEL(*uParam1, joaat("blimp")))
  						{
  							return 0;
  						}
  						return 1;
  					}
  				}
  			}
  		}
  	}
  	return 0;
  }
  
  int func_310(int iParam0, int iParam1, bool bParam2)
  {
  	int iVar0;
  	char* sVar1;
  	int iVar2;
  	
  	if (!ENTITY::DOES_ENTITY_EXIST(iParam0) || !VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  	{
  		return 0;
  	}
  	iVar0 = 0;
  	while (func_311(iParam1, iVar0, &sVar1, &iVar2))
  	{
  		if (!bParam2 || MISC::IS_BIT_SET(Global_111638.f_7224[iVar2], 0))
  		{
  			if (VEHICLE::IS_VEHICLE_IN_GARAGE_AREA(&sVar1, iParam0))
  			{
  				return 1;
  			}
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  int func_311(int iParam0, int iParam1, char* sParam2, var uParam3)
  {
  	StringCopy(sParam2, "", 32);
  	switch (iParam0)
  	{
  		case 0:
  			if (iParam1 == 0)
  			{
  				StringCopy(sParam2, "Michael - Beverly Hills", 32);
  				*uParam3 = 0;
  				return 1;
  			}
  			else if (iParam1 == 1)
  			{
  				StringCopy(sParam2, "Trevor - Countryside", 32);
  				*uParam3 = 1;
  				return 1;
  			}
  			break;
  		
  		case 1:
  			if (iParam1 == 0)
  			{
  				StringCopy(sParam2, "Franklin - Aunt", 32);
  				*uParam3 = 5;
  				return 1;
  			}
  			else if (iParam1 == 1)
  			{
  				StringCopy(sParam2, "Franklin - Hills", 32);
  				*uParam3 = 6;
  				return 1;
  			}
  			break;
  		
  		case 2:
  			if (iParam1 == 0)
  			{
  				StringCopy(sParam2, "Trevor - Countryside", 32);
  				*uParam3 = 2;
  				return 1;
  			}
  			else if (iParam1 == 1)
  			{
  				StringCopy(sParam2, "Trevor - City", 32);
  				*uParam3 = 3;
  				return 1;
  			}
  			else if (iParam1 == 2)
  			{
  				StringCopy(sParam2, "Trevor - Stripclub", 32);
  				*uParam3 = 4;
  				return 1;
  			}
  			break;
  	}
  	return 0;
  }
  
  void func_312(int iParam0, var uParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!PED::IS_PED_INJURED(iParam0))
  	{
  		iVar0 = func_14(iParam0);
  		iVar1 = 0;
  		while (iVar1 < 12)
  		{
  			func_315(iParam0, iVar1, &(uParam1->f_13[iVar1]), uParam1[iVar1], &(uParam1->f_26[iVar1]), iParam2, 145);
  			iVar1++;
  		}
  		iVar1 = 0;
  		while (iVar1 < 9)
  		{
  			func_314(iParam0, iVar1, &(uParam1->f_39[iVar1]), &(uParam1->f_49[iVar1]), iParam2, 145);
  			iVar1++;
  		}
  		if (func_13(iVar0))
  		{
  			uParam1->f_59 = Global_111638.f_2358.f_539[iVar0 /*65*/].f_59;
  			uParam1->f_60 = Global_111638.f_2358.f_539[iVar0 /*65*/].f_60;
  			uParam1->f_61 = Global_111638.f_2358.f_539[iVar0 /*65*/].f_61;
  			uParam1->f_62 = Global_111638.f_2358.f_539[iVar0 /*65*/].f_62;
  			uParam1->f_63 = Global_111638.f_2358.f_539[iVar0 /*65*/].f_63;
  			uParam1->f_64 = Global_111638.f_2358.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_313(161, iParam3))
  			{
  				uParam1->f_59 = func_70(2051, iParam3, 0);
  			}
  			else
  			{
  				uParam1->f_59 = func_70(752, iParam3, 0);
  			}
  			uParam1->f_60 = func_70(753, iParam3, 0);
  			uParam1->f_61 = func_70(754, iParam3, 0);
  		}
  		if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS() && iParam0 == PLAYER::PLAYER_PED_ID())
  		{
  			if (func_313(161, iParam3))
  			{
  				uParam1->f_59 = func_70(2051, iParam3, 0);
  			}
  			else
  			{
  				uParam1->f_59 = func_70(752, iParam3, 0);
  			}
  		}
  	}
  }
  
  int func_313(int iParam0, int iParam1)
  {
  	int iVar0;
  	var uVar1;
  	
  	iVar0 = Global_2583656[iParam0 /*3*/][func_65(iParam1)];
  	if (STATS::STAT_GET_BOOL(iVar0, &uVar1, -1))
  	{
  		return uVar1;
  	}
  	return 0;
  }
  
  void func_314(int iParam0, int iParam1, var uParam2, var uParam3, int iParam4, int iParam5)
  {
  	int iVar0;
  	
  	iVar0 = func_14(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_315(int iParam0, int iParam1, var uParam2, var uParam3, var uParam4, int iParam5, int iParam6)
  {
  	int iVar0;
  	
  	iVar0 = func_14(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;
  	}
  }
  
  int func_316()
  {
  	func_11();
  	return Global_111638.f_2358.f_539.f_4321;
  }
  
  void func_317(int iParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	
  	iVar0 = func_14(iParam0);
  	if (func_13(iVar0) && !PED::IS_PED_INJURED(iParam0))
  	{
  		if (iParam0 == PLAYER::PLAYER_PED_ID())
  		{
  			func_318(iParam0, &(Global_111638.f_2358.f_539.f_298[iVar0 /*477*/]));
  			iVar2 = 0;
  			while (iVar2 <= (8 - 1))
  			{
  				Global_111638.f_2358.f_539.f_1730[iVar2 /*4*/][iVar0] = HUD::_HUD_WEAPON_WHEEL_GET_SLOT_HASH(iVar2);
  				if (bParam1)
  				{
  					iVar1 = HUD::_HUD_WEAPON_WHEEL_GET_SELECTED_HASH();
  					if (Global_111638.f_2358.f_539.f_1730[iVar2 /*4*/][iVar0] == iVar1)
  					{
  						Global_111638.f_2358.f_539.f_1763 = 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, true);
  			}
  			else if (iVar0 == 1)
  			{
  				STATS::STAT_SET_INT(joaat("SP1_PARACHUTE_CURRENT_TINT"), iVar3, true);
  			}
  			else if (iVar0 == 2)
  			{
  				STATS::STAT_SET_INT(joaat("SP2_PARACHUTE_CURRENT_TINT"), iVar3, true);
  			}
  		}
  	}
  }
  
  void func_318(int iParam0, var uParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	struct<5> Var4;
  	int iVar5;
  	int iVar6;
  	struct<2> Var7;
  	struct<4> Var8;
  	int iVar9;
  	int iVar10;
  	
  	if (!PED::IS_PED_INJURED(iParam0))
  	{
  		iVar0 = 0;
  		while (iVar0 <= (44 - 1))
  		{
  			(uParam1[iVar0 /*5*/])->f_1 = 0;
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 <= (44 - 1))
  		{
  			iVar3 = func_323(iVar0);
  			if (iVar3 != 0)
  			{
  				Var4 = WEAPON::GET_PED_WEAPONTYPE_IN_SLOT(iParam0, func_323(iVar0));
  				Var4.f_1 = 0;
  				Var4.f_2 = 0;
  				Var4.f_3 = 0;
  				Var4.f_4 = 0;
  				if (Var4 != 0 && Var4 != joaat("weapon_unarmed"))
  				{
  					Var4.f_1 = WEAPON::GET_AMMO_IN_PED_WEAPON(iParam0, Var4);
  					if (Var4 == joaat("gadget_parachute"))
  					{
  						Var4.f_1 = 1;
  					}
  					Var4.f_3 = WEAPON::GET_PED_WEAPON_TINT_INDEX(iParam0, Var4);
  					Var4.f_4 = WEAPON::_0xA2C9AC24B4061285(iParam0, Var4);
  					if (Var4.f_1 == -1)
  					{
  						if (!WEAPON::GET_MAX_AMMO(iParam0, Var4, &(Var4.f_1)))
  						{
  							Var4.f_1 = 0;
  						}
  					}
  					(uParam1[iVar0 /*5*/])->f_1 = Var4.f_1;
  					iVar1 = 0;
  					iVar2 = func_321(Var4, iVar1);
  					while (iVar2 != 0)
  					{
  						if (WEAPON::HAS_PED_GOT_WEAPON_COMPONENT(iParam0, Var4, iVar2))
  						{
  							MISC::SET_BIT(&(Var4.f_2), iVar1);
  						}
  						iVar1++;
  						iVar2 = func_321(Var4, iVar1);
  					}
  				}
  				*(uParam1[iVar0 /*5*/]) = { Var4 };
  			}
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 <= 50)
  		{
  			uParam1->f_221[iVar0 /*5*/].f_1 = 0;
  			iVar0++;
  		}
  		iVar6 = FILES::_GET_NUM_DLC_WEAPONS_SP();
  		iVar5 = 0;
  		while (iVar5 < iVar6)
  		{
  			if ((FILES::_GET_DLC_WEAPON_DATA_SP(iVar5, &Var7) && !func_320(Var7.f_1)) && iVar9 < 51)
  			{
  				if (!FILES::IS_CONTENT_ITEM_LOCKED(Var7))
  				{
  					Var4 = Var7.f_1;
  					Var4.f_1 = 0;
  					Var4.f_2 = 0;
  					Var4.f_3 = 0;
  					Var4.f_4 = 0;
  					Var4.f_1 = WEAPON::GET_AMMO_IN_PED_WEAPON(iParam0, Var4);
  					if (WEAPON::HAS_PED_GOT_WEAPON(iParam0, Var4, false))
  					{
  						Var4.f_3 = WEAPON::GET_PED_WEAPON_TINT_INDEX(iParam0, Var4);
  						Var4.f_4 = WEAPON::_0xA2C9AC24B4061285(iParam0, Var4);
  					}
  					if (Var4.f_1 == -1)
  					{
  						if (!WEAPON::GET_MAX_AMMO(iParam0, Var4, &(Var4.f_1)))
  						{
  							Var4.f_1 = 0;
  						}
  					}
  					uParam1->f_221[iVar9 /*5*/].f_1 = Var4.f_1;
  					iVar10 = 0;
  					iVar1 = 0;
  					while (iVar1 < FILES::_GET_NUM_DLC_WEAPON_COMPONENTS_SP(iVar5))
  					{
  						if (FILES::_GET_DLC_WEAPON_COMPONENT_DATA_SP(iVar5, iVar1, &Var8))
  						{
  							if (!func_319(Var8.f_3))
  							{
  								if (WEAPON::HAS_PED_GOT_WEAPON_COMPONENT(iParam0, Var4, Var8.f_3))
  								{
  									MISC::SET_BIT(&(Var4.f_2), iVar10);
  								}
  								iVar10++;
  							}
  						}
  						iVar1++;
  					}
  				}
  				if (Var4 != 0)
  				{
  					if (!WEAPON::HAS_PED_GOT_WEAPON(iParam0, Var4, false))
  					{
  						Var4 = 0;
  						Var4.f_1 = 0;
  					}
  				}
  				uParam1->f_221[iVar9 /*5*/] = { Var4 };
  				iVar9++;
  			}
  			iVar5++;
  		}
  	}
  }
  
  int func_319(int iParam0)
  {
  	switch (iParam0)
  	{
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_02_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_03_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_04_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_05_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_06_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_07_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_08_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_09_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_10_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_IND_01_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_02_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_03_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_04_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_05_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_06_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_07_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_08_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_09_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_10_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_IND_01_SLIDE"):
  			return 1;
  			break;
  	}
  	return 0;
  }
  
  int func_320(int iParam0)
  {
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  	}
  	else
  	{
  		switch (iParam0)
  		{
  			case joaat("weapon_pistol50"):
  			case joaat("weapon_bullpupshotgun"):
  			case joaat("weapon_assaultsmg"):
  				return 0;
  				break;
  			
  			case joaat("weapon_bottle"):
  			case joaat("weapon_snspistol"):
  			case joaat("weapon_gusenberg"):
  				return 0;
  				break;
  			
  			case joaat("weapon_heavypistol"):
  			case joaat("weapon_specialcarbine"):
  				return 0;
  				break;
  			
  			case joaat("weapon_bullpuprifle"):
  				return 0;
  				break;
  			
  			case joaat("weapon_dagger"):
  			case joaat("weapon_vintagepistol"):
  				return 0;
  				break;
  			
  			case joaat("weapon_firework"):
  			case joaat("weapon_musket"):
  				return 0;
  				break;
  			
  			case joaat("weapon_heavyshotgun"):
  			case joaat("weapon_marksmanrifle"):
  				return 0;
  				break;
  			
  			case joaat("weapon_hominglauncher"):
  			case joaat("weapon_proxmine"):
  				return 0;
  				break;
  			
  			case joaat("weapon_combatpdw"):
  			case joaat("weapon_knuckle"):
  			case joaat("weapon_marksmanpistol"):
  				return 0;
  				break;
  			
  			case -947031628:
  			case -572349828:
  			case 392730790:
  			case -1523701417:
  			case -2112826155:
  			case -664359727:
  			case -1887867191:
  			case -837150131:
  			case -344484024:
  			case joaat("weapon_flaregun"):
  			case joaat("weapon_handcuffs"):
  			case joaat("weapon_snowball"):
  			case joaat("weapon_garbagebag"):
  			case joaat("weapon_flashlight"):
  			case joaat("weapon_switchblade"):
  			case joaat("weapon_revolver"):
  			case joaat("weapon_dbshotgun"):
  			case joaat("weapon_compactrifle"):
  			case joaat("WEAPON_AUTOSHOTGUN"):
  			case joaat("WEAPON_MINISMG"):
  			case joaat("WEAPON_COMPACTLAUNCHER"):
  			case joaat("WEAPON_BATTLEAXE"):
  			case joaat("WEAPON_PIPEBOMB"):
  			case joaat("WEAPON_POOLCUE"):
  			case joaat("WEAPON_WRENCH"):
  			case joaat("WEAPON_DOUBLEACTION"):
  			case joaat("WEAPON_RAYCARBINE"):
  			case joaat("WEAPON_RAYMINIGUN"):
  			case joaat("WEAPON_RAYPISTOL"):
  			case joaat("WEAPON_NAVYREVOLVER"):
  			case joaat("WEAPON_CERAMICPISTOL"):
  				return 1;
  				break;
  			}
  	}
  	return 0;
  }
  
  int func_321(int iParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int* iVar4;
  	struct<4> Var5;
  	
  	iVar0 = 0;
  	switch (iParam0)
  	{
  		case joaat("weapon_pistol"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = 1623028892;
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_pistol_clip_01");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_pistol_clip_02");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_pi_flsh");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_pi_supp_02");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_pistol_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_combatpistol"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_combatpistol_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_combatpistol_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_pi_flsh");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_pi_supp");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_combatpistol_varmod_lowrider");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_appistol"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_appistol_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_appistol_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_pi_flsh");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_pi_supp");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_appistol_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_microsmg"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_microsmg_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_microsmg_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_pi_flsh");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_scope_macro");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_ar_supp_02");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_microsmg_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_smg"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = 1623028892;
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_smg_clip_01");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_smg_clip_02");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_smg_clip_03");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_at_pi_supp");
  					break;
  				
  				case 6:
  					iVar0 = joaat("component_at_scope_macro_02");
  					break;
  				
  				case 7:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 8:
  					iVar0 = joaat("component_smg_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_assaultrifle"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = 1623028892;
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_assaultrifle_clip_01");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_assaultrifle_clip_02");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_assaultrifle_clip_03");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 6:
  					iVar0 = joaat("component_at_scope_macro");
  					break;
  				
  				case 7:
  					iVar0 = joaat("component_at_ar_supp_02");
  					break;
  				
  				case 8:
  					iVar0 = joaat("component_assaultrifle_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_carbinerifle"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = 1623028892;
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_carbinerifle_clip_01");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_carbinerifle_clip_02");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_carbinerifle_clip_03");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_railcover_01");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 6:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 7:
  					iVar0 = joaat("component_at_scope_medium");
  					break;
  				
  				case 8:
  					iVar0 = joaat("component_at_ar_supp");
  					break;
  				
  				case 9:
  					iVar0 = joaat("component_carbinerifle_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_advancedrifle"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_advancedrifle_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_advancedrifle_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_scope_small");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_ar_supp");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_advancedrifle_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_mg"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_mg_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_mg_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_scope_small_02");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_mg_varmod_lowrider");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_combatmg"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = 1623028892;
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_combatmg_clip_01");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_combatmg_clip_02");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_scope_medium");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_combatmg_varmod_lowrider");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_pumpshotgun"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_at_sr_supp");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_pumpshotgun_varmod_lowrider");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_assaultshotgun"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_assaultshotgun_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_assaultshotgun_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_ar_supp");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_sniperrifle"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_sniperrifle_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_at_scope_large");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_scope_max");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_ar_supp_02");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_sniperrifle_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_heavysniper"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = 1623028892;
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_heavysniper_clip_01");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_scope_large");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_scope_max");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_grenadelauncher"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_scope_small");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_minigun"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_minigun_clip_01");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_assaultsmg"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_assaultsmg_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_assaultsmg_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_scope_macro");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_ar_supp_02");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_assaultsmg_varmod_lowrider");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_bullpupshotgun"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_ar_supp_02");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_pistol50"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_pistol50_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_pistol50_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_pi_flsh");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_ar_supp_02");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_pistol50_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_combatpdw"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_combatpdw_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_combatpdw_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_combatpdw_clip_03");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_scope_small");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_sawnoffshotgun"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_sawnoffshotgun_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_bullpuprifle"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_bullpuprifle_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_bullpuprifle_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_scope_small");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_ar_supp");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 6:
  					iVar0 = joaat("component_bullpuprifle_varmod_low");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_snspistol"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_snspistol_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_snspistol_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_snspistol_varmod_lowrider");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_specialcarbine"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_specialcarbine_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_specialcarbine_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_specialcarbine_clip_03");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_scope_medium");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_at_ar_supp_02");
  					break;
  				
  				case 6:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 7:
  					iVar0 = joaat("component_specialcarbine_varmod_lowrider");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_knuckle"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_knuckle_varmod_pimp");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_knuckle_varmod_ballas");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_knuckle_varmod_dollar");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_knuckle_varmod_diamond");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_knuckle_varmod_hate");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_knuckle_varmod_love");
  					break;
  				
  				case 6:
  					iVar0 = joaat("component_knuckle_varmod_player");
  					break;
  				
  				case 7:
  					iVar0 = joaat("component_knuckle_varmod_king");
  					break;
  				
  				case 8:
  					iVar0 = joaat("component_knuckle_varmod_vagos");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_machinepistol"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_machinepistol_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_machinepistol_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_machinepistol_clip_03");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_pi_supp");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_switchblade"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_switchblade_varmod_var1");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_switchblade_varmod_var2");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_revolver"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_revolver_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_revolver_varmod_boss");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_revolver_varmod_goon");
  					break;
  			}
  			break;
  		
  		case joaat("WEAPON_MINISMG"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("COMPONENT_MINISMG_CLIP_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("COMPONENT_MINISMG_CLIP_02");
  					break;
  			}
  			break;
  		
  		default:
  			if (iParam0 != 0)
  			{
  				iVar1 = func_322(iParam0, &iVar4);
  				if (iVar1 != -1)
  				{
  					iVar2 = 0;
  					while (iVar2 < FILES::GET_NUM_DLC_WEAPON_COMPONENTS(iVar1))
  					{
  						if (FILES::GET_DLC_WEAPON_COMPONENT_DATA(iVar1, iVar2, &Var5))
  						{
  							if (!func_319(Var5.f_3))
  							{
  								if (iVar3 == iParam1)
  								{
  									return Var5.f_3;
  								}
  								iVar3++;
  							}
  						}
  						iVar2++;
  					}
  				}
  			}
  			break;
  	}
  	return iVar0;
  }
  
  int func_322(int iParam0, int* iParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar1 = FILES::GET_NUM_DLC_WEAPONS();
  	iVar0 = 0;
  	while (iVar0 < iVar1)
  	{
  		if (FILES::GET_DLC_WEAPON_DATA(iVar0, iParam1))
  		{
  			if (iParam1->f_1 == iParam0)
  			{
  				return iVar0;
  			}
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  int func_323(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			iVar0 = 1993361168;
  			break;
  		
  		case 1:
  			iVar0 = 1277010230;
  			break;
  		
  		case 2:
  			iVar0 = 932043479;
  			break;
  		
  		case 3:
  			iVar0 = -690654591;
  			break;
  		
  		case 4:
  			iVar0 = -1459198205;
  			break;
  		
  		case 5:
  			iVar0 = 195782970;
  			break;
  		
  		case 6:
  			iVar0 = -438797331;
  			break;
  		
  		case 7:
  			iVar0 = 896793492;
  			break;
  		
  		case 8:
  			iVar0 = 495159329;
  			break;
  		
  		case 9:
  			iVar0 = -1155528315;
  			break;
  		
  		case 10:
  			iVar0 = -515636489;
  			break;
  		
  		case 11:
  			iVar0 = -871913299;
  			break;
  		
  		case 12:
  			iVar0 = -1352759032;
  			break;
  		
  		case 13:
  			iVar0 = -542958961;
  			break;
  		
  		case 14:
  			iVar0 = 1682645887;
  			break;
  		
  		case 15:
  			iVar0 = -859470162;
  			break;
  		
  		case 16:
  			iVar0 = -2125426402;
  			break;
  		
  		case 17:
  			iVar0 = 2067210266;
  			break;
  		
  		case 18:
  			iVar0 = -538172856;
  			break;
  		
  		case 19:
  			iVar0 = 1783244476;
  			break;
  		
  		case 20:
  			iVar0 = 439844898;
  			break;
  		
  		case 21:
  			iVar0 = -24829327;
  			break;
  		
  		case 22:
  			iVar0 = 1949306232;
  			break;
  		
  		case 23:
  			iVar0 = -1941230881;
  			break;
  		
  		case 24:
  			iVar0 = -1033554448;
  			break;
  		
  		case 25:
  			iVar0 = 320513715;
  			break;
  		
  		case 26:
  			iVar0 = -695165975;
  			break;
  		
  		case 27:
  			iVar0 = -281028447;
  			break;
  		
  		case 28:
  			iVar0 = -686713772;
  			break;
  		
  		case 29:
  			iVar0 = 347509793;
  			break;
  		
  		case 30:
  			iVar0 = 1769089473;
  			break;
  		
  		case 31:
  			iVar0 = 189935548;
  			break;
  		
  		case 33:
  			iVar0 = 248801358;
  			break;
  		
  		case 34:
  			iVar0 = 386596758;
  			break;
  		
  		case 35:
  			iVar0 = -157212362;
  			break;
  		
  		case 36:
  			iVar0 = 436985596;
  			break;
  		
  		case 37:
  			iVar0 = -47957369;
  			break;
  		
  		case 38:
  			iVar0 = 575938238;
  			break;
  	}
  	return iVar0;
  }
  
  void func_324(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = func_14(iParam0);
  	if (func_13(iVar0) && !PED::IS_PED_INJURED(iParam0))
  	{
  		Global_111638.f_2358.f_539.f_294[iVar0] = PED::GET_PED_ARMOUR(iParam0);
  	}
  }
  
  void func_325(var uParam0, int iParam1)
  {
  	int iVar0;
  	struct<3> Var1;
  	var uVar2;
  	int iVar3;
  	
  	*uParam0 = { ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true) };
  	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_REFERENCES_OF_SCRIPT_WITH_NAME_HASH(joaat("finale_choice")) > 0)
  	{
  		*uParam0 = { 4.2587f, 525.0214f, 173.6281f };
  		uParam0->f_3 = 203.6746f;
  	}
  	else if (MISC::IS_BIT_SET(Global_76870, 4))
  	{
  		*uParam0 = { 452.0255f, 5571.85f, 780.1859f };
  		uParam0->f_3 = 78.9858f;
  	}
  	else if (MISC::IS_BIT_SET(Global_76870, 5))
  	{
  		*uParam0 = { -745.4462f, 5595.146f, 40.6594f };
  		uParam0->f_3 = 261.747f;
  	}
  	else if (MISC::IS_BIT_SET(Global_76870, 6))
  	{
  		*uParam0 = { -1675.521f, -1125.59f, 12.091f };
  		uParam0->f_3 = 271.8208f;
  	}
  	else if (MISC::IS_BIT_SET(Global_76870, 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, false, 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, false, 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_328(&iVar0))
  		{
  			if (func_327(iVar0, &Var1, &uVar2))
  			{
  				Var1.f_2 = (Var1.f_2 + 1f);
  				*uParam0 = { Var1 };
  				uParam0->f_3 = uVar2;
  			}
  		}
  		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, false, true, 0))
  		{
  			iVar3 = func_10();
  			if (iVar3 == 0)
  			{
  				*uParam0 = { -65.1234f, 81.2517f, 70.5644f };
  				uParam0->f_3 = 71.6237f;
  			}
  			else if (iVar3 == 1)
  			{
  				*uParam0 = { -68.5531f, -1824.377f, 25.9424f };
  				uParam0->f_3 = 215.8295f;
  			}
  			else if (iVar3 == 2)
  			{
  				*uParam0 = { -220.8189f, -1162.302f, 22.0242f };
  				uParam0->f_3 = 70.2711f;
  			}
  		}
  		else if (ENTITY::IS_ENTITY_IN_ANGLED_AREA(PLAYER::PLAYER_PED_ID(), 483.7175f, -1326.63f, 28.2135f, 474.9644f, -1307.998f, 34.49498f, 12f, false, 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, false, 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, false, true, 0))
  		{
  			*uParam0 = { 431.8853f, -1013.133f, 28.7907f };
  			uParam0->f_3 = 186.6814f;
  		}
  		else if (func_326(*uParam0, "v_hospital", 307.3065f, -589.9595f, 43.302f))
  		{
  			*uParam0 = { 279.4137f, -585.8815f, 43.2502f };
  			uParam0->f_3 = 48.8028f;
  		}
  	}
  }
  
  int func_326(struct<3> Param0, char* sParam1, struct<3> Param2)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!INTERIOR::IS_COLLISION_MARKED_OUTSIDE(Param0))
  	{
  		iVar0 = INTERIOR::GET_INTERIOR_AT_COORDS_WITH_TYPE(Param2, sParam1);
  		if (!INTERIOR::IS_VALID_INTERIOR(iVar0))
  		{
  			return 0;
  		}
  		iVar1 = INTERIOR::GET_INTERIOR_FROM_COLLISION(Param0);
  		if (iVar1 == iVar0)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  bool func_327(int iParam0, var uParam1, var uParam2)
  {
  	*uParam1 = { 0f, 0f, 0f };
  	*uParam2 = 0f;
  	switch (iParam0)
  	{
  		case 0:
  			*uParam1 = { -829.842f, -191.7454f, 36.4386f };
  			*uParam2 = 29.5061f;
  			break;
  		
  		case 1:
  			*uParam1 = { 129.8484f, -1716.528f, 28.0702f };
  			*uParam2 = 50.3483f;
  			break;
  		
  		case 2:
  			*uParam1 = { -1296.913f, -1120.999f, 5.3951f };
  			*uParam2 = 0.9933f;
  			break;
  		
  		case 3:
  			*uParam1 = { 1938.028f, 3718.736f, 31.3154f };
  			*uParam2 = 118.2305f;
  			break;
  		
  		case 4:
  			*uParam1 = { 1197.866f, -469.3809f, 65.0885f };
  			*uParam2 = 346.4477f;
  			break;
  		
  		case 5:
  			*uParam1 = { -32.2161f, -135.8212f, 56.0532f };
  			*uParam2 = 186.0052f;
  			break;
  		
  		case 6:
  			*uParam1 = { -287.7696f, 6238.081f, 30.2902f };
  			*uParam2 = 316.1349f;
  			break;
  		
  		case 7:
  			*uParam1 = { 99.2876f, -1395.16f, 28.2759f };
  			*uParam2 = 320.2739f;
  			break;
  		
  		case 8:
  			*uParam1 = { 1679.445f, 4819.056f, 41.0035f };
  			*uParam2 = 4.6192f;
  			break;
  		
  		case 9:
  			*uParam1 = { 411.3063f, -809.1863f, 28.1554f };
  			*uParam2 = 1.8972f;
  			break;
  		
  		case 10:
  			*uParam1 = { -1088.054f, 2699.167f, 19.2748f };
  			*uParam2 = 129.7382f;
  			break;
  		
  		case 11:
  			*uParam1 = { 1194.163f, 2695.644f, 36.9225f };
  			*uParam2 = 1.1454f;
  			break;
  		
  		case 12:
  			*uParam1 = { -821.2829f, -1088.027f, 10.0499f };
  			*uParam2 = 120.5883f;
  			break;
  		
  		case 13:
  			*uParam1 = { -3.3416f, 6521.303f, 30.2961f };
  			*uParam2 = 316.4451f;
  			break;
  		
  		case 14:
  			*uParam1 = { -1208.417f, -785.9635f, 16.0139f };
  			*uParam2 = 36.3181f;
  			break;
  		
  		case 15:
  			*uParam1 = { 623.1845f, 2739.191f, 40.9588f };
  			*uParam2 = 3.5411f;
  			break;
  		
  		case 16:
  			*uParam1 = { 130.9555f, -198.2084f, 53.41f };
  			*uParam2 = 251.3506f;
  			break;
  		
  		case 17:
  			*uParam1 = { -3164.065f, 1067.317f, 19.6778f };
  			*uParam2 = 101.2229f;
  			break;
  		
  		case 18:
  			*uParam1 = { -713.2797f, -174.2767f, 35.8962f };
  			*uParam2 = 29.8138f;
  			break;
  		
  		case 19:
  			*uParam1 = { -147.0616f, -306.4322f, 37.7912f };
  			*uParam2 = 160.4526f;
  			break;
  		
  		case 20:
  			*uParam1 = { -1461.355f, -230.6092f, 48.3064f };
  			*uParam2 = 318.7851f;
  			break;
  		
  		case 21:
  			*uParam1 = { -1347.739f, -1278.573f, 3.8952f };
  			*uParam2 = 17.9365f;
  			break;
  		
  		case 22:
  			*uParam1 = { 325.6833f, 164.3263f, 102.4425f };
  			*uParam2 = 68.6407f;
  			break;
  		
  		case 23:
  			*uParam1 = { 1858.774f, 3742.393f, 32.0779f };
  			*uParam2 = 301.2329f;
  			break;
  		
  		case 24:
  			*uParam1 = { -286.3272f, 6202.802f, 30.3323f };
  			*uParam2 = 225.1334f;
  			break;
  		
  		case 25:
  			*uParam1 = { -1161.596f, -1417.7f, 3.712f };
  			*uParam2 = 246.9161f;
  			break;
  		
  		case 26:
  			*uParam1 = { 1308.952f, -1660.611f, 50.2362f };
  			*uParam2 = 163.5456f;
  			break;
  		
  		case 27:
  			*uParam1 = { -3161.585f, 1074.214f, 19.6847f };
  			*uParam2 = 98.6092f;
  			break;
  		
  		case 28:
  			*uParam1 = { 28.423f, -1110.814f, 28.2848f };
  			*uParam2 = 85.2495f;
  			break;
  		
  		case 29:
  			*uParam1 = { 1704.966f, 3749.709f, 33.0188f };
  			*uParam2 = 45.6778f;
  			break;
  		
  		case 30:
  			*uParam1 = { 223.949f, -38.7894f, 68.6483f };
  			*uParam2 = 159.4265f;
  			break;
  		
  		case 31:
  			*uParam1 = { 837.7854f, -1017.963f, 26.3045f };
  			*uParam2 = 181.0445f;
  			break;
  		
  		case 32:
  			*uParam1 = { -313.1914f, 6093.351f, 30.4625f };
  			*uParam2 = 315.8405f;
  			break;
  		
  		case 33:
  			*uParam1 = { -663.4631f, -952.8069f, 20.3143f };
  			*uParam2 = 92.6796f;
  			break;
  		
  		case 34:
  			*uParam1 = { -1323.06f, -392.8577f, 35.4596f };
  			*uParam2 = 210.7398f;
  			break;
  		
  		case 35:
  			*uParam1 = { -1106.102f, 2684.35f, 18.0953f };
  			*uParam2 = 127.0383f;
  			break;
  		
  		case 36:
  			*uParam1 = { -3157.932f, 1081.309f, 19.6953f };
  			*uParam2 = 100.2942f;
  			break;
  		
  		case 37:
  			*uParam1 = { 2562.882f, 312.8641f, 107.4612f };
  			*uParam2 = 179.205f;
  			break;
  		
  		case 38:
  			*uParam1 = { 822.48f, -2142.875f, 27.8496f };
  			*uParam2 = 355.0598f;
  			break;
  		
  		case 39:
  			*uParam1 = { -1137.053f, -1993.916f, 12.1677f };
  			*uParam2 = 43.1213f;
  			break;
  		
  		case 40:
  			*uParam1 = { 717.8107f, -1084.081f, 21.3094f };
  			*uParam2 = 93.2649f;
  			break;
  		
  		case 41:
  			*uParam1 = { -387.6789f, -128.2568f, 37.6796f };
  			*uParam2 = 119.1085f;
  			break;
  		
  		case 42:
  			*uParam1 = { 117.8835f, 6599.415f, 31.0134f };
  			*uParam2 = 90.7225f;
  			break;
  		
  		case 43:
  			*uParam1 = { 1201.709f, 2664.813f, 36.8102f };
  			*uParam2 = 133.9002f;
  			break;
  		
  		case 44:
  			*uParam1 = { -200.1521f, -1297.502f, 30.296f };
  			*uParam2 = 269.0687f;
  			break;
  		
  		case 45:
  			*uParam1 = { 0f, 0f, 0f };
  			*uParam2 = 0f;
  			break;
  		
  		case 46:
  			*uParam1 = { 0f, 0f, 0f };
  			*uParam2 = 0f;
  			break;
  		
  		case 47:
  			*uParam1 = { 0f, 0f, 0f };
  			*uParam2 = 0f;
  			break;
  		
  		case 48:
  			*uParam1 = { 0f, 0f, 0f };
  			*uParam2 = 0f;
  			break;
  		
  		case 49:
  			*uParam1 = { 0f, 0f, 0f };
  			*uParam2 = 0f;
  			break;
  		
  		case 52:
  			*uParam1 = { 0f, 0f, 0f };
  			*uParam2 = 0f;
  			break;
  		
  		case 50:
  			*uParam1 = { 0f, 0f, 0f };
  			*uParam2 = 0f;
  			break;
  		
  		case 51:
  			*uParam1 = { 0f, 0f, 0f };
  			*uParam2 = 0f;
  			break;
  	}
  	return !func_209(*uParam1, 0f, 0f, 0f, 0);
  }
  
  int func_328(var uParam0)
  {
  	if (!ENTITY::IS_ENTITY_DEAD(PLAYER::PLAYER_PED_ID(), false) && !PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID()))
  	{
  		if (func_350())
  		{
  			*uParam0 = func_334(ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), false), 6, -1, 0, 1, -1);
  			if (func_333(*uParam0) && !func_329(*uParam0))
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  bool func_329(int iParam0)
  {
  	return func_330(iParam0, 0, 1);
  }
  
  int func_330(int iParam0, int iParam1, bool bParam2)
  {
  	if (iParam0 == -1)
  	{
  		return 0;
  	}
  	if (bParam2)
  	{
  		return MISC::IS_BIT_SET(Global_98796.f_1357[iParam0], iParam1);
  	}
  	else if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		if (func_332() == 0)
  		{
  			return MISC::IS_BIT_SET(func_70(func_331(iParam0), -1, 0), iParam1);
  		}
  	}
  	else
  	{
  		return MISC::IS_BIT_SET(Global_111638.f_668[iParam0], iParam1);
  	}
  	return 0;
  }
  
  int func_331(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 827;
  			break;
  		
  		case 1:
  			return 828;
  			break;
  		
  		case 2:
  			return 829;
  			break;
  		
  		case 3:
  			return 830;
  			break;
  		
  		case 4:
  			return 831;
  			break;
  		
  		case 5:
  			return 832;
  			break;
  		
  		case 6:
  			return 833;
  			break;
  		
  		case 7:
  			return 834;
  			break;
  		
  		case 8:
  			return 835;
  			break;
  		
  		case 9:
  			return 836;
  			break;
  		
  		case 10:
  			return 837;
  			break;
  		
  		case 11:
  			return 838;
  			break;
  		
  		case 12:
  			return 839;
  			break;
  		
  		case 13:
  			return 840;
  			break;
  		
  		case 14:
  			return 841;
  			break;
  		
  		case 15:
  			return 843;
  			break;
  		
  		case 16:
  			return 844;
  			break;
  		
  		case 17:
  			return 845;
  			break;
  		
  		case 18:
  			return 846;
  			break;
  		
  		case 19:
  			return 847;
  			break;
  		
  		case 20:
  			return 848;
  			break;
  		
  		case 21:
  			return 849;
  			break;
  		
  		case 22:
  			return 850;
  			break;
  		
  		case 23:
  			return 851;
  			break;
  		
  		case 24:
  			return 852;
  			break;
  		
  		case 25:
  			return 853;
  			break;
  		
  		case 26:
  			return 854;
  			break;
  		
  		case 27:
  			return 855;
  			break;
  		
  		case 28:
  			return 856;
  			break;
  		
  		case 29:
  			return 857;
  			break;
  		
  		case 30:
  			return 858;
  			break;
  		
  		case 31:
  			return 859;
  			break;
  		
  		case 32:
  			return 860;
  			break;
  		
  		case 33:
  			return 861;
  			break;
  		
  		case 34:
  			return 862;
  			break;
  		
  		case 35:
  			return 863;
  			break;
  		
  		case 36:
  			return 864;
  			break;
  		
  		case 37:
  			return 865;
  			break;
  		
  		case 38:
  			return 866;
  			break;
  		
  		case 39:
  			return 867;
  			break;
  		
  		case 40:
  			return 871;
  			break;
  		
  		case 41:
  			return 872;
  			break;
  		
  		case 42:
  			return 873;
  			break;
  		
  		case 43:
  			return 874;
  			break;
  		
  		case 44:
  			return 9977;
  			break;
  		
  		case 45:
  			return 3808;
  			break;
  		
  		case 46:
  			return 5383;
  			break;
  		
  		case 47:
  			return 6155;
  			break;
  		
  		case 48:
  			return 7232;
  			break;
  		
  		case 49:
  			return 7878;
  			break;
  		
  		case 52:
  			return 8912;
  			break;
  		
  		case 50:
  			return 8265;
  			break;
  		
  		case 51:
  			return 8267;
  			break;
  		
  		default:
  			break;
  	}
  	return 11511;
  }
  
  int func_332()
  {
  	return Global_30768;
  }
  
  int func_333(int iParam0)
  {
  	return func_330(iParam0, 5, 1);
  }
  
  int func_334(struct<3> Param0, int iParam1, int iParam2, bool bParam3, int iParam4, int iParam5)
  {
  	int iVar0;
  	float fVar1;
  	float fVar2;
  	int iVar3;
  	
  	fVar2 = 1000000f;
  	iVar3 = -1;
  	iVar0 = 0;
  	while (iVar0 <= 52)
  	{
  		if (iParam1 == 6 || iParam1 == func_349(iVar0))
  		{
  			if (!bParam3 || func_348(iVar0))
  			{
  				fVar1 = MISC::GET_DISTANCE_BETWEEN_COORDS(Param0, func_335(iVar0, 0), true);
  				if (((fVar1 < fVar2 && (fVar1 <= IntToFloat(iParam2) || iParam2 == -1)) && (iParam4 || iVar0 != 21)) && iVar0 != iParam5)
  				{
  					fVar2 = fVar1;
  					iVar3 = iVar0;
  				}
  			}
  		}
  		iVar0++;
  	}
  	return iVar3;
  }
  
  Vector3 func_335(int iParam0, bool bParam1)
  {
  	switch (iParam0)
  	{
  		case -1:
  			return 0f, 0f, 0f;
  			break;
  		
  		case 0:
  			return -821.9946f, -187.1776f, 36.5689f;
  			break;
  		
  		case 1:
  			return 133.5702f, -1710.918f, 28.2916f;
  			break;
  		
  		case 2:
  			return -1287.082f, -1116.558f, 5.9901f;
  			break;
  		
  		case 3:
  			return 1933.119f, 3726.079f, 31.8444f;
  			break;
  		
  		case 4:
  			return 1208.333f, -470.917f, 65.208f;
  			break;
  		
  		case 5:
  			return -30.7448f, -148.4921f, 56.0765f;
  			break;
  		
  		case 6:
  			return -280.8165f, 6231.771f, 30.6955f;
  			break;
  		
  		case 7:
  			return 80.665f, -1391.669f, 28.3761f;
  			break;
  		
  		case 8:
  			return 1687.881f, 4820.55f, 41.0096f;
  			break;
  		
  		case 9:
  			return 419.531f, -807.5787f, 28.4896f;
  			break;
  		
  		case 10:
  			return -1094.049f, 2704.171f, 18.0873f;
  			break;
  		
  		case 11:
  			return 1197.972f, 2704.22f, 37.1572f;
  			break;
  		
  		case 12:
  			return -818.6218f, -1077.533f, 10.3282f;
  			break;
  		
  		case 13:
  			return -0.2361f, 6516.045f, 30.8684f;
  			break;
  		
  		case 14:
  			return -1199.809f, -776.6886f, 16.3237f;
  			break;
  		
  		case 15:
  			return 618.1857f, 2752.567f, 41.0881f;
  			break;
  		
  		case 16:
  			return 126.6853f, -212.5027f, 53.5578f;
  			break;
  		
  		case 17:
  			return -3168.966f, 1055.287f, 19.8632f;
  			break;
  		
  		case 18:
  			return -715.3598f, -155.7742f, 36.4105f;
  			break;
  		
  		case 19:
  			return -158.2199f, -304.9663f, 38.735f;
  			break;
  		
  		case 20:
  			return -1455.005f, -233.1862f, 48.7936f;
  			break;
  		
  		case 21:
  			return -1335.973f, -1278.555f, 3.8598f;
  			break;
  		
  		case 22:
  			return 321.6098f, 179.4165f, 102.5865f;
  			break;
  		
  		case 23:
  			return 1861.685f, 3750.08f, 32.0318f;
  			break;
  		
  		case 24:
  			return -290.1603f, 6199.095f, 30.4871f;
  			break;
  		
  		case 25:
  			return -1153.948f, -1425.019f, 3.9544f;
  			break;
  		
  		case 26:
  			return 1322.455f, -1651.125f, 51.1885f;
  			break;
  		
  		case 27:
  			return -3169.42f, 1074.727f, 19.8343f;
  			break;
  		
  		case 28:
  			return 17.6804f, -1114.288f, 28.797f;
  			break;
  		
  		case 29:
  			return 1697.979f, 3753.2f, 33.7053f;
  			break;
  		
  		case 30:
  			return 245.2711f, -45.8126f, 68.941f;
  			break;
  		
  		case 31:
  			return 844.1248f, -1025.571f, 27.1948f;
  			break;
  		
  		case 32:
  			return -325.8904f, 6077.026f, 30.4548f;
  			break;
  		
  		case 33:
  			return -664.2178f, -943.3646f, 20.8292f;
  			break;
  		
  		case 34:
  			return -1313.948f, -390.9637f, 35.592f;
  			break;
  		
  		case 35:
  			return -1111.238f, 2688.463f, 17.6131f;
  			break;
  		
  		case 36:
  			return -3165.231f, 1082.855f, 19.8438f;
  			break;
  		
  		case 37:
  			return 2569.612f, 302.576f, 107.7349f;
  			break;
  		
  		case 38:
  			return 811.8699f, -2149.102f, 28.6363f;
  			break;
  		
  		case 39:
  			return -1147.314f, -1992.434f, 12.1803f;
  			break;
  		
  		case 40:
  			return 724.524f, -1089.081f, 21.1692f;
  			break;
  		
  		case 41:
  			return -354.5272f, -135.4011f, 38.185f;
  			break;
  		
  		case 42:
  			return 113.2615f, 6624.28f, 30.7871f;
  			break;
  		
  		case 43:
  			return 1174.707f, 2644.45f, 36.7552f;
  			break;
  		
  		case 44:
  			if (bParam1)
  			{
  				return -211.5f, -1324.2f, 30.296f;
  			}
  			else
  			{
  				return -205.6654f, -1311.113f, 30.296f;
  			}
  			break;
  		
  		case 45:
  			return func_345(Global_100839);
  			break;
  		
  		case 46:
  			if (Global_1590374 != func_28())
  			{
  				if (func_344(Global_1590374))
  				{
  					return func_337(2, 2);
  				}
  				else if (func_336(Global_1590374))
  				{
  					return func_337(45, 3);
  				}
  				else
  				{
  					return 1000000f, 1000000f, 1000000f;
  				}
  			}
  			else
  			{
  				return 1000000f, 1000000f, 1000000f;
  			}
  			break;
  		
  		case 47:
  			return 510.1f, 4749.5f, -69f;
  			break;
  		
  		case 48:
  			return -1422.197f, -3015.803f, -79.1603f;
  			break;
  		
  		case 49:
  			return 203.0799f, 5200.189f, -89.6f;
  			break;
  		
  		case 52:
  			return 2714.547f, -354.2701f, -55.1867f;
  			break;
  		
  		case 50:
  			return Global_1696048;
  			break;
  		
  		case 51:
  			return 1100f, 220f, -50f;
  			break;
  	}
  	return 1000000f, 1000000f, 1000000f;
  }
  
  int func_336(int iParam0)
  {
  	if (iParam0 != func_28())
  	{
  		if ((MISC::IS_BIT_SET(Global_1590535[iParam0 /*876*/].f_274.f_259, 0) || MISC::IS_BIT_SET(Global_1590535[iParam0 /*876*/].f_274.f_259, 1)) || MISC::IS_BIT_SET(Global_1590535[iParam0 /*876*/].f_274.f_259, 2))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  Vector3 func_337(int iParam0, int iParam1)
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	
  	Var1 = { 1000000f, 1000000f, 1000000f };
  	if (Global_1590374 != func_28())
  	{
  		if (iParam1 == 3)
  		{
  			if (func_338(iParam0, 1, &Var0, 0, 0))
  			{
  				Var1 = { Var0 };
  			}
  		}
  		else if (iParam1 == 2)
  		{
  			if (MISC::IS_BIT_SET(Global_1590535[Global_1590374 /*876*/].f_274.f_259, 4))
  			{
  				if (func_338(iParam0, 1, &Var0, 0, 0))
  				{
  					Var1 = { Var0 };
  				}
  			}
  			else if (MISC::IS_BIT_SET(Global_1590535[Global_1590374 /*876*/].f_274.f_259, 5))
  			{
  				if (func_338(iParam0, 2, &Var0, 0, 0))
  				{
  					Var1 = { Var0 };
  				}
  			}
  		}
  	}
  	return Var1;
  }
  
  int func_338(int iParam0, int iParam1, var uParam2, int iParam3, bool bParam4)
  {
  	struct<4> Var0;
  	struct<3> Var1;
  	struct<4> Var2;
  	struct<3> Var3;
  	
  	if (!func_343(iParam3, &Var0))
  	{
  		return 0;
  	}
  	if (!func_343(iParam1, &Var1))
  	{
  		return 0;
  	}
  	if (!bParam4)
  	{
  		Var2 = { func_341(iParam0) };
  	}
  	else
  	{
  		Var2 = { func_340(iParam0) };
  	}
  	Var3 = { Var2 - Var0 };
  	Var3 = { func_339(Var3, -Var0.f_3.f_2) };
  	Var3 = { func_339(Var3, Var1.f_3.f_2) };
  	*uParam2 = { OBJECT::_GET_OBJECT_OFFSET_FROM_COORDS(Var1, 0f, Var3) };
  	uParam2->f_3 = { Var2.f_3 };
  	return 1;
  }
  
  Vector3 func_339(struct<3> Param0, float fParam1)
  {
  	struct<3> Var0;
  	float fVar1;
  	float fVar2;
  	
  	fVar1 = SYSTEM::SIN(fParam1);
  	fVar2 = SYSTEM::COS(fParam1);
  	Var0.x = ((Param0.x * fVar2) - (Param0.f_1 * fVar1));
  	Var0.f_1 = ((Param0.x * fVar1) + (Param0.f_1 * fVar2));
  	Var0.f_2 = Param0.f_2;
  	return Var0;
  }
  
  struct<6> func_340(int iParam0)
  {
  	struct<6> Var0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			Var0 = { 1102.1f, -3010.2f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 115.92f };
  			break;
  		
  		case 1:
  			Var0 = { 1105.05f, -3010.2f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -103.32f };
  			break;
  		
  		case 2:
  			Var0 = { 1105.05f, -3008.75f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -77.76f };
  			break;
  		
  		case 3:
  			Var0 = { 1102.1f, -3002.1f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 102.96f };
  			break;
  		
  		case 4:
  			Var0 = { 1105.05f, -3002.1f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -101.88f };
  			break;
  		
  		case 5:
  			Var0 = { 1105.05f, -3000.65f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -81.36f };
  			break;
  		
  		case 6:
  			Var0 = { 1102.1f, -2994.2f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 103.32f };
  			break;
  		
  		case 7:
  			Var0 = { 1105.05f, -2994.2f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -109.8f };
  			break;
  		
  		case 8:
  			Var0 = { 1105.05f, -2992.65f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -84.96f };
  			break;
  	}
  	return Var0;
  }
  
  struct<6> func_341(int iParam0)
  {
  	return func_342(iParam0);
  }
  
  struct<6> func_342(int iParam0)
  {
  	struct<6> Var0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			Var0 = { 1105.22f, -3013.985f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 1:
  			Var0 = { 1104.105f, -3013.985f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 19:
  			Var0 = { 1105.22f, -3005.985f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 20:
  			Var0 = { 1104.105f, -3005.985f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 2:
  			Var0 = { 1102f, -3011.925f, -39.95f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 3:
  			Var0 = { 1103f, -3010f, -38.125f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 4:
  			Var0 = { 1103.213f, -3013.483f, -39.03f };
  			Var0.f_3 = { 0f, 0f, 31.32f };
  			break;
  		
  		case 5:
  			Var0.f_3 = { 0f, 0f, 0f };
  			Var0 = { 1101.408f, -3012.32f, -38.45339f };
  			break;
  		
  		case 6:
  			Var0.f_3 = { 0f, 0f, 0f };
  			Var0 = { 1103.037f, -3012.318f, -39.99874f };
  			break;
  		
  		case 7:
  			Var0 = { 1105.645f, -3012.04f, -39.542f };
  			Var0.f_3 = { 0f, 0f, -86.04f };
  			break;
  		
  		case 8:
  			Var0.f_3 = { 0f, 0f, 0f };
  			Var0 = { 1104.063f, -3012.368f, -39.99875f };
  			break;
  		
  		case 9:
  			Var0 = { 1105.665f, -3012.334f, -38.50835f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 10:
  			Var0 = { 1102.504f, -3012.35f, -39.341f };
  			Var0.f_3 = { 0f, 0f, -96.48f };
  			break;
  		
  		case 11:
  			Var0 = { 1102.928f, -3012.693f, -39.99945f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 12:
  			Var0 = { 1102.942f, -3011.315f, -37.99945f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 61:
  			Var0 = { 1101.994f, -3012.878f, -39.95f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 62:
  			Var0 = { 1103.152f, -3013.032f, -38.24946f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 13:
  			Var0 = { 1102.465f, -3009.515f, -39.341f };
  			Var0.f_3 = { 0f, 0f, -12.96f };
  			break;
  		
  		case 14:
  			Var0 = { 1102.917f, -3009.525f, -39.99945f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 15:
  			Var0 = { 1102.922f, -3010.887f, -37.99945f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 63:
  			Var0 = { 1101.682f, -3009.227f, -39.95f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 64:
  			Var0 = { 1102.453f, -3008.51f, -38.2f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 16:
  			Var0 = { 1104.684f, -3009.561f, -39.341f };
  			Var0.f_3 = { 0f, 0f, 169.56f };
  			break;
  		
  		case 17:
  			Var0 = { 1104.34f, -3008.698f, -39.99945f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 18:
  			Var0 = { 1104.344f, -3009.618f, -37.98172f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 65:
  			Var0 = { 1105.459f, -3009.793f, -39.95f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 66:
  			Var0 = { 1104.783f, -3010.433f, -38.2f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 44:
  			Var0 = { 1104.025f, -3007.316f, -39.9987f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 21:
  			Var0 = { 1103.562f, -3014f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 22:
  			Var0 = { 1103.562f, -3014f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 23:
  			Var0 = { 1102.1f, -3010.2f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 115.92f };
  			break;
  		
  		case 24:
  			Var0 = { 1105.05f, -3010.2f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -103.32f };
  			break;
  		
  		case 25:
  			Var0 = { 1105.05f, -3008.75f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -77.76f };
  			break;
  		
  		case 26:
  			Var0 = { 1102.05f, -3011.717f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 90f };
  			break;
  		
  		case 27:
  			Var0 = { 1102.05f, -3012.653f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 90f };
  			break;
  		
  		case 28:
  			Var0 = { 1105.05f, -3012.653f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -90f };
  			break;
  		
  		case 29:
  			Var0 = { 1105.05f, -3011.717f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -90f };
  			break;
  		
  		case 30:
  			Var0 = { 1102.1f, -3002.1f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 102.96f };
  			break;
  		
  		case 31:
  			Var0 = { 1105.05f, -3002.1f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -101.88f };
  			break;
  		
  		case 32:
  			Var0 = { 1105.05f, -3000.65f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -81.36f };
  			break;
  		
  		case 33:
  			Var0 = { 1102.05f, -3003.592f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 90f };
  			break;
  		
  		case 34:
  			Var0 = { 1102.05f, -3004.541f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 90f };
  			break;
  		
  		case 35:
  			Var0 = { 1105.05f, -3004.541f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -90f };
  			break;
  		
  		case 36:
  			Var0 = { 1105.05f, -3003.592f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -90f };
  			break;
  		
  		case 37:
  			Var0 = { 1102.1f, -2994.2f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 103.32f };
  			break;
  		
  		case 38:
  			Var0 = { 1105.05f, -2994.2f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -109.8f };
  			break;
  		
  		case 39:
  			Var0 = { 1105.05f, -2992.65f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -84.96f };
  			break;
  		
  		case 40:
  			Var0 = { 1102.05f, -2995.582f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 90f };
  			break;
  		
  		case 41:
  			Var0 = { 1102.05f, -2996.501f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 90f };
  			break;
  		
  		case 42:
  			Var0 = { 1105.05f, -2996.501f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -90f };
  			break;
  		
  		case 43:
  			Var0 = { 1105.05f, -2995.582f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -90f };
  			break;
  		
  		case 45:
  			Var0 = { 1101f, -3011.9f, -39.95f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 46:
  			Var0 = { 1102f, -3010f, -38.115f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 47:
  			Var0 = { 1105.174f, -3004.16f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 48:
  			Var0 = { 1105.175f, -3005.818f, -37.91948f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 49:
  			Var0 = { 1106.6f, -3000.847f, -39.89988f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 50:
  			Var0 = { 1106.601f, -3002.171f, -37.89988f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 51:
  			Var0 = { 1101.95f, -3011.9f, -39.2f };
  			Var0.f_3 = { 0f, 0f, 49.5f };
  			break;
  		
  		case 52:
  			Var0 = { 1101.95f, -3010f, -39.2f };
  			Var0.f_3 = { 0f, 0f, 130.32f };
  			break;
  		
  		case 53:
  			Var0 = { 1105.16f, -3009.06f, -39.2f };
  			Var0.f_3 = { 0f, 0f, -44.64f };
  			break;
  		
  		case 54:
  			Var0 = { 1102.476f, -3008.508f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 55:
  			Var0 = { 1099f, -3008.508f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 56:
  			Var0 = { 1103.593f, -3008.27f, -39.9987f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 57:
  			Var0 = { 1103.565f, -3014f, -39.988f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 58:
  			Var0 = { 1103.565f, -3014f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 59:
  			Var0 = { 1103.565f, -3014f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 60:
  			Var0 = { 1103.55f, -3014f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 67:
  			Var0 = { 1103.55f, -3013.762f, -40f };
  			Var0.f_3 = { 0f, 0f, 180f };
  			break;
  		
  		case 68:
  			Var0 = { 1103.55f, -3006.186f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 71:
  		case 69:
  		case 70:
  		case 73:
  		case 72:
  		case 74:
  			Var0 = { 1103.6f, -3013.933f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  	}
  	return Var0;
  }
  
  int func_343(int iParam0, var uParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			*uParam1 = { 1103.562f, -3014f, -40f };
  			uParam1->f_3 = { 0f, 0f, 0f };
  			return 1;
  		
  		case 1:
  			*uParam1 = { 1103.562f, -3006f, -40f };
  			uParam1->f_3 = { 0f, 0f, 0f };
  			return 1;
  		
  		case 2:
  			*uParam1 = { 1103.562f, -2998f, -40f };
  			uParam1->f_3 = { 0f, 0f, 0f };
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_344(int iParam0)
  {
  	if (iParam0 != func_28())
  	{
  		if ((MISC::IS_BIT_SET(Global_1590535[iParam0 /*876*/].f_274.f_259, 3) || MISC::IS_BIT_SET(Global_1590535[iParam0 /*876*/].f_274.f_259, 4)) || MISC::IS_BIT_SET(Global_1590535[iParam0 /*876*/].f_274.f_259, 5))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  Vector3 func_345(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 1:
  			return 1060f, -2990f, -35f;
  			break;
  		
  		case 2:
  			return 1060f, -2990f, -35f;
  			break;
  		
  		case 3:
  			return 974.9542f, -3000.091f, -35f;
  			break;
  		
  		case 6:
  			return -1586.36f, -566.6f, 106.17f;
  			break;
  		
  		case 7:
  			return -1389.87f, -465.17f, 82.68f;
  			break;
  		
  		case 8:
  			return -145.81f, -590.2f, 171.13f;
  			break;
  		
  		case 9:
  			return -62.49f, -823.55f, 288.74f;
  			break;
  		
  		case 4:
  			return 1102.515f, -3158.888f, -38.5186f;
  			break;
  		
  		case 5:
  			return 1005.861f, -3156.162f, -39.907f;
  			break;
  		
  		case 10:
  			return 1103.562f, -3000f, -40f;
  			break;
  		
  		case 11:
  			return 938.3077f, -3196.112f, -100f;
  			break;
  		
  		case 12:
  			return -1266.802f, -3014.836f, -49.4895f;
  			break;
  		
  		case 13:
  			return 520.0001f, 4750f, -70f;
  			break;
  		
  		case 14:
  			return 345.0041f, 4842.001f, -59.9997f;
  			break;
  		
  		case 15:
  			return -1604.664f, -3012.583f, -79.9999f;
  			break;
  		
  		case 16:
  			return -1421.015f, -3012.587f, -80f;
  			break;
  		
  		case 17:
  			if (func_346() == 0)
  			{
  				return 205f, 5180f, -90f;
  			}
  			else
  			{
  				return 170f, 5190f, 10f;
  			}
  			break;
  		
  		default:
  			return 0f, 0f, -200f;
  			break;
  	}
  	return 0f, 0f, -200f;
  }
  
  int func_346()
  {
  	return func_347(PLAYER::PLAYER_ID());
  }
  
  int func_347(int iParam0)
  {
  	return MISC::GET_BITS_IN_RANGE(Global_2425662[iParam0 /*421*/].f_310.f_3, 28, 31);
  }
  
  int func_348(int iParam0)
  {
  	return func_330(iParam0, 0, 0);
  }
  
  int func_349(int iParam0)
  {
  	switch (iParam0)
  	{
  		case -1:
  			return 6;
  			break;
  		
  		case 0:
  			return 0;
  			break;
  		
  		case 1:
  			return 0;
  			break;
  		
  		case 2:
  			return 0;
  			break;
  		
  		case 3:
  			return 0;
  			break;
  		
  		case 4:
  			return 0;
  			break;
  		
  		case 5:
  			return 0;
  			break;
  		
  		case 6:
  			return 0;
  			break;
  		
  		case 50:
  			return 0;
  			break;
  		
  		case 7:
  			return 1;
  			break;
  		
  		case 8:
  			return 1;
  			break;
  		
  		case 9:
  			return 1;
  			break;
  		
  		case 10:
  			return 1;
  			break;
  		
  		case 11:
  			return 1;
  			break;
  		
  		case 12:
  			return 1;
  			break;
  		
  		case 13:
  			return 1;
  			break;
  		
  		case 14:
  			return 1;
  			break;
  		
  		case 15:
  			return 1;
  			break;
  		
  		case 16:
  			return 1;
  			break;
  		
  		case 17:
  			return 1;
  			break;
  		
  		case 18:
  			return 1;
  			break;
  		
  		case 19:
  			return 1;
  			break;
  		
  		case 20:
  			return 1;
  			break;
  		
  		case 21:
  			return 1;
  			break;
  		
  		case 22:
  			return 2;
  			break;
  		
  		case 23:
  			return 2;
  			break;
  		
  		case 24:
  			return 2;
  			break;
  		
  		case 25:
  			return 2;
  			break;
  		
  		case 26:
  			return 2;
  			break;
  		
  		case 27:
  			return 2;
  			break;
  		
  		case 28:
  			return 3;
  			break;
  		
  		case 29:
  			return 3;
  			break;
  		
  		case 30:
  			return 3;
  			break;
  		
  		case 31:
  			return 3;
  			break;
  		
  		case 32:
  			return 3;
  			break;
  		
  		case 33:
  			return 3;
  			break;
  		
  		case 34:
  			return 3;
  			break;
  		
  		case 35:
  			return 3;
  			break;
  		
  		case 36:
  			return 3;
  			break;
  		
  		case 37:
  			return 3;
  			break;
  		
  		case 38:
  			return 3;
  			break;
  		
  		case 39:
  			return 4;
  			break;
  		
  		case 40:
  			return 4;
  			break;
  		
  		case 41:
  			return 4;
  			break;
  		
  		case 42:
  			return 4;
  			break;
  		
  		case 43:
  			return 4;
  			break;
  		
  		case 44:
  			return 4;
  			break;
  		
  		case 45:
  			return 5;
  			break;
  		
  		case 46:
  			return 3;
  			break;
  		
  		case 47:
  			return 3;
  			break;
  		
  		case 48:
  			return 3;
  			break;
  		
  		case 49:
  			return 3;
  			break;
  		
  		case 52:
  			return 3;
  			break;
  		
  		case 51:
  			return 1;
  			break;
  	}
  	return 6;
  }
  
  bool func_350()
  {
  	return Global_98796.f_345 > 0;
  }
  
  var func_351()
  {
  	var uVar0;
  	
  	func_361(&uVar0, CLOCK::GET_CLOCK_SECONDS());
  	func_360(&uVar0, CLOCK::GET_CLOCK_MINUTES());
  	func_359(&uVar0, CLOCK::GET_CLOCK_HOURS());
  	func_354(&uVar0, CLOCK::GET_CLOCK_DAY_OF_MONTH());
  	func_353(&uVar0, CLOCK::GET_CLOCK_MONTH());
  	func_352(&uVar0, CLOCK::GET_CLOCK_YEAR());
  	return uVar0;
  }
  
  void func_352(var uParam0, int iParam1)
  {
  	if (iParam1 <= 0)
  	{
  		return;
  	}
  	if (iParam1 > 2043 || iParam1 < 1979)
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 2080374784);
  	if (iParam1 < 2011)
  	{
  		*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT((2011 - iParam1), 26));
  		*uParam0 |= -2147483648;
  	}
  	else
  	{
  		*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT((iParam1 - 2011), 26));
  		*uParam0 = (*uParam0 - *uParam0 & -2147483648);
  	}
  }
  
  void func_353(var uParam0, int iParam1)
  {
  	if (iParam1 < 0 || iParam1 > 11)
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 15);
  	*uParam0 = (*uParam0 || iParam1);
  }
  
  void func_354(var uParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = func_358(*uParam0);
  	iVar1 = func_356(*uParam0);
  	if (iParam1 < 1 || iParam1 > func_355(iVar0, iVar1))
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 496);
  	*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT(iParam1, 4));
  }
  
  int func_355(int iParam0, int iParam1)
  {
  	if (iParam1 < 0)
  	{
  		iParam1 = 0;
  	}
  	switch (iParam0)
  	{
  		case 0:
  		case 2:
  		case 4:
  		case 6:
  		case 7:
  		case 9:
  		case 11:
  			return 31;
  			break;
  		
  		case 3:
  		case 5:
  		case 8:
  		case 10:
  			return 30;
  			break;
  		
  		case 1:
  			if ((iParam1 % 4) == 0)
  			{
  				if ((iParam1 % 100) != 0)
  				{
  					return 29;
  				}
  				else if ((iParam1 % 400) == 0)
  				{
  					return 29;
  				}
  			}
  			return 28;
  			break;
  	}
  	return 30;
  }
  
  var func_356(int iParam0)
  {
  	return (SYSTEM::SHIFT_RIGHT(iParam0, 26) & 31 * func_357(MISC::IS_BIT_SET(iParam0, 31), -1, 1)) + 2011;
  }
  
  int func_357(bool bParam0, int iParam1, int iParam2)
  {
  	if (bParam0)
  	{
  		return iParam1;
  	}
  	return iParam2;
  }
  
  int func_358(var uParam0)
  {
  	return uParam0 & 15;
  }
  
  void func_359(var uParam0, int iParam1)
  {
  	if (iParam1 < 0 || iParam1 > 24)
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 15872);
  	*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT(iParam1, 9));
  }
  
  void func_360(var uParam0, int iParam1)
  {
  	if (iParam1 < 0 || iParam1 >= 60)
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 1032192);
  	*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT(iParam1, 14));
  }
  
  void func_361(var uParam0, int iParam1)
  {
  	if (iParam1 < 0 || iParam1 >= 60)
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 66060288);
  	*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT(iParam1, 20));
  }
  
  int func_362(char* sParam0)
  {
  	if (MISC::ARE_STRINGS_EQUAL("BailBond1", sParam0))
  	{
  		return 0;
  	}
  	else if (MISC::ARE_STRINGS_EQUAL("BailBond2", sParam0))
  	{
  		return 1;
  	}
  	else if (MISC::ARE_STRINGS_EQUAL("BailBond3", sParam0))
  	{
  		return 2;
  	}
  	else if (MISC::ARE_STRINGS_EQUAL("BailBond4", sParam0))
  	{
  		return 3;
  	}
  	return -1;
  }
  
  struct<2> func_363(int iParam0)
  {
  	struct<2> Var0;
  	
  	StringCopy(&Var0, "", 8);
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var0, "ABI1", 8);
  			break;
  		
  		case 1:
  			StringCopy(&Var0, "ABI2", 8);
  			break;
  		
  		case 2:
  			StringCopy(&Var0, "BA1", 8);
  			break;
  		
  		case 3:
  			StringCopy(&Var0, "BA2", 8);
  			break;
  		
  		case 4:
  			StringCopy(&Var0, "BA3", 8);
  			break;
  		
  		case 5:
  			StringCopy(&Var0, "BA3A", 8);
  			break;
  		
  		case 6:
  			StringCopy(&Var0, "BA3C", 8);
  			break;
  		
  		case 7:
  			StringCopy(&Var0, "BA4", 8);
  			break;
  		
  		case 8:
  			StringCopy(&Var0, "DRE1", 8);
  			break;
  		
  		case 9:
  			StringCopy(&Var0, "EPS1", 8);
  			break;
  		
  		case 10:
  			StringCopy(&Var0, "EPS2", 8);
  			break;
  		
  		case 11:
  			StringCopy(&Var0, "EPS3", 8);
  			break;
  		
  		case 12:
  			StringCopy(&Var0, "EPS4", 8);
  			break;
  		
  		case 13:
  			StringCopy(&Var0, "EPS5", 8);
  			break;
  		
  		case 14:
  			StringCopy(&Var0, "EPS6", 8);
  			break;
  		
  		case 15:
  			StringCopy(&Var0, "EPS7", 8);
  			break;
  		
  		case 16:
  			StringCopy(&Var0, "EPS8", 8);
  			break;
  		
  		case 17:
  			StringCopy(&Var0, "EXT1", 8);
  			break;
  		
  		case 18:
  			StringCopy(&Var0, "EXT2", 8);
  			break;
  		
  		case 19:
  			StringCopy(&Var0, "EXT3", 8);
  			break;
  		
  		case 20:
  			StringCopy(&Var0, "EXT4", 8);
  			break;
  		
  		case 21:
  			StringCopy(&Var0, "FAN1", 8);
  			break;
  		
  		case 22:
  			StringCopy(&Var0, "FAN2", 8);
  			break;
  		
  		case 23:
  			StringCopy(&Var0, "FAN3", 8);
  			break;
  		
  		case 24:
  			StringCopy(&Var0, "HAO1", 8);
  			break;
  		
  		case 25:
  			StringCopy(&Var0, "HUN1", 8);
  			break;
  		
  		case 26:
  			StringCopy(&Var0, "HUN2", 8);
  			break;
  		
  		case 27:
  			StringCopy(&Var0, "JOS1", 8);
  			break;
  		
  		case 28:
  			StringCopy(&Var0, "JOS2", 8);
  			break;
  		
  		case 29:
  			StringCopy(&Var0, "JOS3", 8);
  			break;
  		
  		case 30:
  			StringCopy(&Var0, "JOS4", 8);
  			break;
  		
  		case 31:
  			StringCopy(&Var0, "MAU1", 8);
  			break;
  		
  		case 32:
  			StringCopy(&Var0, "MIN1", 8);
  			break;
  		
  		case 33:
  			StringCopy(&Var0, "MIN2", 8);
  			break;
  		
  		case 34:
  			StringCopy(&Var0, "MIN3", 8);
  			break;
  		
  		case 35:
  			StringCopy(&Var0, "MRS1", 8);
  			break;
  		
  		case 36:
  			StringCopy(&Var0, "MRS2", 8);
  			break;
  		
  		case 37:
  			StringCopy(&Var0, "NI1", 8);
  			break;
  		
  		case 38:
  			StringCopy(&Var0, "NI1A", 8);
  			break;
  		
  		case 39:
  			StringCopy(&Var0, "NI1B", 8);
  			break;
  		
  		case 40:
  			StringCopy(&Var0, "NI1C", 8);
  			break;
  		
  		case 41:
  			StringCopy(&Var0, "NI1D", 8);
  			break;
  		
  		case 42:
  			StringCopy(&Var0, "NI2", 8);
  			break;
  		
  		case 43:
  			StringCopy(&Var0, "NI3", 8);
  			break;
  		
  		case 44:
  			StringCopy(&Var0, "OME1", 8);
  			break;
  		
  		case 45:
  			StringCopy(&Var0, "OME2", 8);
  			break;
  		
  		case 46:
  			StringCopy(&Var0, "PA1", 8);
  			break;
  		
  		case 47:
  			StringCopy(&Var0, "PA2", 8);
  			break;
  		
  		case 48:
  			StringCopy(&Var0, "PA3", 8);
  			break;
  		
  		case 49:
  			StringCopy(&Var0, "PA3A", 8);
  			break;
  		
  		case 50:
  			StringCopy(&Var0, "PA3B", 8);
  			break;
  		
  		case 51:
  			StringCopy(&Var0, "PA4", 8);
  			break;
  		
  		case 52:
  			StringCopy(&Var0, "RAM1", 8);
  			break;
  		
  		case 53:
  			StringCopy(&Var0, "RAM2", 8);
  			break;
  		
  		case 54:
  			StringCopy(&Var0, "RAM3", 8);
  			break;
  		
  		case 55:
  			StringCopy(&Var0, "RAM4", 8);
  			break;
  		
  		case 56:
  			StringCopy(&Var0, "RAM5", 8);
  			break;
  		
  		case 57:
  			StringCopy(&Var0, "SAS1", 8);
  			break;
  		
  		case 58:
  			StringCopy(&Var0, "TON1", 8);
  			break;
  		
  		case 59:
  			StringCopy(&Var0, "TON2", 8);
  			break;
  		
  		case 60:
  			StringCopy(&Var0, "TON3", 8);
  			break;
  		
  		case 61:
  			StringCopy(&Var0, "TON4", 8);
  			break;
  		
  		case 62:
  			StringCopy(&Var0, "TON5", 8);
  			break;
  		
  		default:
  			break;
  	}
  	return Var0;
  }
  
  int func_364(char* sParam0, int iParam1)
  {
  	int iVar0;
  	char* sVar1;
  	int iVar2;
  	int iVar3;
  	
  	iVar2 = MISC::GET_HASH_KEY(sParam0);
  	iVar3 = 0;
  	iVar3 = 0;
  	while (iVar3 < 63)
  	{
  		iVar0 = iVar3;
  		func_365(iVar0, &sVar1);
  		if (MISC::GET_HASH_KEY(sVar1) == iVar2)
  		{
  			return iVar0;
  		}
  		iVar3++;
  	}
  	if (iParam1 == 0)
  	{
  	}
  	return -1;
  }
  
  void func_365(int iParam0, var uParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			func_366(uParam1, "Abigail1", func_368(iParam0), 0, 0, 4, -1604.668f, 5239.1f, 3.01f, 66, "", 109, 0, "ambient_Diving", 0, 0, 1, 4, 1, 0, 2359, func_367(iParam0), 1, 0);
  			break;
  		
  		case 1:
  			func_366(uParam1, "Abigail2", func_368(iParam0), 0, 0, 4, -1592.84f, 5214.04f, 3.01f, 400, "", 110, 0, "", 0, 0, -1, 4, 1, 0, 2359, func_367(iParam0), 1, 0);
  			break;
  		
  		case 2:
  			func_366(uParam1, "Barry1", func_368(iParam0), 0, 1, 4, 190.26f, -956.35f, 29.63f, 381, "", 74, 0, "", 0, 1, -1, 4, 1, 0, 2359, func_367(iParam0), 1, 0);
  			break;
  		
  		case 3:
  			func_366(uParam1, "Barry2", func_368(iParam0), 0, 1, 4, 190.26f, -956.35f, 29.63f, 381, "", -1, 0, "", 0, 1, -1, 4, 4, 0, 2359, func_367(iParam0), 1, 1);
  			break;
  		
  		case 4:
  			func_366(uParam1, "Barry3", func_368(iParam0), 0, 1, 4, 414f, -761f, 29f, 381, "", -1, 0, "", 164, 1, -1, 0, 2, 0, 2359, func_367(iParam0), 0, 0);
  			break;
  		
  		case 5:
  			func_366(uParam1, "Barry3A", func_368(iParam0), 1, 1, 0, 1199.27f, -1255.63f, 34.23f, 381, "BARSTASH", 84, 0, "", 166, 0, 7, 4, 2, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 6:
  			func_366(uParam1, "Barry3C", func_368(iParam0), 3, 1, 0, -468.9f, -1713.06f, 18.21f, 381, "", 84, 0, "", 166, 0, 7, 4, 2, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 7:
  			func_366(uParam1, "Barry4", func_368(iParam0), 0, 1, 4, 237.65f, -385.41f, 44.4f, 381, "", 85, 0, "postRC_Barry4", 0, 0, -1, 4, 2, 800, 2000, func_367(iParam0), 0, 0);
  			break;
  		
  		case 8:
  			func_366(uParam1, "Dreyfuss1", func_368(iParam0), 0, 2, 4, -1458.97f, 485.99f, 115.38f, 66, "LETTERS_HINT", 106, 0, "", 0, 0, -1, 4, 2, 0, 2359, func_367(iParam0), 0, 0);
  			break;
  		
  		case 9:
  			func_366(uParam1, "Epsilon1", func_368(iParam0), 0, 3, 4, -1622.89f, 4204.87f, 83.3f, 66, "", 86, 0, "", 0, 1, 10, 4, 1, 0, 2359, func_367(iParam0), 0, 0);
  			break;
  		
  		case 10:
  			func_366(uParam1, "Epsilon2", func_368(iParam0), 0, 3, 4, 242.7f, 362.7f, 104.74f, 206, "", 87, 16, "", 0, 0, 11, 4, 1, 0, 2359, func_367(iParam0), 1, 0);
  			break;
  		
  		case 11:
  			func_366(uParam1, "Epsilon3", func_368(iParam0), 0, 3, 4, 1835.53f, 4705.86f, 38.1f, 206, "", 88, 16, "epsCars", 0, 0, 12, 4, 1, 0, 2359, func_367(iParam0), 0, 0);
  			break;
  		
  		case 12:
  			func_366(uParam1, "Epsilon4", func_368(iParam0), 0, 3, 4, 1826.13f, 4698.88f, 38.92f, 206, "", 90, 16, "postRC_Epsilon4", 0, 0, 13, 4, 1, 0, 2359, func_367(iParam0), 0, 0);
  			break;
  		
  		case 13:
  			func_366(uParam1, "Epsilon5", func_368(iParam0), 0, 3, 4, 637.02f, 119.7093f, 89.5f, 206, "", 89, 16, "epsRobes", 0, 0, 14, 4, 1, 0, 2359, func_367(iParam0), 1, 0);
  			break;
  		
  		case 14:
  			func_366(uParam1, "Epsilon6", func_368(iParam0), 0, 3, 4, -2892.93f, 3192.37f, 11.66f, 206, "", 93, 0, "", 0, 0, 15, 4, 1, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 15:
  			func_366(uParam1, "Epsilon7", func_368(iParam0), 0, 3, 4, 524.43f, 3079.82f, 39.48f, 206, "", -1, 16, "epsDesert", 0, 0, 16, 4, 1, 0, 2359, func_367(iParam0), 0, 0);
  			break;
  		
  		case 16:
  			func_366(uParam1, "Epsilon8", func_368(iParam0), 0, 3, 4, -697.75f, 45.38f, 43.03f, 206, "", 94, 16, "epsilonTract", 0, 0, -1, 4, 1, 0, 2359, func_367(iParam0), 1, 0);
  			break;
  		
  		case 17:
  			func_366(uParam1, "Extreme1", func_368(iParam0), 0, 4, 4, -188.22f, 1296.1f, 302.86f, 66, "", -1, 0, "", 4, 1, 18, 4, 2, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 18:
  			func_366(uParam1, "Extreme2", func_368(iParam0), 0, 4, 4, -954.19f, -2760.05f, 14.64f, 382, "", 96, 0, "", 171, 0, 19, 4, 2, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 19:
  			func_366(uParam1, "Extreme3", func_368(iParam0), 0, 4, 4, -63.8f, -809.5f, 321.8f, 382, "", 97, 0, "", 0, 0, 20, 4, 2, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 20:
  			func_366(uParam1, "Extreme4", func_368(iParam0), 0, 4, 4, 1731.41f, 96.96f, 170.39f, 382, "", 98, 16, "", 0, 0, -1, 4, 2, 0, 2359, func_367(iParam0), 0, 0);
  			break;
  		
  		case 21:
  			func_366(uParam1, "Fanatic1", func_368(iParam0), 0, 5, 4, -1877.82f, -440.649f, 45.05f, 405, "", 74, 0, "", 0, 1, -1, 4, 1, 700, 2000, func_367(iParam0), 1, 0);
  			break;
  		
  		case 22:
  			func_366(uParam1, "Fanatic2", func_368(iParam0), 0, 5, 4, 809.66f, 1279.76f, 360.49f, 405, "", -1, 0, "", 0, 1, -1, 4, 4, 700, 2000, func_367(iParam0), 1, 0);
  			break;
  		
  		case 23:
  			func_366(uParam1, "Fanatic3", func_368(iParam0), 0, 5, 4, -915.6f, 6139.2f, 5.5f, 405, "", -1, 0, "", 0, 1, -1, 4, 2, 700, 2000, func_367(iParam0), 0, 1);
  			break;
  		
  		case 24:
  			func_366(uParam1, "Hao1", func_368(iParam0), 0, 6, 4, -72.29f, -1260.63f, 28.14f, 66, "", -1, 0, "controller_Races", 13, 1, -1, 4, 2, 2000, 500, func_367(iParam0), 0, 1);
  			break;
  		
  		case 25:
  			func_366(uParam1, "Hunting1", func_368(iParam0), 0, 7, 4, 1804.32f, 3931.33f, 32.82f, 66, "", -1, 0, "", 174, 1, 26, 4, 4, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 26:
  			func_366(uParam1, "Hunting2", func_368(iParam0), 0, 7, 4, -684.17f, 5839.16f, 16.09f, 384, "", 99, 0, "", 7, 0, -1, 4, 4, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 27:
  			func_366(uParam1, "Josh1", func_368(iParam0), 0, 8, 4, -1104.93f, 291.25f, 64.3f, 66, "", -1, 0, "forSaleSigns", 0, 1, 28, 4, 4, 0, 2359, func_367(iParam0), 1, 0);
  			break;
  		
  		case 28:
  			func_366(uParam1, "Josh2", func_368(iParam0), 0, 8, 4, 565.39f, -1772.88f, 29.77f, 385, "", 105, 0, "", 0, 0, 29, 4, 4, 0, 2359, func_367(iParam0), 1, 1);
  			break;
  		
  		case 29:
  			func_366(uParam1, "Josh3", func_368(iParam0), 0, 8, 4, 565.39f, -1772.88f, 29.77f, 385, "", -1, 16, "", 0, 0, 30, 4, 4, 0, 2359, func_367(iParam0), 1, 1);
  			break;
  		
  		case 30:
  			func_366(uParam1, "Josh4", func_368(iParam0), 0, 8, 4, -1104.93f, 291.25f, 64.3f, 385, "", -1, 36, "", 0, 0, -1, 4, 4, 0, 2359, func_367(iParam0), 1, 0);
  			break;
  		
  		case 31:
  			func_366(uParam1, "Maude1", func_368(iParam0), 0, 9, 4, 2726.1f, 4145f, 44.3f, 66, "", -1, 0, "BailBond_Launcher", 0, 1, -1, 4, 4, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 32:
  			func_366(uParam1, "Minute1", func_368(iParam0), 0, 10, 4, 327.85f, 3405.7f, 35.73f, 66, "", -1, 0, "", 0, 1, 33, 4, 4, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 33:
  			func_366(uParam1, "Minute2", func_368(iParam0), 0, 10, 4, 18f, 4527f, 105f, 386, "", -1, 10, "", 0, 0, 34, 4, 4, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 34:
  			func_366(uParam1, "Minute3", func_368(iParam0), 0, 10, 4, -303.82f, 6211.29f, 31.05f, 386, "", -1, 10, "", 0, 0, -1, 4, 4, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 35:
  			func_366(uParam1, "MrsPhilips1", func_368(iParam0), 0, 11, 4, 1972.59f, 3816.43f, 32.42f, 66, "", -1, 0, "ambient_MrsPhilips", 0, 1, -1, 4, 4, 0, 2359, func_367(iParam0), 0, 0);
  			break;
  		
  		case 36:
  			func_366(uParam1, "MrsPhilips2", func_368(iParam0), 0, 11, 4, 0f, 0f, 0f, -1, "", -1, 0, "", 0, 1, -1, 4, 4, 0, 2359, func_367(iParam0), 0, 0);
  			break;
  		
  		case 37:
  			func_366(uParam1, "Nigel1", func_368(iParam0), 0, 12, 4, -1097.16f, 790.01f, 164.52f, 66, "", -1, 0, "", 177, 1, -1, 1, 4, 0, 2359, func_367(iParam0), 1, 0);
  			break;
  		
  		case 38:
  			func_366(uParam1, "Nigel1A", func_368(iParam0), 0, 12, 1, -558.65f, 284.49f, 90.86f, 149, "NIGITEMS", 100, 0, "", 0, 0, 42, 4, 4, 0, 2359, func_367(iParam0), 1, 1);
  			break;
  		
  		case 39:
  			func_366(uParam1, "Nigel1B", func_368(iParam0), 0, 12, 1, -1034.15f, 366.08f, 80.11f, 149, "", 100, 0, "", 0, 0, 42, 4, 4, 700, 2000, func_367(iParam0), 1, 1);
  			break;
  		
  		case 40:
  			func_366(uParam1, "Nigel1C", func_368(iParam0), 0, 12, 1, -623.91f, -266.17f, 37.76f, 149, "", 100, 0, "", 0, 0, 42, 4, 4, 700, 2000, func_367(iParam0), 1, 1);
  			break;
  		
  		case 41:
  			func_366(uParam1, "Nigel1D", func_368(iParam0), 0, 12, 1, -1096.85f, 67.68f, 52.95f, 149, "", 100, 0, "", 0, 0, 42, 4, 4, 700, 2000, func_367(iParam0), 1, 1);
  			break;
  		
  		case 42:
  			func_366(uParam1, "Nigel2", func_368(iParam0), 0, 12, 4, -1310.7f, -640.22f, 26.54f, 149, "", -1, 8, "", 0, 0, 43, 4, 4, 0, 2359, func_367(iParam0), 1, 1);
  			break;
  		
  		case 43:
  			func_366(uParam1, "Nigel3", func_368(iParam0), 0, 12, 4, -44.75f, -1288.67f, 28.21f, 149, "", -1, 16, "postRC_Nigel3", 0, 0, -1, 4, 4, 0, 2359, func_367(iParam0), 1, 1);
  			break;
  		
  		case 44:
  			func_366(uParam1, "Omega1", func_368(iParam0), 0, 13, 4, 2468.51f, 3437.39f, 49.9f, 66, "", -1, 0, "spaceshipParts", 0, 1, 45, 4, 2, 0, 2359, func_367(iParam0), 0, 0);
  			break;
  		
  		case 45:
  			func_366(uParam1, "Omega2", func_368(iParam0), 0, 13, 4, 2319.44f, 2583.58f, 46.76f, 387, "", 107, 0, "", 0, 0, -1, 4, 2, 0, 2359, func_367(iParam0), 0, 0);
  			break;
  		
  		case 46:
  			func_366(uParam1, "Paparazzo1", func_368(iParam0), 0, 14, 4, -149.75f, 285.81f, 93.67f, 66, "", -1, 0, "", 0, 1, 47, 4, 2, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 47:
  			func_366(uParam1, "Paparazzo2", func_368(iParam0), 0, 14, 4, -70.71f, 301.43f, 106.79f, 389, "", -1, 8, "", 0, 0, 48, 4, 2, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 48:
  			func_366(uParam1, "Paparazzo3", func_368(iParam0), 0, 14, 4, -257.22f, 292.85f, 90.63f, 389, "", -1, 8, "", 183, 1, -1, 2, 2, 0, 2359, func_367(iParam0), 0, 0);
  			break;
  		
  		case 49:
  			func_366(uParam1, "Paparazzo3A", func_368(iParam0), 0, 14, 2, 305.52f, 157.19f, 102.94f, 389, "PAPPHOTO", 102, 0, "", 0, 0, 51, 4, 2, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 50:
  			func_366(uParam1, "Paparazzo3B", func_368(iParam0), 0, 14, 2, 1040.96f, -534.42f, 60.17f, 389, "", 102, 0, "", 0, 0, 51, 4, 2, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 51:
  			func_366(uParam1, "Paparazzo4", func_368(iParam0), 0, 14, 4, -484.2f, 229.68f, 82.21f, 389, "", -1, 8, "", 0, 1, -1, 4, 2, 0, 2359, func_367(iParam0), 0, 0);
  			break;
  		
  		case 52:
  			func_366(uParam1, "Rampage1", func_368(iParam0), 0, 15, 4, 908f, 3643.7f, 32.2f, 66, "", -1, 0, "", 0, 1, 54, 4, 4, 0, 2359, func_367(iParam0), 0, 0);
  			break;
  		
  		case 54:
  			func_366(uParam1, "Rampage3", func_368(iParam0), 0, 15, 4, 465.1f, -1849.3f, 27.8f, 84, "", -1, 0, "", 0, 1, 55, 4, 4, 0, 2359, func_367(iParam0), 1, 0);
  			break;
  		
  		case 55:
  			func_366(uParam1, "Rampage4", func_368(iParam0), 0, 15, 4, -161f, -1669.7f, 33f, 84, "", -1, 0, "", 0, 0, 56, 4, 4, 0, 2359, func_367(iParam0), 1, 0);
  			break;
  		
  		case 56:
  			func_366(uParam1, "Rampage5", func_368(iParam0), 0, 15, 4, -1298.2f, 2504.14f, 21.09f, 84, "", -1, 0, "", 0, 0, 53, 4, 4, 0, 2359, func_367(iParam0), 0, 0);
  			break;
  		
  		case 53:
  			func_366(uParam1, "Rampage2", func_368(iParam0), 0, 15, 4, 1181.5f, -400.1f, 67.5f, 84, "", -1, 0, "rampage_controller", 0, 0, -1, 4, 4, 0, 2359, func_367(iParam0), 1, 0);
  			break;
  		
  		case 57:
  			func_366(uParam1, "TheLastOne", func_368(iParam0), 0, 16, 4, -1298.98f, 4640.16f, 105.67f, 66, "", 133, 1, "", 0, 1, -1, 4, 2, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 58:
  			func_366(uParam1, "Tonya1", func_368(iParam0), 0, 17, 4, -14.39f, -1472.69f, 29.58f, 66, "AM_H_RCFS", -1, 0, "ambient_TonyaCall", 24, 1, 59, 4, 2, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 59:
  			func_366(uParam1, "Tonya2", func_368(iParam0), 0, 17, 4, -14.39f, -1472.69f, 29.58f, 388, "", -1, 48, "ambient_Tonya", 185, 0, 60, 4, 2, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 60:
  			func_366(uParam1, "Tonya3", func_368(iParam0), 0, 17, 4, 0f, 0f, 0f, -1, "", -1, 0, "", 187, 0, 61, 4, 2, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 61:
  			func_366(uParam1, "Tonya4", func_368(iParam0), 0, 17, 4, 0f, 0f, 0f, -1, "", -1, 0, "", 0, 0, 62, 4, 2, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		case 62:
  			func_366(uParam1, "Tonya5", func_368(iParam0), 0, 17, 4, -14.39f, -1472.69f, 29.58f, 388, "", -1, 48, "", 0, 0, -1, 4, 2, 0, 2359, func_367(iParam0), 0, 1);
  			break;
  		
  		default:
  			break;
  	}
  }
  
  void func_366(var uParam0, char* sParam1, struct<2> Param2, int iParam3, int iParam4, int iParam5, struct<3> Param6, int iParam7, char* sParam8, int iParam9, int iParam10, char* sParam11, int iParam12, int iParam13, int iParam14, int iParam15, int iParam16, int iParam17, int iParam18, var uParam19, int iParam20, int iParam21)
  {
  	uParam0->f_4 = iParam4;
  	*uParam0 = sParam1;
  	uParam0->f_1 = { Param2 };
  	uParam0->f_3 = iParam3;
  	uParam0->f_5 = iParam5;
  	uParam0->f_6 = { Param6 };
  	uParam0->f_9 = iParam7;
  	StringCopy(&(uParam0->f_10), sParam8, 16);
  	uParam0->f_14 = iParam9;
  	uParam0->f_15 = iParam10;
  	StringCopy(&(uParam0->f_16), sParam11, 24);
  	uParam0->f_22 = iParam12;
  	uParam0->f_23 = iParam13;
  	uParam0->f_24 = iParam14;
  	uParam0->f_25 = iParam15;
  	uParam0->f_26 = iParam16;
  	uParam0->f_27 = iParam17;
  	uParam0->f_28 = iParam18;
  	uParam0->f_29 = uParam19;
  	uParam0->f_30 = iParam20;
  	uParam0->f_31 = iParam21;
  }
  
  int func_367(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 0;
  			break;
  		
  		case 1:
  			return 0;
  			break;
  		
  		case 2:
  			return 1;
  			break;
  		
  		case 3:
  			return 1;
  			break;
  		
  		case 4:
  			return 0;
  			break;
  		
  		case 5:
  			return 1;
  			break;
  		
  		case 6:
  			return 1;
  			break;
  		
  		case 7:
  			return 0;
  			break;
  		
  		case 8:
  			return 1;
  			break;
  		
  		case 9:
  			return 0;
  			break;
  		
  		case 10:
  			return 0;
  			break;
  		
  		case 11:
  			return 0;
  			break;
  		
  		case 12:
  			return 1;
  			break;
  		
  		case 13:
  			return 0;
  			break;
  		
  		case 14:
  			return 1;
  			break;
  		
  		case 15:
  			return 0;
  			break;
  		
  		case 16:
  			return 1;
  			break;
  		
  		case 17:
  			return 1;
  			break;
  		
  		case 18:
  			return 1;
  			break;
  		
  		case 19:
  			return 1;
  			break;
  		
  		case 20:
  			return 1;
  			break;
  		
  		case 21:
  			return 1;
  			break;
  		
  		case 22:
  			return 1;
  			break;
  		
  		case 23:
  			return 1;
  			break;
  		
  		case 24:
  			return 1;
  			break;
  		
  		case 25:
  			return 1;
  			break;
  		
  		case 26:
  			return 1;
  			break;
  		
  		case 27:
  			return 0;
  			break;
  		
  		case 28:
  			return 1;
  			break;
  		
  		case 29:
  			return 1;
  			break;
  		
  		case 30:
  			return 1;
  			break;
  		
  		case 31:
  			return 0;
  			break;
  		
  		case 32:
  			return 1;
  			break;
  		
  		case 33:
  			return 1;
  			break;
  		
  		case 34:
  			return 1;
  			break;
  		
  		case 35:
  			return 0;
  			break;
  		
  		case 36:
  			return 0;
  			break;
  		
  		case 37:
  			return 0;
  			break;
  		
  		case 38:
  			return 1;
  			break;
  		
  		case 39:
  			return 1;
  			break;
  		
  		case 40:
  			return 1;
  			break;
  		
  		case 41:
  			return 1;
  			break;
  		
  		case 42:
  			return 1;
  			break;
  		
  		case 43:
  			return 1;
  			break;
  		
  		case 44:
  			return 0;
  			break;
  		
  		case 45:
  			return 0;
  			break;
  		
  		case 46:
  			return 1;
  			break;
  		
  		case 47:
  			return 1;
  			break;
  		
  		case 48:
  			return 0;
  			break;
  		
  		case 49:
  			return 1;
  			break;
  		
  		case 50:
  			return 1;
  			break;
  		
  		case 51:
  			return 1;
  			break;
  		
  		case 52:
  			return 1;
  			break;
  		
  		case 54:
  			return 1;
  			break;
  		
  		case 55:
  			return 1;
  			break;
  		
  		case 56:
  			return 1;
  			break;
  		
  		case 53:
  			return 1;
  			break;
  		
  		case 57:
  			return 1;
  			break;
  		
  		case 58:
  			return 1;
  			break;
  		
  		case 59:
  			return 1;
  			break;
  		
  		case 60:
  			return 1;
  			break;
  		
  		case 61:
  			return 1;
  			break;
  		
  		case 62:
  			return 1;
  			break;
  		
  		default:
  			break;
  	}
  	return 0;
  }
  
  struct<2> func_368(int iParam0)
  {
  	struct<2> Var0;
  	char[] cVar1[8];
  	
  	StringCopy(&Var0, "", 8);
  	cVar1 = { func_363(iParam0) };
  	if (MISC::IS_STRING_NULL_OR_EMPTY(&cVar1))
  	{
  	}
  	else
  	{
  		StringCopy(&Var0, "RC_", 8);
  		StringConCat(&Var0, &cVar1, 8);
  	}
  	return Var0;
  }
  
  int func_369(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 69:
  		case 70:
  			return func_370(Global_111638.f_9080.f_99.f_205[10]);
  			break;
  		
  		case 74:
  		case 75:
  			return func_370(Global_111638.f_9080.f_99.f_205[8]);
  			break;
  		
  		case 84:
  		case 85:
  			return func_370(Global_111638.f_9080.f_99.f_205[11]);
  			break;
  		
  		case 90:
  			return func_370(Global_111638.f_9080.f_99.f_205[7]);
  			break;
  		
  		case 93:
  			return func_370(Global_111638.f_9080.f_99.f_205[9]);
  			break;
  	}
  	return 0;
  }
  
  int func_370(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 1:
  		case 3:
  		case 5:
  		case 6:
  		case 8:
  			return 0;
  			break;
  		
  		case 2:
  		case 4:
  		case 7:
  		case 9:
  			return 1;
  			break;
  	}
  	return -1;
  }
  
  int func_371(char* sParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = MISC::GET_HASH_KEY(sParam0);
  	iVar1 = func_372(iVar0, 1);
  	if (iVar1 == -1 && !bParam1)
  	{
  	}
  	return iVar1;
  }
  
  int func_372(int iParam0, bool bParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 94)
  	{
  		if (Global_89532[iVar0 /*34*/].f_6 == iParam0)
  		{
  			return iVar0;
  		}
  		iVar0++;
  	}
  	if (!bParam1)
  	{
  	}
  	return -1;
  }
  
  void func_373()
  {
  	char* sVar0;
  	
  	switch (iLocal_1167)
  	{
  		case 0:
  			sVar0 = "ASS_ML_TXT_BB";
  			break;
  		
  		case 1:
  			sVar0 = "ASS_ML_TXT_YT";
  			break;
  		
  		case 2:
  			sVar0 = "ASS_ML_TXT_WW";
  			break;
  		
  		case 3:
  			sVar0 = "ASS_ML_TXT_BK";
  			break;
  	}
  	if (!MISC::IS_STRING_NULL_OR_EMPTY(sVar0))
  	{
  		func_374(12, 1, sVar0, 1, 0, 0, 0, 0, 1, 0, 1);
  	}
  }
  
  int func_374(int iParam0, int iParam1, char* sParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, bool bParam8, int iParam9, int iParam10)
  {
  	int iVar0;
  	char* sVar1;
  	int iVar2;
  	char* sVar3;
  	int iVar4;
  	char* sVar5;
  	char* sVar6;
  	
  	MISC::CLEAR_BIT(&Global_7356, 10);
  	iVar0 = 0;
  	sVar1 = "NULL";
  	iVar2 = -99;
  	sVar3 = "NULL";
  	iVar4 = 0;
  	sVar5 = "NULL";
  	sVar6 = "NULL";
  	if (func_376(iParam0, sParam2, iParam3, iVar0, sVar1, sVar3, iVar2, iParam4, iParam5, iParam6, bParam8, iParam9, iParam10, iVar4, sVar5, sVar6, iParam1) == 1)
  	{
  		if (bParam8 == 1)
  		{
  			Global_8063 = iParam7;
  			Global_7966[3 /*6*/] = { func_375(iParam0) };
  			Global_8043 = iParam0;
  			MISC::SET_BIT(&Global_7356, 1);
  			MISC::SET_BIT(&Global_7356, 7);
  		}
  		return 1;
  	}
  	return 0;
  }
  
  struct<4> func_375(int iParam0)
  {
  	return Global_1798[iParam0 /*29*/].f_3;
  }
  
  int func_376(var uParam0, char* sParam1, int iParam2, int iParam3, char* sParam4, char* sParam5, int iParam6, int iParam7, var uParam8, var uParam9, bool bParam10, var uParam11, var uParam12, int iParam13, char* sParam14, char* sParam15, int iParam16)
  {
  	int iVar0;
  	
  	if (iParam13 > 99)
  	{
  	}
  	if (MISC::ARE_STRINGS_EQUAL(sParam14, sParam15))
  	{
  	}
  	func_33();
  	iVar0 = 0;
  	switch (iParam16)
  	{
  		case 0:
  			if (Global_19486 == 0)
  			{
  				iVar0 = 0;
  			}
  			else
  			{
  				iVar0 = 1;
  			}
  			break;
  		
  		case 2:
  			if (Global_19486 == 2)
  			{
  				iVar0 = 0;
  			}
  			else
  			{
  				iVar0 = 1;
  			}
  			break;
  		
  		case 1:
  			if (Global_19486 == 1)
  			{
  				iVar0 = 0;
  			}
  			else
  			{
  				iVar0 = 1;
  			}
  			break;
  		
  		default:
  			iVar0 = 0;
  			break;
  	}
  	if (iVar0 == 0)
  	{
  		if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  		{
  			if (PED::IS_PED_SWIMMING_UNDER_WATER(PLAYER::PLAYER_PED_ID()))
  			{
  				return 0;
  			}
  		}
  		if (Global_111638.f_14046[Global_19486 /*20*/].f_17 == 1)
  		{
  			return 0;
  		}
  		if (SCRIPT::_GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH(joaat("apptextmessage")) > 0)
  		{
  			return 0;
  		}
  		if (SCRIPT::_GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH(joaat("apptextmessage")) > 0)
  		{
  			return 0;
  		}
  	}
  	if (func_386() == 0)
  	{
  		func_384();
  		return 0;
  	}
  	func_383(Global_21872);
  	StringCopy(&(Global_111638.f_14136[Global_21872 /*104*/]), sParam1, 64);
  	Global_111638.f_14136[Global_21872 /*104*/].f_17 = uParam0;
  	if (iParam2 == 0)
  	{
  	}
  	else
  	{
  		Global_111638.f_14136[Global_21872 /*104*/].f_24 = iParam2;
  	}
  	Global_111638.f_14136[Global_21872 /*104*/].f_25 = iParam7;
  	Global_111638.f_14136[Global_21872 /*104*/].f_26 = uParam8;
  	Global_111638.f_14136[Global_21872 /*104*/].f_29 = uParam9;
  	Global_111638.f_14136[Global_21872 /*104*/].f_30 = uParam12;
  	Global_111638.f_14136[Global_21872 /*104*/].f_31 = uParam11;
  	Global_111638.f_14136[Global_21872 /*104*/].f_28 = 0;
  	Global_111638.f_14136[Global_21872 /*104*/].f_32 = iParam3;
  	StringCopy(&(Global_111638.f_14136[Global_21872 /*104*/].f_33), sParam4, 64);
  	Global_111638.f_14136[Global_21872 /*104*/].f_49 = iParam6;
  	StringCopy(&(Global_111638.f_14136[Global_21872 /*104*/].f_50), sParam5, 64);
  	Global_111638.f_14136[Global_21872 /*104*/].f_66 = iParam13;
  	StringCopy(&(Global_111638.f_14136[Global_21872 /*104*/].f_67), sParam14, 64);
  	StringCopy(&(Global_111638.f_14136[Global_21872 /*104*/].f_83), sParam15, 64);
  	if (MISC::IS_BIT_SET(Global_7356, 10))
  	{
  		Global_111638.f_14136[Global_21872 /*104*/].f_99[0] = 1;
  		Global_111638.f_14136[Global_21872 /*104*/].f_99[1] = 1;
  		Global_111638.f_14136[Global_21872 /*104*/].f_99[2] = 1;
  		Global_8062 = 4;
  		func_382(0);
  		func_382(2);
  		func_382(1);
  	}
  	else
  	{
  		func_33();
  		switch (iParam16)
  		{
  			case 3:
  				Global_111638.f_14136[Global_21872 /*104*/].f_99[Global_19486] = 1;
  				break;
  			
  			case 0:
  				Global_111638.f_14136[Global_21872 /*104*/].f_99[0] = 1;
  				break;
  			
  			case 2:
  				Global_111638.f_14136[Global_21872 /*104*/].f_99[2] = 1;
  				break;
  			
  			case 1:
  				Global_111638.f_14136[Global_21872 /*104*/].f_99[1] = 1;
  				break;
  		}
  		if (iParam16 == 3)
  		{
  			switch (Global_19486)
  			{
  				case 0:
  					func_382(0);
  					Global_8062 = 0;
  					break;
  				
  				case 1:
  					func_382(1);
  					Global_8062 = 1;
  					break;
  				
  				case 2:
  					func_382(2);
  					Global_8062 = 2;
  					break;
  				
  				case 3:
  					func_382(3);
  					Global_8062 = 3;
  					break;
  				
  				default:
  					Global_8062 = 4;
  					break;
  				}
  			}
  	}
  	if (iParam7 == 1)
  	{
  		if (MISC::IS_BIT_SET(Global_7356, 10))
  		{
  			Global_111638.f_14046[0 /*20*/].f_17 = 1;
  			Global_111638.f_14046[1 /*20*/].f_17 = 1;
  			Global_111638.f_14046[2 /*20*/].f_17 = 1;
  		}
  		else
  		{
  			switch (iParam16)
  			{
  				case 3:
  					Global_111638.f_14046[Global_19486 /*20*/].f_17 = 1;
  					break;
  				
  				case 0:
  					Global_111638.f_14046[0 /*20*/].f_17 = 1;
  					break;
  				
  				case 2:
  					Global_111638.f_14046[2 /*20*/].f_17 = 1;
  					break;
  				
  				case 1:
  					Global_111638.f_14046[1 /*20*/].f_17 = 1;
  					break;
  				}
  			}
  	}
  	Global_21874[Global_21872] = 0;
  	if (bParam10)
  	{
  		func_33();
  		if (Global_19429)
  		{
  			StringCopy(&Global_19475, "Phone_SoundSet_Prologue", 24);
  		}
  		else
  		{
  			switch (Global_19486)
  			{
  				case 0:
  					StringCopy(&Global_19475, "Phone_SoundSet_Michael", 24);
  					break;
  				
  				case 2:
  					StringCopy(&Global_19475, "Phone_SoundSet_Trevor", 24);
  					break;
  				
  				case 1:
  					StringCopy(&Global_19475, "Phone_SoundSet_Franklin", 24);
  					break;
  				
  				default:
  					StringCopy(&Global_19475, "Phone_SoundSet_Default", 24);
  					break;
  				}
  		}
  		if (!Global_8161[Global_19486 /*2811*/][0 /*281*/].f_259 == 1)
  		{
  			if (!func_381())
  			{
  				AUDIO::PLAY_SOUND_FRONTEND(-1, "Text_Arrive_Tone", &Global_19475, true);
  			}
  		}
  	}
  	if (!Global_19665)
  	{
  		if (Global_19486.f_1 == 6)
  		{
  			func_380(Global_19467, "SET_DATA_SLOT_EMPTY", 1f, -1082130432, -1082130432, -1082130432, -1082130432);
  			func_378(1);
  			func_380(Global_19467, "DISPLAY_VIEW", 1f, SYSTEM::TO_FLOAT(Global_19466), -1082130432, -1082130432, -1082130432);
  		}
  	}
  	func_377(uParam0, sParam1);
  	return 1;
  }
  
  void func_377(var uParam0, char* sParam1)
  {
  	if (!func_25())
  	{
  		return;
  	}
  	unk_0x6DFDEDC7A51E8DAE(uParam0, 1654525105, MISC::GET_HASH_KEY(sParam1), 0);
  }
  
  void func_378(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	
  	Global_21873 = 0;
  	Global_7961 = iParam0;
  	iVar0 = 0;
  	while (iVar0 < 9)
  	{
  		Global_7925[iVar0] = 0;
  		iVar0++;
  	}
  	iVar0 = 0;
  	while (iVar0 < 9)
  	{
  		iVar1 = 0;
  		if (func_12(14))
  		{
  			while (iVar1 < 34)
  			{
  				if (iParam0 == Global_7363[iVar1 /*15*/].f_11)
  				{
  					if (iVar0 == Global_7363[iVar1 /*15*/].f_4)
  					{
  						if (Global_7925[iVar0] == 0)
  						{
  							Global_7889[iVar0] = iVar1;
  							if (iVar1 == 3)
  							{
  								if (MISC::IS_BIT_SET(Global_7357, 3))
  								{
  									iVar2 = 42;
  									Global_19668 = 1;
  								}
  								else
  								{
  									iVar2 = 255;
  									Global_19668 = 0;
  								}
  								GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(Global_19467, "SET_DATA_SLOT");
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(1);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar0);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(Global_7363[iVar1 /*15*/].f_10);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(0);
  								func_105(&(Global_7363[iVar1 /*15*/]));
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar2);
  								GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  							}
  							if (Global_2460675)
  							{
  								if (iVar1 == 14)
  								{
  									func_379(Global_19467, "SET_DATA_SLOT", SYSTEM::TO_FLOAT(1), SYSTEM::TO_FLOAT(iVar0), SYSTEM::TO_FLOAT(Global_7363[iVar1 /*15*/].f_10), SYSTEM::TO_FLOAT(Global_21868), -1f, &(Global_7363[iVar1 /*15*/]), 0, 0, 0, 0);
  								}
  							}
  							Global_7925[iVar0] = 1;
  						}
  					}
  				}
  				iVar1++;
  			}
  		}
  		else
  		{
  			while (iVar1 < 34)
  			{
  				if (iParam0 == Global_7363[iVar1 /*15*/].f_11)
  				{
  					if (iVar0 == Global_7363[iVar1 /*15*/].f_4)
  					{
  						if (Global_7925[iVar0] == 0)
  						{
  							Global_7889[iVar0] = iVar1;
  							if (iVar1 == 1)
  							{
  								iVar3 = 0;
  								while (iVar3 < 35)
  								{
  									if (Global_111638.f_14136[iVar3 /*104*/].f_24 != 0)
  									{
  										if (Global_111638.f_14136[iVar3 /*104*/].f_28 == 0)
  										{
  											if (Global_111638.f_14136[iVar3 /*104*/].f_99[Global_19486] == 1)
  											{
  												Global_21873++;
  											}
  										}
  									}
  									iVar3++;
  								}
  								func_379(Global_19467, "SET_DATA_SLOT", SYSTEM::TO_FLOAT(1), SYSTEM::TO_FLOAT(iVar0), SYSTEM::TO_FLOAT(Global_7363[iVar1 /*15*/].f_10), SYSTEM::TO_FLOAT(Global_21873), -1f, &(Global_7363[iVar1 /*15*/]), 0, 0, 0, 0);
  							}
  							else if (iVar1 == 7)
  							{
  								if (Global_76622)
  								{
  									iVar4 = 0;
  									iVar4 = Global_4268499;
  									iVar5 = 0;
  									while (iVar5 < 12)
  									{
  										if (Global_4268500[iVar5 /*104*/].f_24 != 0)
  										{
  											if (Global_4268500[iVar5 /*104*/].f_28 == 0)
  											{
  												if (Global_4268500[iVar5 /*104*/].f_99[Global_19486] == 1)
  												{
  													iVar4++;
  												}
  											}
  										}
  										iVar5++;
  									}
  									func_379(Global_19467, "SET_DATA_SLOT", SYSTEM::TO_FLOAT(1), SYSTEM::TO_FLOAT(iVar0), SYSTEM::TO_FLOAT(Global_7363[iVar1 /*15*/].f_10), SYSTEM::TO_FLOAT(iVar4), -1f, &(Global_7363[iVar1 /*15*/]), 0, 0, 0, 0);
  								}
  								else
  								{
  									switch (Global_19486)
  									{
  										case 0:
  											iVar6 = Global_42607;
  											break;
  										
  										case 1:
  											iVar6 = Global_42608;
  											break;
  										
  										case 2:
  											iVar6 = Global_42609;
  											break;
  										
  										default:
  											break;
  									}
  									func_379(Global_19467, "SET_DATA_SLOT", SYSTEM::TO_FLOAT(1), SYSTEM::TO_FLOAT(iVar0), SYSTEM::TO_FLOAT(Global_7363[iVar1 /*15*/].f_10), SYSTEM::TO_FLOAT(iVar6), -1f, &(Global_7363[iVar1 /*15*/]), 0, 0, 0, 0);
  								}
  							}
  							else if (iVar1 == 14)
  							{
  								func_379(Global_19467, "SET_DATA_SLOT", SYSTEM::TO_FLOAT(1), SYSTEM::TO_FLOAT(iVar0), SYSTEM::TO_FLOAT(Global_7363[iVar1 /*15*/].f_10), SYSTEM::TO_FLOAT(Global_21868), -1f, &(Global_7363[iVar1 /*15*/]), 0, 0, 0, 0);
  							}
  							else if (iVar1 == 20)
  							{
  								GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(Global_19467, "SET_DATA_SLOT");
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(1);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar0);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(Global_7363[iVar1 /*15*/].f_10);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(0);
  								func_105(&(Global_7363[iVar1 /*15*/]));
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(Global_7362);
  								GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  							}
  							else if (iVar1 == 2)
  							{
  								if (MISC::IS_BIT_SET(Global_7357, 6))
  								{
  									iVar7 = 42;
  								}
  								else
  								{
  									iVar7 = 255;
  								}
  								GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(Global_19467, "SET_DATA_SLOT");
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(1);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar0);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(Global_7363[iVar1 /*15*/].f_10);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(0);
  								func_105(&(Global_7363[iVar1 /*15*/]));
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar7);
  								GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  							}
  							else if (iVar1 == 3)
  							{
  								if (MISC::IS_BIT_SET(Global_7357, 3))
  								{
  									iVar8 = 42;
  									Global_19668 = 1;
  								}
  								else
  								{
  									iVar8 = 255;
  									Global_19668 = 0;
  								}
  								GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(Global_19467, "SET_DATA_SLOT");
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(1);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar0);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(Global_7363[iVar1 /*15*/].f_10);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(0);
  								func_105(&(Global_7363[iVar1 /*15*/]));
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar8);
  								GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  							}
  							else if (iVar1 == 8)
  							{
  								GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(Global_19467, "SET_DATA_SLOT");
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(1);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar0);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(Global_7363[iVar1 /*15*/].f_10);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(0);
  								func_105(&(Global_7363[iVar1 /*15*/]));
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(42);
  								GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  							}
  							else if ((iVar1 == 23 && MISC::ARE_STRINGS_EQUAL(&(Global_7363[iVar1 /*15*/]), "CELL_BENWEB")) && MISC::IS_BIT_SET(Global_7357, 6))
  							{
  								GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(Global_19467, "SET_DATA_SLOT");
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(1);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar0);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(Global_7363[iVar1 /*15*/].f_10);
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(0);
  								func_105(&(Global_7363[iVar1 /*15*/]));
  								GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(42);
  								GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  							}
  							else if (Global_7363[iVar1 /*15*/].f_10 == 57 && iVar1 == 23)
  							{
  								iVar9 = 0;
  								iVar9 = Global_1626881.f_1;
  								func_379(Global_19467, "SET_DATA_SLOT", SYSTEM::TO_FLOAT(1), SYSTEM::TO_FLOAT(iVar0), SYSTEM::TO_FLOAT(Global_7363[iVar1 /*15*/].f_10), SYSTEM::TO_FLOAT(iVar9), -1f, &(Global_7363[iVar1 /*15*/]), 0, 0, 0, 0);
  							}
  							else
  							{
  								func_379(Global_19467, "SET_DATA_SLOT", SYSTEM::TO_FLOAT(1), SYSTEM::TO_FLOAT(iVar0), SYSTEM::TO_FLOAT(Global_7363[iVar1 /*15*/].f_10), SYSTEM::TO_FLOAT(0), -1f, &(Global_7363[iVar1 /*15*/]), 0, 0, 0, 0);
  							}
  							Global_7925[iVar0] = 1;
  						}
  					}
  				}
  				iVar1++;
  			}
  		}
  		iVar0++;
  	}
  }
  
  void func_379(int iParam0, char* sParam1, float fParam2, float fParam3, float fParam4, float fParam5, float fParam6, char* sParam7, char* sParam8, char* sParam9, char* sParam10, char* sParam11)
  {
  	GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(iParam0, sParam1);
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(SYSTEM::ROUND(fParam2));
  	if (fParam3 != -1f)
  	{
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(SYSTEM::ROUND(fParam3));
  	}
  	if (fParam4 != -1f)
  	{
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(SYSTEM::ROUND(fParam4));
  	}
  	if (fParam5 != -1f)
  	{
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(SYSTEM::ROUND(fParam5));
  	}
  	if (fParam6 != -1f)
  	{
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(SYSTEM::ROUND(fParam6));
  	}
  	if (!MISC::IS_STRING_NULL_OR_EMPTY(sParam7))
  	{
  		func_105(sParam7);
  	}
  	if (!MISC::IS_STRING_NULL_OR_EMPTY(sParam8))
  	{
  		func_105(sParam8);
  	}
  	if (!MISC::IS_STRING_NULL_OR_EMPTY(sParam9))
  	{
  		func_105(sParam9);
  	}
  	if (!MISC::IS_STRING_NULL_OR_EMPTY(sParam10))
  	{
  		func_105(sParam10);
  	}
  	if (!MISC::IS_STRING_NULL_OR_EMPTY(sParam11))
  	{
  		func_105(sParam11);
  	}
  	GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  }
  
  void func_380(int iParam0, char* sParam1, float fParam2, float fParam3, float fParam4, float fParam5, float fParam6)
  {
  	GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(iParam0, sParam1);
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(SYSTEM::ROUND(fParam2));
  	if (fParam3 != -1f)
  	{
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(SYSTEM::ROUND(fParam3));
  	}
  	if (fParam4 != -1f)
  	{
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(SYSTEM::ROUND(fParam4));
  	}
  	if (fParam5 != -1f)
  	{
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(SYSTEM::ROUND(fParam5));
  	}
  	if (fParam6 != -1f)
  	{
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(SYSTEM::ROUND(fParam6));
  	}
  	GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  }
  
  bool func_381()
  {
  	return Global_1312877;
  }
  
  void func_382(int iParam0)
  {
  	var uVar0;
  	var uVar1;
  	
  	uVar0 = Global_111638.f_14046[iParam0 /*20*/].f_8;
  	uVar0 = uVar0;
  	uVar1 = uVar1;
  }
  
  void func_383(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	var uVar4;
  	int iVar5;
  	
  	iVar0 = CLOCK::GET_CLOCK_SECONDS();
  	iVar1 = CLOCK::GET_CLOCK_MINUTES();
  	iVar2 = CLOCK::GET_CLOCK_HOURS();
  	iVar3 = CLOCK::GET_CLOCK_DAY_OF_MONTH();
  	uVar4 = CLOCK::GET_CLOCK_MONTH() + 1;
  	iVar5 = CLOCK::GET_CLOCK_YEAR();
  	Global_111638.f_14136[iParam0 /*104*/].f_18 = iVar0;
  	Global_111638.f_14136[iParam0 /*104*/].f_18.f_1 = iVar1;
  	Global_111638.f_14136[iParam0 /*104*/].f_18.f_2 = iVar2;
  	Global_111638.f_14136[iParam0 /*104*/].f_18.f_3 = iVar3;
  	Global_111638.f_14136[iParam0 /*104*/].f_18.f_4 = uVar4;
  	Global_111638.f_14136[iParam0 /*104*/].f_18.f_5 = iVar5;
  }
  
  void func_384()
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	if (Global_76622)
  	{
  		iVar0 = 24;
  		iVar1 = 33;
  	}
  	else
  	{
  		iVar0 = 0;
  		iVar1 = 20;
  	}
  	iVar2 = iVar0;
  	Global_21872 = 34;
  	Global_111638.f_14136[Global_21872 /*104*/].f_18 = -1;
  	Global_111638.f_14136[Global_21872 /*104*/].f_18.f_1 = 0;
  	Global_111638.f_14136[Global_21872 /*104*/].f_18.f_2 = 0;
  	Global_111638.f_14136[Global_21872 /*104*/].f_18.f_3 = 0;
  	Global_111638.f_14136[Global_21872 /*104*/].f_18.f_5 = 99999;
  	while (iVar2 < iVar1)
  	{
  		if (!func_385(Global_111638.f_14136[iVar2 /*104*/].f_18, Global_111638.f_14136[Global_21872 /*104*/].f_18))
  		{
  			Global_21872 = iVar2;
  		}
  		iVar2++;
  	}
  	Global_111638.f_14136[Global_21872 /*104*/].f_24 = 1;
  }
  
  int func_385(struct<6> Param0, struct<6> Param1)
  {
  	struct<4> Var0;
  	struct<4> Var1;
  	int iVar2;
  	int iVar3;
  	
  	if (Param0.f_5 < Param1.f_5)
  	{
  		return 0;
  	}
  	if (Param0.f_5 > Param1.f_5)
  	{
  		return 1;
  	}
  	if (Param0.f_5 == Param1.f_5)
  	{
  		if (Param0.f_4 < Param1.f_4)
  		{
  			return 0;
  		}
  		if (Param0.f_4 > Param1.f_4)
  		{
  			return 1;
  		}
  		if (Param0.f_4 == Param1.f_4)
  		{
  			Var0 = Param0;
  			Var0.f_1 = Param0.f_1 * 60;
  			Var0.f_2 = Param0.f_2 * 3600;
  			Var0.f_3 = (Param0.f_3 * 86400);
  			iVar2 = (((Var0 + Var0.f_1) + Var0.f_2) + Var0.f_3);
  			Var1 = Param1;
  			Var1.f_1 = Param1.f_1 * 60;
  			Var1.f_2 = Param1.f_2 * 3600;
  			Var1.f_3 = (Param1.f_3 * 86400);
  			iVar3 = (((Var1 + Var1.f_1) + Var1.f_2) + Var1.f_3);
  			if (iVar2 > iVar3 || iVar2 == iVar3)
  			{
  				return 1;
  			}
  			else
  			{
  				return 0;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_386()
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	if (Global_76622)
  	{
  		iVar0 = 24;
  		iVar1 = 33;
  	}
  	else
  	{
  		iVar0 = 0;
  		iVar1 = 20;
  	}
  	iVar2 = iVar0;
  	while (iVar2 < iVar1)
  	{
  		if (Global_111638.f_14136[iVar2 /*104*/].f_24 == 0)
  		{
  			Global_21872 = iVar2;
  			return 1;
  		}
  		iVar2++;
  	}
  	iVar2 = iVar0;
  	Global_21872 = 34;
  	Global_111638.f_14136[Global_21872 /*104*/].f_18 = -1;
  	Global_111638.f_14136[Global_21872 /*104*/].f_18.f_1 = 0;
  	Global_111638.f_14136[Global_21872 /*104*/].f_18.f_2 = 0;
  	Global_111638.f_14136[Global_21872 /*104*/].f_18.f_3 = 0;
  	Global_111638.f_14136[Global_21872 /*104*/].f_18.f_5 = 99999;
  	while (iVar2 < iVar1)
  	{
  		if (Global_111638.f_14136[iVar2 /*104*/].f_24 == 0 || Global_111638.f_14136[iVar2 /*104*/].f_24 == 1)
  		{
  			if (!func_385(Global_111638.f_14136[iVar2 /*104*/].f_18, Global_111638.f_14136[Global_21872 /*104*/].f_18))
  			{
  				Global_21872 = iVar2;
  			}
  		}
  		if (Global_111638.f_14136[iVar2 /*104*/].f_24 == 2)
  		{
  		}
  		iVar2++;
  	}
  	if (Global_21872 == 34)
  	{
  		return 0;
  	}
  	Global_111638.f_14136[Global_21872 /*104*/].f_99[0] = 0;
  	Global_111638.f_14136[Global_21872 /*104*/].f_99[1] = 0;
  	Global_111638.f_14136[Global_21872 /*104*/].f_99[2] = 0;
  	return 1;
  }
  
  int func_387(var uParam0)
  {
  	switch (iLocal_1167)
  	{
  		case 2:
  			if (!func_397(uParam0))
  			{
  				return 0;
  			}
  			break;
  		
  		case 1:
  			if (!func_396(uParam0))
  			{
  				return 0;
  			}
  			break;
  		
  		case 3:
  			if (!func_395(uParam0))
  			{
  				return 0;
  			}
  			break;
  		
  		case 0:
  			if (!func_388(uParam0))
  			{
  				return 0;
  			}
  			break;
  	}
  	return 1;
  }
  
  int func_388(var uParam0)
  {
  	if ((func_394(&(uParam0->f_34)) && func_390(&uLocal_1596)) && func_389())
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_389()
  {
  	STREAMING::REQUEST_MODEL(joaat("premier"));
  	STREAMING::REQUEST_MODEL(joaat("dilettante"));
  	STREAMING::REQUEST_MODEL(joaat("vigero"));
  	while ((!STREAMING::HAS_MODEL_LOADED(joaat("premier")) || !STREAMING::HAS_MODEL_LOADED(joaat("dilettante"))) || !STREAMING::HAS_MODEL_LOADED(joaat("vigero")))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  bool func_390(var uParam0)
  {
  	return func_391(uParam0);
  }
  
  int func_391(var uParam0)
  {
  	int iVar0;
  	
  	if (!uParam0->f_271)
  	{
  		return 1;
  	}
  	iVar0 = 0;
  	while (iVar0 < 15)
  	{
  		if (MISC::IS_BIT_SET((*uParam0)[iVar0 /*18*/], 30))
  		{
  			if (!MISC::IS_BIT_SET((*uParam0)[iVar0 /*18*/], 29))
  			{
  				return 0;
  			}
  			if (!func_392(uParam0[iVar0 /*18*/]))
  			{
  				return 0;
  			}
  		}
  		iVar0++;
  	}
  	uParam0->f_271 = 0;
  	return 1;
  }
  
  bool func_392(var uParam0)
  {
  	return func_393(*uParam0, &(uParam0->f_2), uParam0->f_1);
  }
  
  int func_393(int iParam0, char* sParam1, int iParam2)
  {
  	if (MISC::IS_BIT_SET(iParam0, 30))
  	{
  		if (MISC::IS_BIT_SET(iParam0, 29))
  		{
  			switch (func_173(iParam0))
  			{
  				case 0:
  					return STREAMING::HAS_MODEL_LOADED(iParam2);
  					break;
  				
  				case 1:
  					return STREAMING::HAS_ANIM_DICT_LOADED(sParam1);
  					break;
  				
  				case 2:
  					return STREAMING::HAS_CLIP_SET_LOADED(sParam1);
  					break;
  				
  				case 3:
  					return GRAPHICS::HAS_STREAMED_TEXTURE_DICT_LOADED(sParam1);
  					break;
  				
  				case 4:
  					return VEHICLE::HAS_VEHICLE_RECORDING_BEEN_LOADED(iParam2, sParam1);
  					break;
  				
  				case 5:
  					return TASK::GET_IS_WAYPOINT_RECORDING_LOADED(sParam1);
  					break;
  				
  				case 6:
  					return AUDIO::REQUEST_SCRIPT_AUDIO_BANK(sParam1, MISC::IS_BIT_SET(iParam0, 27), -1);
  					break;
  				
  				case 7:
  					return SCRIPT::HAS_SCRIPT_WITH_NAME_HASH_LOADED(iParam2);
  					break;
  				
  				case 8:
  					return HUD::HAS_ADDITIONAL_TEXT_LOADED(iParam2);
  					break;
  				
  				case 9:
  					return STREAMING::HAS_PTFX_ASSET_LOADED();
  					break;
  				
  				default:
  					break;
  			}
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	return 0;
  }
  
  int func_394(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		if ((*uParam0)[iVar0] != 0)
  		{
  			if (!STREAMING::HAS_MODEL_LOADED((*uParam0)[iVar0]))
  			{
  				if (!STREAMING::HAS_MODEL_LOADED((*uParam0)[iVar0]))
  				{
  				}
  				return 0;
  			}
  		}
  		iVar0++;
  	}
  	return 1;
  }
  
  int func_395(var uParam0)
  {
  	if (func_394(&(uParam0->f_34)) && func_390(&uLocal_1596))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_396(var uParam0)
  {
  	if (func_394(&(uParam0->f_34)) && func_390(&uLocal_1596))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_397(var uParam0)
  {
  	if (func_394(&(uParam0->f_34)) && func_390(&uLocal_1596))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_398(var uParam0, var uParam1, bool bParam2)
  {
  	if (bParam2)
  	{
  		if (!func_399())
  		{
  			return 0;
  		}
  	}
  	if (uParam0->f_274 == 0)
  	{
  		if (((((((!TASK::GET_IS_WAYPOINT_RECORDING_LOADED("OJASbs_102") || !TASK::GET_IS_WAYPOINT_RECORDING_LOADED("OJASbs01")) || !TASK::GET_IS_WAYPOINT_RECORDING_LOADED("OJASbs02")) || !TASK::GET_IS_WAYPOINT_RECORDING_LOADED("OJASbs03")) || !TASK::GET_IS_WAYPOINT_RECORDING_LOADED("OJASbs04")) || !VEHICLE::HAS_VEHICLE_ASSET_LOADED(uParam0->f_5)) || !VEHICLE::HAS_VEHICLE_ASSET_LOADED(uParam0->f_15)) || !STREAMING::HAS_PTFX_ASSET_LOADED())
  		{
  			return 0;
  		}
  	}
  	else if (uParam0->f_274 == 1)
  	{
  		if ((((!TASK::GET_IS_WAYPOINT_RECORDING_LOADED("OJAShk_101") || !TASK::GET_IS_WAYPOINT_RECORDING_LOADED("OJAShk_102")) || !TASK::GET_IS_WAYPOINT_RECORDING_LOADED("OJAShk_103")) || !TASK::GET_IS_WAYPOINT_RECORDING_LOADED("OJAShk_104")) || !STREAMING::HAS_ANIM_DICT_LOADED("ODDJOBS@assassinate@vice@incar"))
  		{
  		}
  	}
  	else if (uParam0->f_274 == 2)
  	{
  		if (!STREAMING::HAS_PTFX_ASSET_LOADED())
  		{
  		}
  	}
  	if ((!HUD::HAS_ADDITIONAL_TEXT_LOADED(3) && !func_394(&(uParam0->f_34))) && !func_390(uParam1))
  	{
  		func_501(uParam1);
  		return 0;
  	}
  	return 1;
  }
  
  bool func_399()
  {
  	return func_400(&(Global_105187.f_2890));
  }
  
  int func_400(var uParam0)
  {
  	if (func_401(uParam0))
  	{
  		if (STREAMING::HAS_MODEL_LOADED(uParam0->f_12.f_66))
  		{
  			return 1;
  		}
  		else
  		{
  			return 0;
  		}
  		return 1;
  	}
  	else
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_401(var uParam0)
  {
  	if (uParam0->f_12.f_66 == 0)
  	{
  		return 0;
  	}
  	if (!func_403(uParam0->f_12.f_66, 0))
  	{
  		return 0;
  	}
  	if (uParam0->f_12.f_66 == joaat("stunt") && func_402(*uParam0, 1694.62f, 3276.27f, 41.31f, 1056964608, 0))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_402(struct<3> Param0, struct<3> Param1, float fParam2, bool bParam3)
  {
  	if (fParam2 < 0f)
  	{
  		fParam2 = 0f;
  	}
  	if (!bParam3)
  	{
  		if (MISC::ABSF((Param0.x - Param1.x)) <= fParam2)
  		{
  			if (MISC::ABSF((Param0.f_1 - Param1.f_1)) <= fParam2)
  			{
  				if (MISC::ABSF((Param0.f_2 - Param1.f_2)) <= fParam2)
  				{
  					return 1;
  				}
  			}
  		}
  	}
  	else if (MISC::ABSF((Param0.x - Param1.x)) <= fParam2)
  	{
  		if (MISC::ABSF((Param0.f_1 - Param1.f_1)) <= fParam2)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_403(int iParam0, bool bParam1)
  {
  	int iVar0;
  	struct<2> Var1;
  	
  	if (iParam0 == 0)
  	{
  		return 0;
  	}
  	if (!STREAMING::IS_MODEL_A_VEHICLE(iParam0))
  	{
  		return 0;
  	}
  	if (((((iParam0 == joaat("dominator2") && !NETWORK::NETWORK_IS_GAME_IN_PROGRESS()) || (iParam0 == joaat("buffalo3") && !NETWORK::NETWORK_IS_GAME_IN_PROGRESS())) || (iParam0 == joaat("gauntlet2") && !NETWORK::NETWORK_IS_GAME_IN_PROGRESS())) || iParam0 == joaat("blimp2")) || (iParam0 == joaat("stalion2") && !NETWORK::NETWORK_IS_GAME_IN_PROGRESS()))
  	{
  		if (!func_411())
  		{
  			return 0;
  		}
  	}
  	else
  	{
  		iVar0 = 0;
  		while (iVar0 < FILES::GET_NUM_DLC_VEHICLES())
  		{
  			if (FILES::GET_DLC_VEHICLE_DATA(iVar0, &Var1))
  			{
  				if (iParam0 == Var1.f_1)
  				{
  					if (FILES::IS_CONTENT_ITEM_LOCKED(Var1))
  					{
  						return 0;
  					}
  				}
  			}
  			iVar0++;
  		}
  	}
  	if (iParam0 == joaat("blimp"))
  	{
  		if ((((!func_410() && !func_409()) && !func_408()) && !func_407()) && !func_411())
  		{
  			return 0;
  		}
  	}
  	if ((iParam0 == joaat("hotknife") || iParam0 == joaat("carbonrs")) || iParam0 == joaat("khamelion"))
  	{
  		if ((MISC::IS_DURANGO_VERSION() || MISC::IS_PC_VERSION()) || MISC::IS_ORBIS_VERSION())
  		{
  		}
  		else if (!func_408())
  		{
  			return 0;
  		}
  	}
  	if (bParam1)
  	{
  		if (!func_406(iParam0))
  		{
  			return 0;
  		}
  	}
  	if (!func_404(iParam0))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_404(int iParam0)
  {
  	int iVar0;
  	var uVar1;
  	char cVar2[64];
  	
  	if (!func_405())
  	{
  		return 1;
  	}
  	NETSHOPPING::_NET_GAMESERVER_GET_TRANSACTION_MANAGER_DATA(&iVar0, &uVar1);
  	if (iVar0 == 4)
  	{
  		return 1;
  	}
  	switch (iParam0)
  	{
  		case joaat("dune4"):
  			StringCopy(&cVar2, "VE_DUNE4_t0_v3", 64);
  			break;
  		
  		case joaat("voltic2"):
  			StringCopy(&cVar2, "VE_VOLTIC2_t0_v3", 64);
  			break;
  		
  		case joaat("ruiner2"):
  			StringCopy(&cVar2, "VE_RUINER2_t0_v3", 64);
  			break;
  		
  		case joaat("phantom2"):
  			StringCopy(&cVar2, "VE_PHANTOM2_t0_v3", 64);
  			break;
  		
  		case joaat("technical2"):
  			StringCopy(&cVar2, "VE_TECHNICAL2_t0_v3", 64);
  			break;
  		
  		case joaat("boxville5"):
  			StringCopy(&cVar2, "VE_BOXVILLE5_t0_v3", 64);
  			break;
  		
  		case joaat("wastelander"):
  			StringCopy(&cVar2, "VE_WASTELANDER_t0_v3", 64);
  			break;
  		
  		case joaat("blazer5"):
  			StringCopy(&cVar2, "VE_BLAZER5_t0_v3", 64);
  			break;
  		
  		default:
  			return 1;
  			break;
  	}
  	if (!NETSHOPPING::_NET_GAMESERVER_CATALOG_ITEM_EXISTS(&cVar2))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_405()
  {
  	if (MISC::IS_PC_VERSION())
  	{
  		return NETSHOPPING::_NET_GAMESERVER_USE_SERVER_TRANSACTIONS();
  	}
  	return 0;
  }
  
  int func_406(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (Global_2513258)
  	{
  		return 1;
  	}
  	iVar0 = 1;
  	iVar1 = NETWORK::GET_CLOUD_TIME_AS_INT();
  	if (iParam0 == joaat("btype3"))
  	{
  		if ((!Global_262145.f_6599 && !Global_262145.f_12922) && iVar1 < Global_262145.f_12923)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("faction3"))
  	{
  		if (!Global_262145.f_14222 && iVar1 < Global_262145.f_14234)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("virgo3") || iParam0 == joaat("virgo2"))
  	{
  		if (!Global_262145.f_14218 && iVar1 < Global_262145.f_14230)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sabregt2"))
  	{
  		if (!Global_262145.f_14219 && iVar1 < Global_262145.f_14231)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tornado5"))
  	{
  		if (!Global_262145.f_14220 && iVar1 < Global_262145.f_14232)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("minivan2"))
  	{
  		if (!Global_262145.f_14221 && iVar1 < Global_262145.f_14233)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("slamvan3"))
  	{
  		if (!Global_262145.f_14223 && iVar1 < Global_262145.f_14235)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("prototipo"))
  	{
  		if (!Global_262145.f_14224 && iVar1 < Global_262145.f_14227)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("seven70"))
  	{
  		if (!Global_262145.f_14225 && iVar1 < Global_262145.f_14228)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("pfister811"))
  	{
  		if (!Global_262145.f_14226 && iVar1 < Global_262145.f_14229)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("bf400"))
  	{
  		if (!Global_262145.f_16853 && iVar1 < Global_262145.f_16818)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("brioso"))
  	{
  		if (!Global_262145.f_16848 && iVar1 < Global_262145.f_16813)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("cliffhanger"))
  	{
  		if (!Global_262145.f_16852 && iVar1 < Global_262145.f_16817)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("contender"))
  	{
  		if (!Global_262145.f_16851 && iVar1 < Global_262145.f_16816)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("le7b"))
  	{
  		if (!Global_262145.f_16845 && iVar1 < Global_262145.f_16810)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("omnis"))
  	{
  		if (!Global_262145.f_16846 && iVar1 < Global_262145.f_16811)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("trophytruck"))
  	{
  		if (!Global_262145.f_16849 && iVar1 < Global_262145.f_16814)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("trophytruck2"))
  	{
  		if (!Global_262145.f_16850 && iVar1 < Global_262145.f_16815)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tropos"))
  	{
  		if (!Global_262145.f_16847 && iVar1 < Global_262145.f_16812)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("gargoyle"))
  	{
  		if (!Global_262145.f_16855 && iVar1 < Global_262145.f_16820)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("rallytruck"))
  	{
  		if (!Global_262145.f_16856 && iVar1 < Global_262145.f_16821)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tampa2"))
  	{
  		if (!Global_262145.f_16844 && iVar1 < Global_262145.f_16809)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tyrus"))
  	{
  		if (!Global_262145.f_16843 && iVar1 < Global_262145.f_16808)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sheava"))
  	{
  		if (!Global_262145.f_16842 && iVar1 < Global_262145.f_16807)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("lynx"))
  	{
  		if (!Global_262145.f_16854 && iVar1 < Global_262145.f_16819)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("stalion2"))
  	{
  		if (!Global_262145.f_16857 && iVar1 < Global_262145.f_16822)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("gauntlet2"))
  	{
  		if (!Global_262145.f_16858 && iVar1 < Global_262145.f_16823)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("dominator2"))
  	{
  		if (!Global_262145.f_16859 && iVar1 < Global_262145.f_16824)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("buffalo3"))
  	{
  		if (!Global_262145.f_16860 && iVar1 < Global_262145.f_16825)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("defiler"))
  	{
  		if (!Global_262145.f_17007 && iVar1 < Global_262145.f_17029)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("nightblade"))
  	{
  		if (!Global_262145.f_17008 && iVar1 < Global_262145.f_17030)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("zombiea"))
  	{
  		if (!Global_262145.f_17009 && iVar1 < Global_262145.f_17031)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("esskey"))
  	{
  		if (!Global_262145.f_17010 && iVar1 < Global_262145.f_17032)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("avarus"))
  	{
  		if (!Global_262145.f_17011 && iVar1 < Global_262145.f_17033)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("zombieb"))
  	{
  		if (!Global_262145.f_17012 && iVar1 < Global_262145.f_17034)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("hakuchou2"))
  	{
  		if (!Global_262145.f_17014 && iVar1 < Global_262145.f_17035)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("vortex"))
  	{
  		if (!Global_262145.f_17015 && iVar1 < Global_262145.f_17036)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("shotaro"))
  	{
  		if (!Global_262145.f_17016 && iVar1 < Global_262145.f_17037)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("chimera"))
  	{
  		if (!Global_262145.f_17017 && iVar1 < Global_262145.f_17038)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("raptor"))
  	{
  		if (!Global_262145.f_17018 && iVar1 < Global_262145.f_17039)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("daemon2"))
  	{
  		if (!Global_262145.f_17019 && iVar1 < Global_262145.f_17040)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("blazer4"))
  	{
  		if (!Global_262145.f_17020 && iVar1 < Global_262145.f_17041)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tornado6"))
  	{
  		if (!Global_262145.f_17026 && iVar1 < Global_262145.f_17048)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("youga2"))
  	{
  		if (!Global_262145.f_17023 && iVar1 < Global_262145.f_17044)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("wolfsbane"))
  	{
  		if (!Global_262145.f_17024 && iVar1 < Global_262145.f_17045)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("faggio3"))
  	{
  		if (!Global_262145.f_17025 && iVar1 < Global_262145.f_17046)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("faggio"))
  	{
  		if (!Global_262145.f_17013 && iVar1 < Global_262145.f_17047)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("bagger"))
  	{
  		if (!Global_262145.f_17027 && iVar1 < Global_262145.f_17049)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sanctus"))
  	{
  		if (!Global_262145.f_17021 && iVar1 < Global_262145.f_17042)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("manchez"))
  	{
  		if (!Global_262145.f_17022 && iVar1 < Global_262145.f_17043)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("ratbike"))
  	{
  		if (!Global_262145.f_17028 && iVar1 < Global_262145.f_17050)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("voltic2"))
  	{
  		if (!Global_262145.f_18659 && iVar1 < Global_262145.f_18756)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("ruiner2"))
  	{
  		if (!Global_262145.f_18660 && iVar1 < Global_262145.f_18757)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("dune4"))
  	{
  		if (!Global_262145.f_18661 && iVar1 < Global_262145.f_18758)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("dune5"))
  	{
  		if (!Global_262145.f_18662 && iVar1 < Global_262145.f_18759)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("phantom2"))
  	{
  		if (!Global_262145.f_18663 && iVar1 < Global_262145.f_18760)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("technical2"))
  	{
  		if (!Global_262145.f_18664 && iVar1 < Global_262145.f_18761)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("boxville5"))
  	{
  		if (!Global_262145.f_18665 && iVar1 < Global_262145.f_18762)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("wastelander"))
  	{
  		if (!Global_262145.f_18666 && iVar1 < Global_262145.f_18763)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("blazer5"))
  	{
  		if (!Global_262145.f_18667 && iVar1 < Global_262145.f_18764)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("comet2"))
  	{
  		if (!Global_262145.f_18668 && iVar1 < Global_262145.f_18765)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("comet3"))
  	{
  		if (!Global_262145.f_18669 && iVar1 < Global_262145.f_18766)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("diablous"))
  	{
  		if (!Global_262145.f_18670 && iVar1 < Global_262145.f_18767)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("diablous2"))
  	{
  		if (!Global_262145.f_18671 && iVar1 < Global_262145.f_18768)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("elegy"))
  	{
  		if (!Global_262145.f_18672 && iVar1 < Global_262145.f_18769)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("elegy2"))
  	{
  		if (!Global_262145.f_18673 && iVar1 < Global_262145.f_18770)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("fcr"))
  	{
  		if (!Global_262145.f_18674 && iVar1 < Global_262145.f_18771)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("fcr2"))
  	{
  		if (!Global_262145.f_18675 && iVar1 < Global_262145.f_18772)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("italigtb"))
  	{
  		if (!Global_262145.f_18676 && iVar1 < Global_262145.f_18773)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("italigtb2"))
  	{
  		if (!Global_262145.f_18677 && iVar1 < Global_262145.f_18774)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("nero"))
  	{
  		if (!Global_262145.f_18678 && iVar1 < Global_262145.f_18775)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("nero2"))
  	{
  		if (!Global_262145.f_18679 && iVar1 < Global_262145.f_18776)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("penetrator"))
  	{
  		if (!Global_262145.f_18680 && iVar1 < Global_262145.f_18777)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("specter"))
  	{
  		if (!Global_262145.f_18681 && iVar1 < Global_262145.f_18778)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("specter2"))
  	{
  		if (!Global_262145.f_18682 && iVar1 < Global_262145.f_18779)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tempesta"))
  	{
  		if (!Global_262145.f_18683 && iVar1 < Global_262145.f_18780)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("gp1"))
  	{
  		if (!Global_262145.f_19740 && iVar1 < Global_262145.f_19736)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("infernus2"))
  	{
  		if (!Global_262145.f_19741 && iVar1 < Global_262145.f_19737)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("ruston"))
  	{
  		if (!Global_262145.f_19742 && iVar1 < Global_262145.f_19738)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("turismo2"))
  	{
  		if (!Global_262145.f_19743 && iVar1 < Global_262145.f_19739)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("xa21"))
  	{
  		if (!Global_262145.f_20619 && iVar1 < Global_262145.f_20627)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("cheetah2"))
  	{
  		if (!Global_262145.f_20620 && iVar1 < Global_262145.f_20628)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("torero"))
  	{
  		if (!Global_262145.f_20621 && iVar1 < Global_262145.f_20629)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("vagner"))
  	{
  		if (!Global_262145.f_20622 && iVar1 < Global_262145.f_20630)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("ardent"))
  	{
  		if (!Global_262145.f_20623 && iVar1 < Global_262145.f_20631)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("nightshark"))
  	{
  		if (!Global_262145.f_20624 && iVar1 < Global_262145.f_20632)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("microlight"))
  	{
  		if (!Global_262145.f_21396 && iVar1 < Global_262145.f_21416)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("mogul"))
  	{
  		if (!Global_262145.f_21408 && iVar1 < Global_262145.f_21428)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("rogue"))
  	{
  		if (!Global_262145.f_21399 && iVar1 < Global_262145.f_21419)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("starling"))
  	{
  		if (!Global_262145.f_21409 && iVar1 < Global_262145.f_21429)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("seabreeze"))
  	{
  		if (!Global_262145.f_21397 && iVar1 < Global_262145.f_21417)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tula"))
  	{
  		if (!Global_262145.f_21413 && iVar1 < Global_262145.f_21433)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("pyro"))
  	{
  		if (!Global_262145.f_21411 && iVar1 < Global_262145.f_21431)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("molotok"))
  	{
  		if (!Global_262145.f_21412 && iVar1 < Global_262145.f_21432)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("nokota"))
  	{
  		if (!Global_262145.f_21407 && iVar1 < Global_262145.f_21427)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("bombushka"))
  	{
  		if (!Global_262145.f_21414 && iVar1 < Global_262145.f_21434)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("hunter"))
  	{
  		if (!Global_262145.f_21410 && iVar1 < Global_262145.f_21430)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("havok"))
  	{
  		if (!Global_262145.f_21406 && iVar1 < Global_262145.f_21426)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("howard"))
  	{
  		if (!Global_262145.f_21398 && iVar1 < Global_262145.f_21418)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("alphaz1"))
  	{
  		if (!Global_262145.f_21400 && iVar1 < Global_262145.f_21420)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("cyclone"))
  	{
  		if (!Global_262145.f_21401 && iVar1 < Global_262145.f_21421)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("visione"))
  	{
  		if (!Global_262145.f_21402 && iVar1 < Global_262145.f_21422)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("vigilante"))
  	{
  		if (!Global_262145.f_21403 && iVar1 < Global_262145.f_21423)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("retinue"))
  	{
  		if (!Global_262145.f_21404 && iVar1 < Global_262145.f_21424)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("rapidgt3"))
  	{
  		if (!Global_262145.f_21405 && iVar1 < Global_262145.f_21425)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("deluxo"))
  	{
  		if (!Global_262145.f_22357 && iVar1 < Global_262145.f_22385)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("stromberg"))
  	{
  		if (!Global_262145.f_22358 && iVar1 < Global_262145.f_22386)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("riot2"))
  	{
  		if (!Global_262145.f_22359 && iVar1 < Global_262145.f_22387)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("chernobog"))
  	{
  		if (!Global_262145.f_22360 && iVar1 < Global_262145.f_22388)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("khanjali"))
  	{
  		if (!Global_262145.f_22361 && iVar1 < Global_262145.f_22389)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("akula"))
  	{
  		if (!Global_262145.f_22362 && iVar1 < Global_262145.f_22390)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("thruster"))
  	{
  		if (!Global_262145.f_22363 && iVar1 < Global_262145.f_22391)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("barrage"))
  	{
  		if (!Global_262145.f_22364 && iVar1 < Global_262145.f_22392)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("volatol"))
  	{
  		if (!Global_262145.f_22365 && iVar1 < Global_262145.f_22393)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("comet4"))
  	{
  		if (!Global_262145.f_22366 && iVar1 < Global_262145.f_22394)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("neon"))
  	{
  		if (!Global_262145.f_22367 && iVar1 < Global_262145.f_22395)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("streiter"))
  	{
  		if (!Global_262145.f_22368 && iVar1 < Global_262145.f_22396)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sentinel3"))
  	{
  		if (!Global_262145.f_22369 && iVar1 < Global_262145.f_22397)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("yosemite"))
  	{
  		if (!Global_262145.f_22370 && iVar1 < Global_262145.f_22398)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sc1"))
  	{
  		if (!Global_262145.f_22371 && iVar1 < Global_262145.f_22399)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("autarch"))
  	{
  		if (!Global_262145.f_22372 && iVar1 < Global_262145.f_22400)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("gt500"))
  	{
  		if (!Global_262145.f_22373 && iVar1 < Global_262145.f_22401)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("hustler"))
  	{
  		if (!Global_262145.f_22374 && iVar1 < Global_262145.f_22402)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("revolter"))
  	{
  		if (!Global_262145.f_22375 && iVar1 < Global_262145.f_22403)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("pariah"))
  	{
  		if (!Global_262145.f_22376 && iVar1 < Global_262145.f_22404)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("raiden"))
  	{
  		if (!Global_262145.f_22377 && iVar1 < Global_262145.f_22405)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("savestra"))
  	{
  		if (!Global_262145.f_22378 && iVar1 < Global_262145.f_22406)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("riata"))
  	{
  		if (!Global_262145.f_22379 && iVar1 < Global_262145.f_22407)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("hermes"))
  	{
  		if (!Global_262145.f_22380 && iVar1 < Global_262145.f_22408)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("comet5"))
  	{
  		if (!Global_262145.f_22381 && iVar1 < Global_262145.f_22409)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("z190"))
  	{
  		if (!Global_262145.f_22382 && iVar1 < Global_262145.f_22410)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("viseris"))
  	{
  		if (!Global_262145.f_22383 && iVar1 < Global_262145.f_22411)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("kamacho"))
  	{
  		if (!Global_262145.f_22384 && iVar1 < Global_262145.f_22412)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("gb200"))
  	{
  		if (!Global_262145.f_23573 && iVar1 < Global_262145.f_23589)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("fagaloa"))
  	{
  		if (!Global_262145.f_23574 && iVar1 < Global_262145.f_23590)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("ellie"))
  	{
  		if (!Global_262145.f_23578 && iVar1 < Global_262145.f_23594)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("issi3"))
  	{
  		if (!Global_262145.f_23581 && iVar1 < Global_262145.f_23597)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("michelli"))
  	{
  		if (!Global_262145.f_23586 && iVar1 < Global_262145.f_23602)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("flashgt"))
  	{
  		if (!Global_262145.f_23580 && iVar1 < Global_262145.f_23596)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("hotring"))
  	{
  		if (!Global_262145.f_23572 && iVar1 < Global_262145.f_23588)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tezeract"))
  	{
  		if (!Global_262145.f_23579 && iVar1 < Global_262145.f_23595)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tyrant"))
  	{
  		if (!Global_262145.f_23585 && iVar1 < Global_262145.f_23601)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("dominator3"))
  	{
  		if (!Global_262145.f_23584 && iVar1 < Global_262145.f_23600)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("taipan"))
  	{
  		if (!Global_262145.f_23575 && iVar1 < Global_262145.f_23591)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("entity2"))
  	{
  		if (!Global_262145.f_23577 && iVar1 < Global_262145.f_23593)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("jester3"))
  	{
  		if (!Global_262145.f_23587 && iVar1 < Global_262145.f_23603)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("cheburek"))
  	{
  		if (!Global_262145.f_23583 && iVar1 < Global_262145.f_23599)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("caracara"))
  	{
  		if (!Global_262145.f_23576 && iVar1 < Global_262145.f_23592)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("seasparrow"))
  	{
  		if (!Global_262145.f_23582 && iVar1 < Global_262145.f_23598)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("terbyte"))
  	{
  		if (!Global_262145.f_23663 && iVar1 < Global_262145.f_23650)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("pbus2"))
  	{
  		if (!Global_262145.f_23664 && iVar1 < Global_262145.f_23651)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("mule4"))
  	{
  		if (!Global_262145.f_23669 && iVar1 < Global_262145.f_23656)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("pounder2"))
  	{
  		if (!Global_262145.f_23668 && iVar1 < Global_262145.f_23655)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("swinger"))
  	{
  		if (!Global_262145.f_23666 && iVar1 < Global_262145.f_23653)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("menacer"))
  	{
  		if (!Global_262145.f_23672 && iVar1 < Global_262145.f_23659)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("scramjet"))
  	{
  		if (!Global_262145.f_23674 && iVar1 < Global_262145.f_23661)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("strikeforce"))
  	{
  		if (!Global_262145.f_23675 && iVar1 < Global_262145.f_23662)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("oppressor2"))
  	{
  		if (!Global_262145.f_23673 && iVar1 < Global_262145.f_23660)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("patriot2"))
  	{
  		if (!Global_262145.f_23665 && iVar1 < Global_262145.f_23652)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("stafford"))
  	{
  		if (!Global_262145.f_23667 && iVar1 < Global_262145.f_23654)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("freecrawler"))
  	{
  		if (!Global_262145.f_23671 && iVar1 < Global_262145.f_23658)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("blimp3"))
  	{
  		if (!Global_262145.f_23670 && iVar1 < Global_262145.f_23657)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("monster3"))
  	{
  	}
  	else if (iParam0 == joaat("cerberus"))
  	{
  	}
  	else if (iParam0 == joaat("cerberus2"))
  	{
  	}
  	else if (iParam0 == joaat("cerberus3"))
  	{
  	}
  	else if (iParam0 == joaat("brutus"))
  	{
  	}
  	else if (iParam0 == joaat("brutus2"))
  	{
  	}
  	else if (iParam0 == joaat("brutus3"))
  	{
  	}
  	else if (iParam0 == joaat("scarab"))
  	{
  	}
  	else if (iParam0 == joaat("scarab2"))
  	{
  	}
  	else if (iParam0 == joaat("scarab3"))
  	{
  	}
  	else if (iParam0 == joaat("imperator"))
  	{
  	}
  	else if (iParam0 == joaat("imperator2"))
  	{
  	}
  	else if (iParam0 == joaat("imperator3"))
  	{
  	}
  	else if (iParam0 == joaat("zr380"))
  	{
  	}
  	else if (iParam0 == joaat("zr3802"))
  	{
  	}
  	else if (iParam0 == joaat("zr3803"))
  	{
  	}
  	else if (iParam0 == joaat("impaler"))
  	{
  	}
  	else if (iParam0 == joaat("deveste"))
  	{
  		if (!Global_262145.f_25978 && iVar1 < Global_262145.f_25980)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("toros"))
  	{
  		if (!Global_262145.f_24991 && iVar1 < Global_262145.f_24984)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("clique"))
  	{
  		if (!Global_262145.f_24992 && iVar1 < Global_262145.f_24985)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("italigto"))
  	{
  		if (!Global_262145.f_24993 && iVar1 < Global_262145.f_24986)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("deviant"))
  	{
  		if (!Global_262145.f_24994 && iVar1 < Global_262145.f_24987)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("vamos"))
  	{
  		if (!Global_262145.f_25979 && iVar1 < Global_262145.f_25981)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tulip"))
  	{
  		if (!Global_262145.f_24995 && iVar1 < Global_262145.f_24988)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("schlagen"))
  	{
  		if (!Global_262145.f_24996 && iVar1 < Global_262145.f_24989)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("rcbandito"))
  	{
  		if (!Global_262145.f_24997 && iVar1 < Global_262145.f_24990)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("thrax"))
  	{
  		if (!Global_262145.f_25002 && iVar1 < Global_262145.f_25023)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("drafter"))
  	{
  		if (!Global_262145.f_25003 && iVar1 < Global_262145.f_25024)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("locust"))
  	{
  		if (!Global_262145.f_25004 && iVar1 < Global_262145.f_25025)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("novak"))
  	{
  		if (!Global_262145.f_25005 && iVar1 < Global_262145.f_25026)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("zorrusso"))
  	{
  		if (!Global_262145.f_25006 && iVar1 < Global_262145.f_25027)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("gauntlet3"))
  	{
  		if (!Global_262145.f_25007 && iVar1 < Global_262145.f_25028)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("issi7"))
  	{
  		if (!Global_262145.f_25008 && iVar1 < Global_262145.f_25029)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("zion3"))
  	{
  		if (!Global_262145.f_25009 && iVar1 < Global_262145.f_25030)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("nebula"))
  	{
  		if (!Global_262145.f_25010 && iVar1 < Global_262145.f_25031)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("hellion"))
  	{
  		if (!Global_262145.f_25011 && iVar1 < Global_262145.f_25032)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("dynasty"))
  	{
  		if (!Global_262145.f_25012 && iVar1 < Global_262145.f_25033)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("rrocket"))
  	{
  		if (!Global_262145.f_25013 && iVar1 < Global_262145.f_25034)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("peyote2"))
  	{
  		if (!Global_262145.f_25014 && iVar1 < Global_262145.f_25035)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("gauntlet4"))
  	{
  		if (!Global_262145.f_25015 && iVar1 < Global_262145.f_25036)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("caracara2"))
  	{
  		if (!Global_262145.f_25016 && iVar1 < Global_262145.f_25037)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("jugular"))
  	{
  		if (!Global_262145.f_25017 && iVar1 < Global_262145.f_25038)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("s80"))
  	{
  		if (!Global_262145.f_25018 && iVar1 < Global_262145.f_25039)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("krieger"))
  	{
  		if (!Global_262145.f_25019 && iVar1 < Global_262145.f_25040)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("emerus"))
  	{
  		if (!Global_262145.f_25020 && iVar1 < Global_262145.f_25041)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("neo"))
  	{
  		if (!Global_262145.f_25021 && iVar1 < Global_262145.f_25042)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("paragon"))
  	{
  		if (!Global_262145.f_25022 && iVar1 < Global_262145.f_25043)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("asbo"))
  	{
  		if (!Global_262145.f_27821 && iVar1 < Global_262145.f_27842)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("kanjo"))
  	{
  		if (!Global_262145.f_27822 && iVar1 < Global_262145.f_27843)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("everon"))
  	{
  		if (!Global_262145.f_27823 && iVar1 < Global_262145.f_27844)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("retinue2"))
  	{
  		if (!Global_262145.f_27824 && iVar1 < Global_262145.f_27845)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("yosemite2"))
  	{
  		if (!Global_262145.f_27825 && iVar1 < Global_262145.f_27846)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sugoi"))
  	{
  		if (!Global_262145.f_27826 && iVar1 < Global_262145.f_27847)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sultan2"))
  	{
  		if (!Global_262145.f_27827 && iVar1 < Global_262145.f_27848)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("outlaw"))
  	{
  		if (!Global_262145.f_27828 && iVar1 < Global_262145.f_27849)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("vagrant"))
  	{
  		if (!Global_262145.f_27829 && iVar1 < Global_262145.f_27850)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("komoda"))
  	{
  		if (!Global_262145.f_27830 && iVar1 < Global_262145.f_27851)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("stryder"))
  	{
  		if (!Global_262145.f_27831 && iVar1 < Global_262145.f_27852)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("furia"))
  	{
  		if (!Global_262145.f_27832 && iVar1 < Global_262145.f_27853)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("zhaba"))
  	{
  		if (!Global_262145.f_27833 && iVar1 < Global_262145.f_27854)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("jb7002"))
  	{
  		if (!Global_262145.f_27834 && iVar1 < Global_262145.f_27855)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("firetruk"))
  	{
  		if (!Global_262145.f_27835 && iVar1 < Global_262145.f_27856)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("burrito2"))
  	{
  		if (!Global_262145.f_27836 && iVar1 < Global_262145.f_27857)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("boxville"))
  	{
  		if (!Global_262145.f_27837 && iVar1 < Global_262145.f_27858)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("stockade"))
  	{
  		if (!Global_262145.f_27838 && iVar1 < Global_262145.f_27859)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("minitank"))
  	{
  		if (!Global_262145.f_27839 && iVar1 < Global_262145.f_27860)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("lguard"))
  	{
  		if (!Global_262145.f_27840 && iVar1 < Global_262145.f_27861)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("blazer2"))
  	{
  		if (!Global_262145.f_27841 && iVar1 < Global_262145.f_27862)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("formula"))
  	{
  		if ((!Global_262145.f_27864 && iVar1 < Global_262145.f_27865) && !Global_262145.f_27819)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("formula2"))
  	{
  		if ((!Global_262145.f_27867 && iVar1 < Global_262145.f_27868) && !Global_262145.f_27820)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("imorgon"))
  	{
  		if (!Global_262145.f_27872 && iVar1 < Global_262145.f_27875)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("rebla"))
  	{
  		if (!Global_262145.f_27873 && iVar1 < Global_262145.f_27876)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("vstr"))
  	{
  		if (!Global_262145.f_27874 && iVar1 < Global_262145.f_27877)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("gauntlet5"))
  	{
  		if (!Global_262145.f_28874 && iVar1 < Global_262145.f_28539)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("club"))
  	{
  		if (!Global_262145.f_28525 && iVar1 < Global_262145.f_28546)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("dukes3"))
  	{
  		if (!Global_262145.f_28526 && iVar1 < Global_262145.f_28532)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("yosemite3"))
  	{
  		if (!Global_262145.f_28872 && iVar1 < Global_262145.f_28540)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("peyote3"))
  	{
  		if (!Global_262145.f_28873 && iVar1 < Global_262145.f_28541)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("glendale2"))
  	{
  		if (!Global_262145.f_28519 && iVar1 < Global_262145.f_28538)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("penumbra2"))
  	{
  		if (!Global_262145.f_28520 && iVar1 < Global_262145.f_28547)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("landstalker2"))
  	{
  		if (!Global_262145.f_28521 && iVar1 < Global_262145.f_28537)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("seminole2"))
  	{
  		if (!Global_262145.f_28522 && iVar1 < Global_262145.f_28535)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tigon"))
  	{
  		if (!Global_262145.f_28868 && iVar1 < Global_262145.f_28542)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("openwheel1"))
  	{
  		if (!Global_262145.f_28869 && iVar1 < Global_262145.f_28543)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("openwheel2"))
  	{
  		if (!Global_262145.f_28870 && iVar1 < Global_262145.f_28544)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("coquette4"))
  	{
  		if (!Global_262145.f_28871 && iVar1 < Global_262145.f_28545)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("manana2"))
  	{
  		if (!Global_262145.f_28523 && iVar1 < Global_262145.f_28534)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("youga3"))
  	{
  		if (!Global_262145.f_28524 && iVar1 < Global_262145.f_28536)
  		{
  			iVar0 = 0;
  		}
  	}
  	return iVar0;
  }
  
  int func_407()
  {
  	return 0;
  }
  
  int func_408()
  {
  	return 1;
  }
  
  int func_409()
  {
  	return 1;
  }
  
  int func_410()
  {
  	if (DLC::IS_DLC_PRESENT(-1226939934))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_411()
  {
  	int iVar0;
  	
  	if (NETWORK::NETWORK_IS_SIGNED_IN())
  	{
  		if (NETWORK::NETWORK_HAS_VALID_ROS_CREDENTIALS())
  		{
  			if (NETWORK::_NETWORK_GET_ROS_PRIVILEGE_24())
  			{
  				STATS::STAT_GET_INT(joaat("SP_UNLOCK_EXCLUS_CONTENT"), &iVar0, -1);
  				MISC::SET_BIT(&iVar0, 2);
  				MISC::SET_BIT(&iVar0, 4);
  				MISC::SET_BIT(&iVar0, 6);
  				MISC::SET_BIT(&Global_25, 2);
  				MISC::SET_BIT(&Global_25, 4);
  				MISC::SET_BIT(&Global_25, 6);
  				STATS::STAT_SET_INT(joaat("SP_UNLOCK_EXCLUS_CONTENT"), iVar0, true);
  				if (MISC::ARE_PROFILE_SETTINGS_VALID())
  				{
  					iVar0 = MISC::GET_PROFILE_SETTING(866);
  					MISC::SET_BIT(&iVar0, 0);
  					STATS::_SET_HAS_CONTENT_UNLOCKS_FLAGS(iVar0);
  				}
  				return 1;
  			}
  		}
  	}
  	if (Global_150472 == 2)
  	{
  		return 1;
  	}
  	else if (Global_150472 == 3)
  	{
  		return 0;
  	}
  	if (MISC::ARE_PROFILE_SETTINGS_VALID())
  	{
  		if (MISC::IS_BIT_SET(MISC::GET_PROFILE_SETTING(866), 0))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_412(int iParam0)
  {
  	if (!CAM::IS_SCREEN_FADED_IN())
  	{
  		CAM::DO_SCREEN_FADE_IN(iParam0);
  		while (!CAM::IS_SCREEN_FADED_IN())
  		{
  			SYSTEM::WAIT(0);
  		}
  	}
  }
  
  void func_413(int iParam0, int iParam1, int iParam2)
  {
  	if (func_511() && func_415())
  	{
  		while (Global_98739 != 6)
  		{
  			SYSTEM::WAIT(0);
  		}
  		MISC::SET_GAME_PAUSED(false);
  		if (ENTITY::DOES_ENTITY_EXIST(PLAYER::PLAYER_PED_ID()))
  		{
  			if (!PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID()))
  			{
  				PED::CLEAR_PED_WETNESS(PLAYER::PLAYER_PED_ID());
  			}
  		}
  		if (iParam0 != 0)
  		{
  			if (!PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID()))
  			{
  				if (ENTITY::DOES_ENTITY_EXIST(iParam0))
  				{
  					if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  					{
  						if (!PED::IS_PED_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), iParam0, false))
  						{
  							PED::SET_PED_INTO_VEHICLE(PLAYER::PLAYER_PED_ID(), iParam0, iParam1);
  							CAM::SET_GAMEPLAY_CAM_RELATIVE_PITCH(0f, 1f);
  							CAM::SET_GAMEPLAY_CAM_RELATIVE_HEADING(0f);
  							SYSTEM::WAIT(0);
  						}
  					}
  				}
  			}
  		}
  		if (iParam2 == 1)
  		{
  			if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  			{
  				PLAYER::SET_PLAYER_CONTROL(PLAYER::PLAYER_ID(), true, 0);
  			}
  		}
  		GRAPHICS::ANIMPOSTFX_STOP_ALL();
  		func_414(0);
  	}
  }
  
  void func_414(int iParam0)
  {
  	if (iParam0 == 1)
  	{
  		MISC::SET_BIT(&(Global_98744.f_20), 13);
  	}
  	else
  	{
  		MISC::CLEAR_BIT(&(Global_98744.f_20), 13);
  	}
  }
  
  bool func_415()
  {
  	return MISC::IS_BIT_SET(Global_98744.f_20, 13);
  }
  
  void func_416()
  {
  	if (!ENTITY::DOES_ENTITY_EXIST(iLocal_1262[0]))
  	{
  		iLocal_1262[0] = VEHICLE::CREATE_VEHICLE(iLocal_1265[0], -723.8201f, -916.5402f, 18.0145f, 267.798f, true, true, false);
  	}
  	if (!ENTITY::DOES_ENTITY_EXIST(iLocal_1262[1]))
  	{
  		iLocal_1262[1] = VEHICLE::CREATE_VEHICLE(iLocal_1265[1], -735.5003f, -931.6205f, 18.0173f, 359.3239f, true, true, false);
  		ENTITY::SET_ENTITY_LOD_DIST(iLocal_1262[1], 100);
  	}
  	if (!ENTITY::DOES_ENTITY_EXIST(iLocal_1262[2]))
  	{
  		iLocal_1262[2] = VEHICLE::CREATE_VEHICLE(iLocal_1265[0], -726.7143f, -940.2681f, 18.0173f, 178.3615f, true, true, false);
  	}
  	if (!ENTITY::DOES_ENTITY_EXIST(iLocal_1262[3]))
  	{
  		iLocal_1262[3] = VEHICLE::CREATE_VEHICLE(iLocal_1265[2], -730.5711f, -909.9425f, 18.0349f, 357.4066f, true, true, false);
  	}
  }
  
  int func_417(struct<3> Param0, float fParam1)
  {
  	return func_418(&(Global_105187.f_2890), Param0, fParam1, 0);
  }
  
  int func_418(var uParam0, struct<3> Param1, float fParam2, bool bParam3)
  {
  	int iVar0;
  	struct<3> Var1;
  	bool bVar2;
  	var uVar3;
  	int iVar4;
  	
  	if (func_401(uParam0))
  	{
  		if (func_209(Param1, 0f, 0f, 0f, 0))
  		{
  			Param1 = { *uParam0 };
  			fParam2 = uParam0->f_6;
  		}
  		if (uParam0->f_12.f_66 == joaat("monster") || uParam0->f_12.f_66 == joaat("marshall"))
  		{
  			if (OBJECT::IS_POINT_IN_ANGLED_AREA(Param1, -816.8716f, 185.6238f, 71.40275f, -807.4894f, 189.3762f, 75.27323f, 6.5f, false, true))
  			{
  				Param1 = { -850.93f, 158.82f, 65.7f };
  				fParam2 = 89.5f;
  			}
  		}
  		if (func_400(uParam0))
  		{
  			MISC::CLEAR_AREA(Param1, 5f, true, false, false, false);
  			func_455(Param1, 5f, 0);
  			iVar0 = VEHICLE::CREATE_VEHICLE(uParam0->f_12.f_66, Param1, fParam2, true, true, false);
  			if (ENTITY::DOES_ENTITY_EXIST(iVar0))
  			{
  				Var1 = { ENTITY::GET_ENTITY_COORDS(iVar0, true) };
  				if (SYSTEM::VDIST2(Var1, -1151.15f, -1530.32f, 7.48925f) <= 3f)
  				{
  					ENTITY::SET_ENTITY_COORDS_NO_OFFSET(iVar0, Param1, false, false, true);
  				}
  				func_439(iVar0, &(uParam0->f_12), 0, 1);
  				bVar2 = true;
  				if (VEHICLE::IS_THIS_MODEL_A_BOAT(uParam0->f_12.f_66) || VEHICLE::IS_THIS_MODEL_A_JETSKI(uParam0->f_12.f_66))
  				{
  					if (!WATER::TEST_PROBE_AGAINST_WATER(Param1.x, Param1.f_1, (Param1.f_2 + 30f), Param1.x, Param1.f_1, (Param1.f_2 - 30f), &uVar3))
  					{
  						bVar2 = false;
  					}
  				}
  				if (bVar2)
  				{
  					VEHICLE::SET_VEHICLE_ON_GROUND_PROPERLY(iVar0, 5f);
  				}
  				if (uParam0->f_7 == 1)
  				{
  					if (bParam3)
  					{
  						if (VEHICLE::IS_THIS_MODEL_A_CAR(ENTITY::GET_ENTITY_MODEL(iVar0)))
  						{
  							func_438(uParam0->f_11, 1);
  						}
  						else if (VEHICLE::IS_THIS_MODEL_A_BIKE(ENTITY::GET_ENTITY_MODEL(iVar0)))
  						{
  							func_438(uParam0->f_11, 2);
  						}
  					}
  					VEHICLE::_0xAB04325045427AAE(iVar0, false);
  					VEHICLE::SET_VEHICLE_CAN_SAVE_IN_GARAGE(iVar0, false);
  					VEHICLE::SET_VEHICLE_HAS_STRONG_AXLES(iVar0, true);
  					func_437(iVar0, uParam0->f_11);
  				}
  				else if ((!func_435(iVar0, uParam0->f_3, uParam0->f_8) && uParam0->f_10) && MISC::ARE_STRINGS_EQUAL(SCRIPT::GET_THIS_SCRIPT_NAME(), "startup_positioning"))
  				{
  					iVar4 = func_434(iVar0);
  					if (iVar4 == -1)
  					{
  						uParam0->f_10 = 0;
  					}
  					else
  					{
  						func_429(iVar4);
  					}
  				}
  				if (((Global_98744 != 13 && Global_98744 != 10) && Global_98744 != 11) && Global_98744 != 12)
  				{
  					if (MISC::GET_HASH_KEY(&(Global_98744.f_3)) == Global_76429)
  					{
  						if (uParam0->f_12.f_66 == Global_111638.f_32744.f_69[21 /*78*/].f_66)
  						{
  							func_426(24, 0);
  							func_429(24);
  						}
  					}
  				}
  				if (uParam0->f_9 == 1)
  				{
  					func_419(iVar0, uParam0->f_11);
  				}
  				STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(uParam0->f_12.f_66);
  				Var1 = { ENTITY::GET_ENTITY_COORDS(iVar0, true) };
  			}
  			return iVar0;
  		}
  	}
  	return iVar0;
  }
  
  void func_419(int iParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	if (!func_420(iParam0))
  	{
  		return;
  	}
  	if ((iParam1 != 0 && iParam1 != 1) && iParam1 != 2)
  	{
  		iVar0 = VEHICLE::GET_PED_IN_VEHICLE_SEAT(iParam0, -1, 0);
  		if (!ENTITY::DOES_ENTITY_EXIST(iVar0))
  		{
  			iVar0 = VEHICLE::GET_LAST_PED_IN_VEHICLE_SEAT(iParam0, -1);
  		}
  		if (ENTITY::DOES_ENTITY_EXIST(iVar0) && !PED::IS_PED_INJURED(iVar0))
  		{
  			if (ENTITY::GET_ENTITY_MODEL(iVar0) == joaat("player_zero"))
  			{
  				iParam1 = 0;
  			}
  			else if (ENTITY::GET_ENTITY_MODEL(iVar0) == joaat("player_one"))
  			{
  				iParam1 = 1;
  			}
  			else if (ENTITY::GET_ENTITY_MODEL(iVar0) == joaat("player_two"))
  			{
  				iParam1 = 2;
  			}
  		}
  		if ((iParam1 != 0 && iParam1 != 1) && iParam1 != 2)
  		{
  			iParam1 = Global_111638.f_2358.f_539.f_4321;
  		}
  	}
  	iVar1 = 0;
  	while (iVar1 < 3)
  	{
  		iVar2 = 0;
  		while (iVar2 < 2)
  		{
  			if (ENTITY::GET_ENTITY_MODEL(iParam0) == Global_111638.f_32744.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_66)
  			{
  				if (!MISC::IS_STRING_NULL_OR_EMPTY(&(Global_111638.f_32744.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_1)))
  				{
  					if (MISC::ARE_STRINGS_EQUAL(VEHICLE::GET_VEHICLE_NUMBER_PLATE_TEXT(iParam0), &(Global_111638.f_32744.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_1)))
  					{
  						Global_111638.f_32744.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_66 = 0;
  						Global_111638.f_32744.f_5592[iVar1] = iVar2;
  					}
  				}
  			}
  			iVar2++;
  		}
  		iVar1++;
  	}
  	iVar1 = 0;
  	while (iVar1 < 3)
  	{
  		if (ENTITY::GET_ENTITY_MODEL(iParam0) == Global_111638.f_32744.f_5600[iVar1 /*78*/].f_66)
  		{
  			if (!MISC::IS_STRING_NULL_OR_EMPTY(&(Global_111638.f_32744.f_5600[iVar1 /*78*/].f_1)))
  			{
  				if (MISC::ARE_STRINGS_EQUAL(VEHICLE::GET_VEHICLE_NUMBER_PLATE_TEXT(iParam0), &(Global_111638.f_32744.f_5600[iVar1 /*78*/].f_1)))
  				{
  					Global_111638.f_32744.f_5600[iVar1 /*78*/].f_66 = 0;
  				}
  			}
  		}
  		iVar1++;
  	}
  	Global_111638.f_32744.f_5590 = iParam1;
  	Global_76346 = iParam0;
  	Global_111638.f_32744.f_5588 = 1;
  	func_295(iParam0, &(Global_111638.f_32744.f_5510));
  }
  
  int func_420(int iParam0)
  {
  	if ((((((((((!ENTITY::DOES_ENTITY_EXIST(iParam0) || !VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false)) || func_310(iParam0, 0, 0)) || func_310(iParam0, 1, 0)) || func_310(iParam0, 2, 0)) || func_291(iParam0) != 145) || func_425(iParam0)) || func_424(iParam0)) || func_423(iParam0)) || func_422(iParam0)) || !func_421(ENTITY::GET_ENTITY_MODEL(iParam0)))
  	{
  		if (func_424(iParam0))
  		{
  		}
  		if (func_424(iParam0))
  		{
  		}
  		if (func_310(iParam0, 0, 0))
  		{
  		}
  		if (func_310(iParam0, 1, 0))
  		{
  		}
  		if (func_310(iParam0, 2, 0))
  		{
  		}
  		if (func_291(iParam0) != 145)
  		{
  		}
  		return 0;
  	}
  	return 1;
  }
  
  int func_421(int iParam0)
  {
  	if (iParam0 == 0)
  	{
  		return 0;
  	}
  	if (!func_403(iParam0, 0))
  	{
  		return 0;
  	}
  	if (((VEHICLE::IS_THIS_MODEL_A_BOAT(iParam0) || VEHICLE::IS_THIS_MODEL_A_PLANE(iParam0)) || VEHICLE::IS_THIS_MODEL_A_HELI(iParam0)) || VEHICLE::IS_THIS_MODEL_A_TRAIN(iParam0))
  	{
  		return 0;
  	}
  	switch (iParam0)
  	{
  		case joaat("bus"):
  		case joaat("stretch"):
  		case joaat("barracks"):
  		case joaat("armytanker"):
  		case joaat("rhino"):
  		case joaat("armytrailer"):
  		case joaat("barracks2"):
  		case joaat("flatbed"):
  		case joaat("ripley"):
  		case joaat("towtruck"):
  		case joaat("towtruck2"):
  		case joaat("airbus"):
  		case joaat("coach"):
  		case joaat("rentalbus"):
  		case joaat("tourbus"):
  		case joaat("firetruk"):
  		case joaat("pbus"):
  		case joaat("trash"):
  		case joaat("benson"):
  		case joaat("boattrailer"):
  		case joaat("biff"):
  		case joaat("hauler"):
  		case joaat("docktrailer"):
  		case joaat("phantom"):
  		case joaat("pounder"):
  		case joaat("tractor2"):
  		case joaat("bulldozer"):
  		case joaat("handler"):
  		case joaat("tiptruck"):
  		case joaat("cutter"):
  		case joaat("dump"):
  		case joaat("mixer"):
  		case joaat("mixer2"):
  		case joaat("rubble"):
  		case joaat("scrap"):
  		case joaat("tiptruck2"):
  		case joaat("camper"):
  		case joaat("taco"):
  		case joaat("boxville"):
  		case joaat("boxville2"):
  		case joaat("boxville3"):
  		case joaat("journey"):
  		case joaat("mule"):
  		case joaat("mule2"):
  		case joaat("police"):
  		case joaat("police2"):
  		case joaat("police3"):
  		case joaat("police4"):
  		case joaat("policeb"):
  		case joaat("policeold1"):
  		case joaat("policeold2"):
  		case joaat("policet"):
  		case joaat("taxi"):
  		case joaat("submersible"):
  		case joaat("submersible2"):
  		case joaat("monster"):
  			return 0;
  			break;
  	}
  	return 1;
  }
  
  int func_422(int iParam0)
  {
  	int iVar0;
  	char* sVar1;
  	
  	iVar0 = ENTITY::GET_ENTITY_MODEL(iParam0);
  	sVar1 = VEHICLE::GET_VEHICLE_NUMBER_PLATE_TEXT(iParam0);
  	if (iVar0 == joaat("speedo") && MISC::ARE_STRINGS_EQUAL(sVar1, "LAMAR G "))
  	{
  		return 1;
  	}
  	if (!func_403(iVar0, 0))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_423(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 3)
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(Global_96105[iVar0]))
  		{
  			if (Global_96105[iVar0] == iParam0)
  			{
  				return 1;
  			}
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  int func_424(int iParam0)
  {
  	int iVar0;
  	
  	if (ENTITY::DOES_ENTITY_EXIST(iParam0) && VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  	{
  		iVar0 = 0;
  		while (iVar0 < 9)
  		{
  			if (ENTITY::DOES_ENTITY_EXIST(Global_96075[iVar0]) && VEHICLE::IS_VEHICLE_DRIVEABLE(Global_96075[iVar0], false))
  			{
  				if (Global_96075[iVar0] == iParam0 && ENTITY::GET_ENTITY_MODEL(Global_96075[iVar0]) == ENTITY::GET_ENTITY_MODEL(iParam0))
  				{
  					return 1;
  				}
  			}
  			iVar0++;
  		}
  	}
  	return 0;
  }
  
  int func_425(int iParam0)
  {
  	int iVar0;
  	
  	if (ENTITY::DOES_ENTITY_EXIST(Global_75441.f_484[24]))
  	{
  		if (iParam0 == Global_75441.f_484[24])
  		{
  			return 0;
  		}
  	}
  	iVar0 = 0;
  	while (iVar0 < 68)
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(Global_75441.f_484[iVar0]))
  		{
  			if ((((((((((((iVar0 != 24 && iVar0 != 21) && iVar0 != 22) && iVar0 != 23) && iVar0 != 27) && iVar0 != 30) && iVar0 != 33) && iVar0 != 28) && iVar0 != 31) && iVar0 != 34) && iVar0 != 26) && iVar0 != 29) && iVar0 != 32)
  			{
  				if (iParam0 == Global_75441.f_484[iVar0])
  				{
  					return 1;
  				}
  			}
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  void func_426(int iParam0, bool bParam1)
  {
  	if (iParam0 == -1)
  	{
  		return;
  	}
  	if (bParam1)
  	{
  		if (!func_428(iParam0, 0))
  		{
  			func_427(iParam0, 1, 0);
  			func_427(iParam0, 2, 0);
  			func_427(iParam0, 3, 0);
  			func_427(iParam0, 4, 0);
  			func_427(iParam0, 0, 1);
  			Global_75441[iParam0] = 1;
  		}
  	}
  	else
  	{
  		func_427(iParam0, 0, 0);
  	}
  }
  
  void func_427(int iParam0, int iParam1, bool bParam2)
  {
  	if (iParam0 == -1)
  	{
  		return;
  	}
  	if (bParam2)
  	{
  		MISC::SET_BIT(&(Global_111638.f_32744[iParam0]), iParam1);
  	}
  	else
  	{
  		MISC::CLEAR_BIT(&(Global_111638.f_32744[iParam0]), iParam1);
  	}
  }
  
  bool func_428(int iParam0, int iParam1)
  {
  	if (iParam0 == -1)
  	{
  		return 0;
  	}
  	return MISC::IS_BIT_SET(Global_111638.f_32744[iParam0], iParam1);
  }
  
  void func_429(int iParam0)
  {
  	bool bVar0;
  	
  	if (iParam0 == -1)
  	{
  		return;
  	}
  	if (func_433(&(Global_75441.f_555[0 /*21*/]), iParam0))
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(Global_75441.f_139[iParam0]))
  		{
  			bVar0 = true;
  			if (!PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID()))
  			{
  				if (VEHICLE::IS_VEHICLE_DRIVEABLE(Global_75441.f_139[iParam0], false))
  				{
  					if (PED::IS_PED_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), Global_75441.f_139[iParam0], false))
  					{
  						bVar0 = false;
  					}
  				}
  			}
  			if (bVar0)
  			{
  				ENTITY::SET_ENTITY_AS_MISSION_ENTITY(Global_75441.f_139[iParam0], true, true);
  				VEHICLE::DELETE_VEHICLE(&(Global_75441.f_139[iParam0]));
  			}
  		}
  		Global_75441[iParam0] = 1;
  		if (MISC::IS_BIT_SET(Global_75441.f_555[0 /*21*/].f_9, 13))
  		{
  			if (((((iParam0 == 24 && func_428(iParam0, 0)) && Global_76350.f_66 == 0) && Global_111638.f_32744.f_1958[Global_75441.f_555[0 /*21*/].f_14] != 0) && Global_111638.f_32744.f_1958[Global_75441.f_555[0 /*21*/].f_14] > 3) && (!func_431(0, Global_75441.f_555[0 /*21*/].f_12) || !func_431(1, Global_75441.f_555[0 /*21*/].f_12)))
  			{
  				func_430(&(Global_111638.f_32744.f_69[Global_75441.f_555[0 /*21*/].f_14 /*78*/]), &Global_76350);
  				Global_76428 = Global_111638.f_32744.f_5591;
  			}
  			func_426(iParam0, 0);
  		}
  	}
  }
  
  void func_430(var uParam0, var uParam1)
  {
  	uParam1->f_66 = uParam0->f_66;
  	*uParam1 = *uParam0;
  	uParam1->f_1 = { uParam0->f_1 };
  	uParam1->f_5 = uParam0->f_5;
  	uParam1->f_6 = uParam0->f_6;
  	uParam1->f_7 = uParam0->f_7;
  	uParam1->f_8 = uParam0->f_8;
  	uParam1->f_9 = { uParam0->f_9 };
  	uParam1->f_59 = { uParam0->f_59 };
  	uParam1->f_62 = uParam0->f_62;
  	uParam1->f_63 = uParam0->f_63;
  	uParam1->f_64 = uParam0->f_64;
  	uParam1->f_65 = uParam0->f_65;
  	uParam1->f_77 = uParam0->f_77;
  	uParam1->f_67 = uParam0->f_67;
  	uParam1->f_69 = uParam0->f_69;
  	uParam1->f_68 = uParam0->f_68;
  	uParam1->f_71 = uParam0->f_71;
  	uParam1->f_72 = uParam0->f_72;
  	uParam1->f_73 = uParam0->f_73;
  	uParam1->f_74 = uParam0->f_74;
  	uParam1->f_75 = uParam0->f_75;
  	uParam1->f_76 = uParam0->f_76;
  }
  
  int func_431(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	switch (iParam1)
  	{
  		case 0:
  			iVar0 = 0;
  			break;
  		
  		case 1:
  			iVar0 = 1;
  			break;
  		
  		case 2:
  			iVar0 = 2;
  			break;
  	}
  	if (iParam0 < 0 || iParam0 >= func_432(&(Global_111638.f_32744.f_5038[iVar0 /*157*/])))
  	{
  		return 0;
  	}
  	return func_403(Global_111638.f_32744.f_5038[iVar0 /*157*/][iParam0 /*78*/].f_66, 0);
  }
  
  int func_432(var uParam0)
  {
  	return *uParam0;
  }
  
  int func_433(var uParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	*uParam0 = { 0f, 0f, 0f };
  	uParam0->f_3 = 0f;
  	uParam0->f_4 = 0;
  	StringCopy(&(uParam0->f_5), "", 16);
  	uParam0->f_9 = 0;
  	uParam0->f_10 = 0;
  	uParam0->f_11 = 0;
  	uParam0->f_12 = 145;
  	uParam0->f_13 = -1;
  	uParam0->f_14 = 0;
  	uParam0->f_15 = { 0f, 0f, 0f };
  	uParam0->f_18 = { 0f, 0f, 0f };
  	switch (iParam1)
  	{
  		case 0:
  			*uParam0 = { -831.8538f, 172.1154f, 69.9058f };
  			uParam0->f_3 = 157.5705f;
  			uParam0->f_4 = func_293(0, 1);
  			uParam0->f_12 = 0;
  			MISC::SET_BIT(&(uParam0->f_9), 20);
  			MISC::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_293(0, 1);
  			uParam0->f_12 = 0;
  			MISC::SET_BIT(&(uParam0->f_9), 20);
  			MISC::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_293(1, 1);
  			uParam0->f_12 = 1;
  			MISC::SET_BIT(&(uParam0->f_9), 20);
  			MISC::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_293(1, 2);
  			uParam0->f_12 = 1;
  			MISC::SET_BIT(&(uParam0->f_9), 19);
  			MISC::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_293(1, 1);
  			uParam0->f_12 = 1;
  			MISC::SET_BIT(&(uParam0->f_9), 20);
  			MISC::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_293(1, 2);
  			uParam0->f_12 = 1;
  			MISC::SET_BIT(&(uParam0->f_9), 19);
  			MISC::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_293(2, 1);
  			uParam0->f_12 = 2;
  			MISC::SET_BIT(&(uParam0->f_9), 20);
  			MISC::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_293(2, 1);
  			uParam0->f_12 = 2;
  			MISC::SET_BIT(&(uParam0->f_9), 20);
  			MISC::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_293(2, 1);
  			uParam0->f_12 = 2;
  			MISC::SET_BIT(&(uParam0->f_9), 20);
  			MISC::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");
  			MISC::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;
  			MISC::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;
  			MISC::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;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::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;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::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;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::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;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 22);
  			MISC::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;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 22);
  			MISC::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;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 22);
  			MISC::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 };
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::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 };
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::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;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 23);
  			MISC::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;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 24);
  			MISC::SET_BIT(&(uParam0->f_9), 28);
  			MISC::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;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 24);
  			MISC::SET_BIT(&(uParam0->f_9), 28);
  			MISC::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;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 24);
  			MISC::SET_BIT(&(uParam0->f_9), 28);
  			MISC::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);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 27);
  			MISC::SET_BIT(&(uParam0->f_9), 24);
  			MISC::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);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 27);
  			MISC::SET_BIT(&(uParam0->f_9), 24);
  			MISC::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);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 27);
  			MISC::SET_BIT(&(uParam0->f_9), 24);
  			MISC::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;
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 11);
  			MISC::SET_BIT(&(uParam0->f_9), 13);
  			MISC::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");
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 11);
  			MISC::SET_BIT(&(uParam0->f_9), 13);
  			MISC::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");
  			MISC::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;
  			MISC::SET_BIT(&(uParam0->f_9), 9);
  			MISC::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;
  			MISC::SET_BIT(&(uParam0->f_9), 9);
  			MISC::SET_BIT(&(uParam0->f_9), 23);
  			MISC::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");
  			MISC::SET_BIT(&(uParam0->f_9), 23);
  			MISC::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");
  			MISC::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");
  			MISC::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");
  			MISC::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");
  			MISC::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 = joaat("firetruk");
  			MISC::SET_BIT(&(uParam0->f_9), 23);
  			MISC::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;
  			MISC::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;
  			MISC::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;
  			MISC::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;
  			MISC::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;
  			MISC::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;
  			MISC::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;
  			MISC::SET_BIT(&(uParam0->f_9), 2);
  			MISC::SET_BIT(&(uParam0->f_9), 30);
  			MISC::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;
  			MISC::SET_BIT(&(uParam0->f_9), 2);
  			MISC::SET_BIT(&(uParam0->f_9), 22);
  			MISC::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_411())
  			{
  				uParam0->f_4 = joaat("blimp2");
  			}
  			else
  			{
  				uParam0->f_4 = joaat("blimp");
  			}
  			uParam0->f_13 = 401;
  			MISC::SET_BIT(&(uParam0->f_9), 13);
  			MISC::SET_BIT(&(uParam0->f_9), 2);
  			MISC::SET_BIT(&(uParam0->f_9), 1);
  			MISC::SET_BIT(&(uParam0->f_9), 23);
  			MISC::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_411())
  			{
  				uParam0->f_4 = joaat("blimp2");
  			}
  			else
  			{
  				uParam0->f_4 = joaat("blimp");
  			}
  			uParam0->f_13 = 401;
  			MISC::SET_BIT(&(uParam0->f_9), 13);
  			MISC::SET_BIT(&(uParam0->f_9), 2);
  			MISC::SET_BIT(&(uParam0->f_9), 1);
  			MISC::SET_BIT(&(uParam0->f_9), 23);
  			MISC::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");
  			MISC::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;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 23);
  			MISC::SET_BIT(&(uParam0->f_9), 6);
  			MISC::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");
  			MISC::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");
  			MISC::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");
  			MISC::SET_BIT(&(uParam0->f_9), 30);
  			MISC::SET_BIT(&(uParam0->f_9), 23);
  			MISC::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");
  			MISC::SET_BIT(&(uParam0->f_9), 30);
  			MISC::SET_BIT(&(uParam0->f_9), 23);
  			MISC::SET_BIT(&(uParam0->f_9), 6);
  			iVar0 = 1;
  			break;
  	}
  	if (MISC::IS_BIT_SET(uParam0->f_9, 10))
  	{
  		uParam0->f_4 = Global_111638.f_32744.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_209(Global_111638.f_32744.f_1864[uParam0->f_14 /*3*/], 0f, 0f, 0f, 0))
  		{
  			*uParam0 = { Global_111638.f_32744.f_1864[uParam0->f_14 /*3*/] };
  		}
  		if (Global_111638.f_32744.f_1934[uParam0->f_14] != -1f)
  		{
  			uParam0->f_3 = Global_111638.f_32744.f_1934[uParam0->f_14];
  		}
  	}
  	if (MISC::IS_BIT_SET(uParam0->f_9, 19))
  	{
  		if (!func_209(Global_111638.f_2358.f_539.f_3588[1 /*10*/][uParam0->f_12 /*3*/], 0f, 0f, 0f, 0))
  		{
  			*uParam0 = { Global_111638.f_2358.f_539.f_3588[1 /*10*/][uParam0->f_12 /*3*/] };
  			uParam0->f_3 = Global_111638.f_2358.f_539.f_3609[1 /*4*/][uParam0->f_12];
  		}
  	}
  	else if (MISC::IS_BIT_SET(uParam0->f_9, 20))
  	{
  		if (!func_209(Global_111638.f_2358.f_539.f_3588[0 /*10*/][uParam0->f_12 /*3*/], 0f, 0f, 0f, 0))
  		{
  			*uParam0 = { Global_111638.f_2358.f_539.f_3588[0 /*10*/][uParam0->f_12 /*3*/] };
  			uParam0->f_3 = Global_111638.f_2358.f_539.f_3609[0 /*4*/][uParam0->f_12];
  		}
  	}
  	return iVar0;
  }
  
  int func_434(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	
  	iVar0 = 0;
  	while (iVar0 < 68)
  	{
  		if ((ENTITY::DOES_ENTITY_EXIST(Global_75441.f_484[iVar0]) && !ENTITY::IS_ENTITY_DEAD(Global_75441.f_484[iVar0], false)) && VEHICLE::IS_VEHICLE_DRIVEABLE(Global_75441.f_484[iVar0], false))
  		{
  			VEHICLE::GET_VEHICLE_COLOURS(iParam0, &iVar1, &iVar2);
  			VEHICLE::GET_VEHICLE_COLOURS(Global_75441.f_484[iVar0], &iVar3, &iVar4);
  			if (((ENTITY::GET_ENTITY_MODEL(iParam0) == ENTITY::GET_ENTITY_MODEL(Global_75441.f_484[iVar0]) && VEHICLE::GET_VEHICLE_LIVERY(iParam0) == VEHICLE::GET_VEHICLE_LIVERY(Global_75441.f_484[iVar0])) && iVar1 == iVar2) && iVar3 == iVar4)
  			{
  				return iVar0;
  			}
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  int func_435(int iParam0, struct<3> Param1, bool bParam2)
  {
  	int iVar0;
  	var uVar1[3];
  	int iVar2;
  	int iVar3;
  	
  	iVar0 = ENTITY::GET_ENTITY_MODEL(iParam0);
  	switch (iVar0)
  	{
  		case joaat("cargobob"):
  			if (func_436(iParam0, Global_75441.f_139[38], 0))
  			{
  				func_429(38);
  				return 1;
  			}
  			break;
  		
  		case joaat("firetruk"):
  			if (func_436(iParam0, Global_75441.f_139[43], 1))
  			{
  				func_429(43);
  				return 1;
  			}
  			break;
  		
  		case joaat("cuban800"):
  			iVar2 = PED::GET_PED_NEARBY_VEHICLES(PLAYER::PLAYER_PED_ID(), &uVar1);
  			iVar3 = 0;
  			while (iVar3 <= (iVar2 - 1))
  			{
  				if (func_436(iParam0, uVar1[iVar3], 1) && func_402(ENTITY::GET_ENTITY_COORDS(uVar1[iVar3], true), 2136.133f, 4780.563f, 39.9702f, 5f, 0))
  				{
  					if ((!bParam2 || func_209(Param1, 0f, 0f, 0f, 0)) || MISC::GET_DISTANCE_BETWEEN_COORDS(ENTITY::GET_ENTITY_COORDS(iParam0, true), ENTITY::GET_ENTITY_COORDS(uVar1[iVar3], true), true) < 10f)
  					{
  						VEHICLE::DELETE_VEHICLE(&iParam0);
  						return 1;
  					}
  					else
  					{
  						return 0;
  					}
  				}
  				iVar3++;
  			}
  			break;
  		
  		case joaat("luxor2"):
  			if ((ENTITY::DOES_ENTITY_EXIST(Global_75441.f_484[14]) && VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false)) && VEHICLE::IS_VEHICLE_DRIVEABLE(Global_75441.f_484[14], false))
  			{
  				if (ENTITY::GET_ENTITY_MODEL(Global_75441.f_484[14]) == joaat("luxor2") && VEHICLE::GET_VEHICLE_LIVERY(iParam0) == VEHICLE::GET_VEHICLE_LIVERY(Global_75441.f_484[14]))
  				{
  					func_429(14);
  					return 1;
  				}
  			}
  			break;
  		
  		case joaat("swift2"):
  			if ((ENTITY::DOES_ENTITY_EXIST(Global_75441.f_484[20]) && VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false)) && VEHICLE::IS_VEHICLE_DRIVEABLE(Global_75441.f_484[20], false))
  			{
  				if (ENTITY::GET_ENTITY_MODEL(Global_75441.f_484[20]) == joaat("swift2") && VEHICLE::GET_VEHICLE_LIVERY(iParam0) == VEHICLE::GET_VEHICLE_LIVERY(Global_75441.f_484[20]))
  				{
  					func_429(20);
  					return 1;
  				}
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_436(int iParam0, int iParam1, bool bParam2)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	
  	if ((ENTITY::DOES_ENTITY_EXIST(iParam1) && !ENTITY::IS_ENTITY_DEAD(iParam1, false)) && VEHICLE::IS_VEHICLE_DRIVEABLE(iParam1, false))
  	{
  		if (bParam2)
  		{
  			VEHICLE::GET_VEHICLE_COLOURS(iParam0, &iVar0, &iVar1);
  			VEHICLE::GET_VEHICLE_COLOURS(iParam1, &iVar2, &iVar3);
  			if (iVar0 == iVar2 && iVar1 == iVar3)
  			{
  				return 1;
  			}
  		}
  		else
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_437(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 9)
  	{
  		if (!ENTITY::DOES_ENTITY_EXIST(Global_96075[iVar0]))
  		{
  			Global_96075[iVar0] = iParam0;
  			Global_96085[iVar0] = iParam1;
  			Global_96095[iVar0] = ENTITY::GET_ENTITY_MODEL(iParam0);
  			if (VEHICLE::IS_THIS_MODEL_A_CAR(Global_96095[iVar0]))
  			{
  				Global_96123[iParam1 /*3*/][0] = -1;
  			}
  			else
  			{
  				Global_96123[iParam1 /*3*/][1] = -1;
  			}
  			iVar0 = 9;
  		}
  		if (iVar0 == 8)
  		{
  		}
  		iVar0++;
  	}
  }
  
  void func_438(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 9)
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(Global_96075[iVar0]))
  		{
  			if (iParam0 == 145 || Global_96085[iVar0] == iParam0)
  			{
  				if (iParam1 == 0 || ENTITY::GET_ENTITY_MODEL(Global_96075[iVar0]) == func_293(iParam0, iParam1))
  				{
  					if (!PED::IS_PED_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), Global_96075[iVar0], false))
  					{
  						ENTITY::SET_ENTITY_AS_MISSION_ENTITY(Global_96075[iVar0], false, true);
  						VEHICLE::DELETE_VEHICLE(&(Global_96075[iVar0]));
  						Global_96085[iVar0] = 145;
  					}
  				}
  			}
  		}
  		iVar0++;
  	}
  }
  
  void func_439(int iParam0, var uParam1, bool bParam2, bool bParam3)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	
  	if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  	{
  		if (!func_448(iParam0))
  		{
  			if (MISC::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 (MISC::IS_BIT_SET(uParam1->f_77, func_296(iVar0 + 1)))
  			{
  			}
  			else
  			{
  				MISC::SET_BIT(&(uParam1->f_77), func_296(iVar0 + 1));
  			}
  		}
  		else if (uParam1->f_66 == joaat("sandking") || uParam1->f_66 == joaat("sandking2"))
  		{
  			iVar1 = 1;
  			if (MISC::IS_BIT_SET(uParam1->f_77, func_296(iVar1 + 1)))
  			{
  			}
  			else
  			{
  				MISC::SET_BIT(&(uParam1->f_77), func_296(iVar1 + 1));
  			}
  		}
  		else if (uParam1->f_66 == joaat("formula") || uParam1->f_66 == joaat("formula2"))
  		{
  			iVar2 = 1;
  			while (iVar2 <= 9)
  			{
  				if (MISC::IS_BIT_SET(uParam1->f_77, func_296(iVar2)))
  				{
  				}
  				else
  				{
  					MISC::SET_BIT(&(uParam1->f_77), func_296(iVar2));
  				}
  				iVar2++;
  			}
  		}
  		else if (uParam1->f_66 == joaat("openwheel1"))
  		{
  			iVar3 = 1;
  			while (iVar3 <= 6)
  			{
  				if (MISC::IS_BIT_SET(uParam1->f_77, func_296(iVar3)))
  				{
  				}
  				else
  				{
  					MISC::SET_BIT(&(uParam1->f_77), func_296(iVar3));
  				}
  				iVar3++;
  			}
  		}
  		else if (uParam1->f_66 == joaat("openwheel2"))
  		{
  			iVar4 = 1;
  			while (iVar4 <= 11)
  			{
  				if (iVar4 != 9 && iVar4 != 10)
  				{
  					if (MISC::IS_BIT_SET(uParam1->f_77, func_296(iVar4)))
  					{
  					}
  					else
  					{
  						MISC::SET_BIT(&(uParam1->f_77), func_296(iVar4));
  					}
  				}
  				iVar4++;
  			}
  		}
  		else if (uParam1->f_66 == joaat("coquette4"))
  		{
  			if (VEHICLE::GET_VEHICLE_MOD(iParam0, 10) != 0)
  			{
  				MISC::SET_BIT(&(uParam1->f_77), 0);
  			}
  		}
  		if (uParam1->f_66 == joaat("nightshark"))
  		{
  			VEHICLE::_SET_DISABLE_VEHICLE_WINDOW_COLLISIONS(iParam0, false);
  			if (VEHICLE::GET_VEHICLE_MOD(iParam0, 5) != -1)
  			{
  				VEHICLE::_SET_DISABLE_VEHICLE_WINDOW_COLLISIONS(iParam0, true);
  			}
  		}
  		if (MISC::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 (MISC::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);
  		}
  		if (uParam1->f_5 != -1 && uParam1->f_6 != -1)
  		{
  			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 (((MISC::IS_BIT_SET(uParam1->f_77, 15) || func_447(iParam0)) || (((uParam1->f_62 == 0 && uParam1->f_63 == 0) && uParam1->f_64 == 0) && uParam1->f_9[20] > 0)) && func_446())
  		{
  			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 && !func_298(uParam1->f_66))
  		{
  			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, !MISC::IS_BIT_SET(uParam1->f_77, 9));
  		if (bParam2)
  		{
  			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, MISC::IS_BIT_SET(uParam1->f_77, 28));
  		VEHICLE::_SET_VEHICLE_NEON_LIGHT_ENABLED(iParam0, 3, MISC::IS_BIT_SET(uParam1->f_77, 29));
  		VEHICLE::_SET_VEHICLE_NEON_LIGHT_ENABLED(iParam0, 0, MISC::IS_BIT_SET(uParam1->f_77, 30));
  		VEHICLE::_SET_VEHICLE_NEON_LIGHT_ENABLED(iParam0, 1, MISC::IS_BIT_SET(uParam1->f_77, 31));
  		VEHICLE::SET_VEHICLE_IS_STOLEN(iParam0, MISC::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_445(iParam0, uParam1->f_69);
  					}
  				}
  				else
  				{
  					func_445(iParam0, uParam1->f_69);
  				}
  			}
  		}
  		if (VEHICLE::IS_VEHICLE_A_CONVERTIBLE(iParam0, false))
  		{
  			if ((uParam1->f_68 == 0 || uParam1->f_68 == 3) || uParam1->f_68 == 5)
  			{
  				VEHICLE::RAISE_CONVERTIBLE_ROOF(iParam0, true);
  			}
  			else
  			{
  				VEHICLE::LOWER_CONVERTIBLE_ROOF(iParam0, true);
  			}
  		}
  		if (bParam3)
  		{
  			func_440(&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))
  		{
  			iVar5 = 0;
  			while (iVar5 <= 11)
  			{
  				if (MISC::IS_BIT_SET(uParam1->f_77, func_296(iVar5 + 1)))
  				{
  					if (!VEHICLE::IS_VEHICLE_EXTRA_TURNED_ON(iParam0, iVar5 + 1))
  					{
  						VEHICLE::SET_VEHICLE_EXTRA(iParam0, iVar5 + 1, false);
  					}
  				}
  				else if (VEHICLE::IS_VEHICLE_EXTRA_TURNED_ON(iParam0, iVar5 + 1))
  				{
  					VEHICLE::SET_VEHICLE_EXTRA(iParam0, iVar5 + 1, true);
  				}
  				iVar5++;
  			}
  		}
  		if ((ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("sheava") || ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("omnis")) || ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("le7b"))
  		{
  			if (VEHICLE::GET_VEHICLE_MOD(iParam0, 0) == -1)
  			{
  				VEHICLE::SET_VEHICLE_EXTRA(iParam0, 1, false);
  			}
  		}
  		if (((VEHICLE::IS_THIS_MODEL_A_PLANE(uParam1->f_66) && VEHICLE::_DOES_VEHICLE_HAVE_LANDING_GEAR(iParam0)) && !VEHICLE::IS_VEHICLE_MODEL(iParam0, joaat("avenger"))) && !((((Global_4456448.f_75705 == 6 || Global_4456448.f_75705 == 7) || Global_4456448.f_75705 == 18) || Global_4456448.f_75705 == 19) && Global_4456448.f_2 == 20))
  		{
  			if (!MISC::IS_BIT_SET(uParam1->f_77, 23))
  			{
  				if (MISC::IS_BIT_SET(uParam1->f_77, 22))
  				{
  					VEHICLE::CONTROL_LANDING_GEAR(iParam0, 2);
  				}
  				else
  				{
  					VEHICLE::CONTROL_LANDING_GEAR(iParam0, 3);
  				}
  			}
  			else
  			{
  				VEHICLE::CONTROL_LANDING_GEAR(iParam0, 4);
  			}
  		}
  		if (MISC::IS_BIT_SET(uParam1->f_77, 27))
  		{
  			DECORATOR::DECOR_SET_BOOL(iParam0, "IgnoredByQuickSave", true);
  		}
  		else
  		{
  			DECORATOR::DECOR_SET_BOOL(iParam0, "IgnoredByQuickSave", false);
  		}
  	}
  }
  
  int func_440(int iParam0, var uParam1, var uParam2)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!VEHICLE::IS_VEHICLE_DRIVEABLE(*iParam0, false))
  	{
  		return 0;
  	}
  	if (VEHICLE::GET_NUM_MOD_KITS(*iParam0) == 0)
  	{
  		return 0;
  	}
  	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)
  		{
  			VEHICLE::TOGGLE_VEHICLE_MOD(*iParam0, iVar1, (*uParam1)[iVar0] > 0);
  		}
  		else if (iVar1 == 22)
  		{
  			if ((*uParam1)[iVar0] > 0)
  			{
  				VEHICLE::TOGGLE_VEHICLE_MOD(*iParam0, iVar1, true);
  				if ((*uParam1)[iVar0] == 1)
  				{
  					VEHICLE::_SET_VEHICLE_XENON_LIGHTS_COLOR(*iParam0, 255);
  				}
  				else
  				{
  					VEHICLE::_SET_VEHICLE_XENON_LIGHTS_COLOR(*iParam0, ((*uParam1)[iVar0] - 2));
  				}
  			}
  			else
  			{
  				VEHICLE::TOGGLE_VEHICLE_MOD(*iParam0, iVar1, false);
  			}
  		}
  		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_444(ENTITY::GET_ENTITY_MODEL(*iParam0), 1) && VEHICLE::GET_VEHICLE_MOD(*iParam0, 24) != func_443(*iParam0, ((*uParam1)[38] - 1)))
  	{
  		VEHICLE::SET_VEHICLE_MOD(*iParam0, 24, func_443(*iParam0, ((*uParam1)[38] - 1)), false);
  	}
  	func_442(iParam0);
  	if (func_441(*iParam0))
  	{
  		VEHICLE::SET_VEHICLE_STRONG(*iParam0, true);
  		VEHICLE::SET_VEHICLE_HAS_STRONG_AXLES(*iParam0, true);
  	}
  	return 1;
  }
  
  int func_441(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	char cVar3[16];
  	
  	if ((ENTITY::DOES_ENTITY_EXIST(iParam0) && VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false)) && 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 = MISC::GET_HASH_KEY(&cVar3);
  				if (iVar2 != 0)
  				{
  					if (iVar2 == MISC::GET_HASH_KEY("MNU_CAGE") || iVar2 == MISC::GET_HASH_KEY("SABRE_CAG"))
  					{
  						return 1;
  					}
  				}
  			}
  			iVar0++;
  		}
  	}
  	return 0;
  }
  
  void func_442(var uParam0)
  {
  	switch (ENTITY::GET_ENTITY_MODEL(*uParam0))
  	{
  		case joaat("starling"):
  			if (VEHICLE::GET_VEHICLE_MOD(*uParam0, 4) == 0)
  			{
  				VEHICLE::SET_VEHICLE_MOD(*uParam0, 13, 0, false);
  			}
  			else
  			{
  				VEHICLE::REMOVE_VEHICLE_MOD(*uParam0, 13);
  			}
  			break;
  	}
  }
  
  int func_443(int iParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	float fVar2;
  	int iVar3;
  	
  	if (ENTITY::DOES_ENTITY_EXIST(iParam0) && VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  	{
  		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;
  }
  
  int func_444(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case joaat("faction2"):
  		case joaat("buccaneer2"):
  		case joaat("chino2"):
  		case joaat("moonbeam2"):
  		case joaat("primo2"):
  		case joaat("voodoo"):
  			return 1;
  			break;
  		
  		case joaat("sabregt2"):
  			if (!Global_262145.f_14219)
  			{
  				return 0;
  			}
  			else
  			{
  				return 1;
  			}
  			break;
  		
  		case joaat("tornado5"):
  			if (!Global_262145.f_14220)
  			{
  				return 0;
  			}
  			else
  			{
  				return 1;
  			}
  			break;
  		
  		case joaat("virgo2"):
  			if (!Global_262145.f_14218)
  			{
  				return 0;
  			}
  			else
  			{
  				return 1;
  			}
  			break;
  		
  		case joaat("minivan2"):
  			if (!Global_262145.f_14221)
  			{
  				return 0;
  			}
  			else
  			{
  				return 1;
  			}
  			break;
  		
  		case joaat("slamvan3"):
  			if (!Global_262145.f_14223)
  			{
  				return 0;
  			}
  			else
  			{
  				return 1;
  			}
  			break;
  		
  		case joaat("faction3"):
  			if (!Global_262145.f_14222)
  			{
  				return 0;
  			}
  			else
  			{
  				return 1;
  			}
  			break;
  		
  		case joaat("sultanrs"):
  		case joaat("banshee2"):
  			if (iParam1 & 1 != 0)
  			{
  				return 0;
  			}
  			return 1;
  			break;
  		
  		case joaat("comet3"):
  			if (Global_262145.f_18669)
  			{
  				if (iParam1 & 1 != 0)
  				{
  					return 0;
  				}
  				return 1;
  			}
  			return 0;
  			break;
  		
  		case joaat("diablous2"):
  			if (Global_262145.f_18671)
  			{
  				if (iParam1 & 1 != 0)
  				{
  					return 0;
  				}
  				return 1;
  			}
  			return 0;
  			break;
  		
  		case joaat("fcr2"):
  			if (Global_262145.f_18675)
  			{
  				if (iParam1 & 1 != 0)
  				{
  					return 0;
  				}
  				return 1;
  			}
  			return 0;
  			break;
  		
  		case joaat("elegy"):
  			if (Global_262145.f_18672)
  			{
  				if (iParam1 & 1 != 0)
  				{
  					return 0;
  				}
  				return 1;
  			}
  			return 0;
  			break;
  		
  		case joaat("nero2"):
  			if (Global_262145.f_18679)
  			{
  				if (iParam1 & 1 != 0)
  				{
  					return 0;
  				}
  				return 1;
  			}
  			return 0;
  			break;
  		
  		case joaat("italigtb2"):
  			if (Global_262145.f_18677)
  			{
  				if (iParam1 & 1 != 0)
  				{
  					return 0;
  				}
  				return 1;
  			}
  			return 0;
  			break;
  		
  		case joaat("specter2"):
  			if (Global_262145.f_18682)
  			{
  				if (iParam1 & 1 != 0)
  				{
  					return 0;
  				}
  				return 1;
  			}
  			return 0;
  			break;
  		
  		case joaat("technical3"):
  			if (Global_262145.f_20625)
  			{
  				if (iParam1 & 1 != 0)
  				{
  					return 0;
  				}
  				return 1;
  			}
  			return 0;
  			break;
  		
  		case joaat("insurgent3"):
  			if (Global_262145.f_20626)
  			{
  				if (iParam1 & 1 != 0)
  				{
  					return 0;
  				}
  				return 1;
  			}
  			return 0;
  			break;
  		
  		case joaat("slamvan4"):
  		case joaat("slamvan5"):
  		case joaat("slamvan6"):
  			if (iParam1 & 1 != 0)
  			{
  				return 0;
  			}
  			return 1;
  			break;
  		
  		case joaat("issi4"):
  		case joaat("issi5"):
  		case joaat("issi6"):
  			if (iParam1 & 1 != 0)
  			{
  				return 0;
  			}
  			return 1;
  			break;
  		
  		case joaat("impaler2"):
  		case joaat("impaler3"):
  		case joaat("impaler4"):
  			if (iParam1 & 1 != 0)
  			{
  				return 0;
  			}
  			return 1;
  			break;
  		
  		case joaat("deathbike"):
  		case joaat("deathbike2"):
  		case joaat("deathbike3"):
  			if (iParam1 & 1 != 0)
  			{
  				return 0;
  			}
  			return 1;
  			break;
  		
  		case joaat("monster3"):
  		case joaat("monster4"):
  		case joaat("monster5"):
  			if (iParam1 & 1 != 0)
  			{
  				return 0;
  			}
  			return 1;
  			break;
  		
  		case joaat("dominator4"):
  		case joaat("dominator5"):
  		case joaat("dominator6"):
  			if (iParam1 & 1 != 0)
  			{
  				return 0;
  			}
  			return 1;
  			break;
  		
  		case joaat("bruiser"):
  		case joaat("bruiser2"):
  		case joaat("bruiser3"):
  			if (iParam1 & 1 != 0)
  			{
  				return 0;
  			}
  			return 1;
  			break;
  		
  		case joaat("youga3"):
  		case joaat("gauntlet5"):
  		case joaat("yosemite3"):
  			if (iParam1 & 1 != 0)
  			{
  				return 0;
  			}
  			return 1;
  			break;
  		
  		case joaat("manana2"):
  		case joaat("peyote3"):
  		case joaat("glendale2"):
  			return 1;
  			break;
  	}
  	return 0;
  }
  
  void func_445(int iParam0, int iParam1)
  {
  	int iVar0;
  	bool bVar1;
  	
  	if (VEHICLE::GET_NUM_MOD_KITS(iParam0) > 0)
  	{
  		VEHICLE::SET_VEHICLE_MOD_KIT(iParam0, 0);
  		iVar0 = VEHICLE::GET_VEHICLE_MOD(iParam0, 24);
  		bVar1 = VEHICLE::GET_VEHICLE_MOD_VARIATION(iParam0, 24);
  		VEHICLE::SET_VEHICLE_WHEEL_TYPE(iParam0, iParam1);
  		if (ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("tornado6") || ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("peyote2"))
  		{
  			return;
  		}
  		if (iVar0 == -1)
  		{
  			VEHICLE::REMOVE_VEHICLE_MOD(iParam0, 24);
  		}
  		else
  		{
  			VEHICLE::SET_VEHICLE_MOD(iParam0, 24, iVar0, bVar1 == 1);
  		}
  	}
  }
  
  bool func_446()
  {
  	return DLC::IS_DLC_PRESENT(-1691188696);
  }
  
  int func_447(int iParam0)
  {
  	int iVar0;
  	
  	if (ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  		{
  			if (DECORATOR::DECOR_IS_REGISTERED_AS_TYPE("MPBitset", 3))
  			{
  				if (DECORATOR::DECOR_EXIST_ON(iParam0, "MPBitset"))
  				{
  					iVar0 = DECORATOR::DECOR_GET_INT(iParam0, "MPBitset");
  				}
  				return MISC::IS_BIT_SET(iVar0, 4);
  			}
  		}
  	}
  	return 0;
  }
  
  int func_448(int iParam0)
  {
  	if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  	{
  		if (!func_454(PLAYER::PLAYER_ID(), -1))
  		{
  			iParam0 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  		}
  	}
  	if (!ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		return 0;
  	}
  	if (ENTITY::IS_ENTITY_DEAD(iParam0, false))
  	{
  		return 0;
  	}
  	if (!VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  	{
  		return 0;
  	}
  	if (func_450(PLAYER::PLAYER_ID()) == 3)
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(iParam0) && VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  		{
  			if (func_449(iParam0) != -1)
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_449(int iParam0)
  {
  	if (DECORATOR::DECOR_IS_REGISTERED_AS_TYPE("FMDeliverableID", 3))
  	{
  		if (DECORATOR::DECOR_EXIST_ON(iParam0, "FMDeliverableID"))
  		{
  			return DECORATOR::DECOR_GET_INT(iParam0, "FMDeliverableID");
  		}
  	}
  	return -1;
  }
  
  int func_450(int iParam0)
  {
  	if (func_453(iParam0) == 233)
  	{
  		return func_451(iParam0);
  	}
  	return -1;
  }
  
  int func_451(int iParam0)
  {
  	if (func_452(iParam0, 0))
  	{
  		return Global_1628237[iParam0 /*615*/].f_11.f_181;
  	}
  	return -1;
  }
  
  int func_452(int iParam0, int iParam1)
  {
  	if (Global_1628237[iParam0 /*615*/].f_11.f_33 != -1 || (iParam1 && Global_1628237[iParam0 /*615*/].f_11.f_32 != -1))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_453(int iParam0)
  {
  	if (func_452(iParam0, 0))
  	{
  		return Global_1628237[iParam0 /*615*/].f_11.f_33;
  	}
  	return -1;
  }
  
  int func_454(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (func_199(iParam0, 1, 1))
  	{
  		if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::GET_PLAYER_PED(iParam0), false))
  		{
  			iVar0 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED(iParam0), false);
  			if (VEHICLE::IS_VEHICLE_DRIVEABLE(iVar0, false))
  			{
  				if (PLAYER::PLAYER_PED_ID() == VEHICLE::GET_PED_IN_VEHICLE_SEAT(iVar0, iParam1, 0))
  				{
  					return 1;
  				}
  			}
  		}
  	}
  	return 0;
  }
  
  void func_455(struct<3> Param0, float fParam1, bool bParam2)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 68)
  	{
  		if (func_433(&(Global_75441.f_555[0 /*21*/]), iVar0))
  		{
  			if (MISC::GET_DISTANCE_BETWEEN_COORDS(Param0, Global_75441.f_555[0 /*21*/], bParam2) <= fParam1)
  			{
  				func_429(iVar0);
  			}
  		}
  		iVar0++;
  	}
  }
  
  void func_456(var uParam0, var uParam1, bool bParam2)
  {
  	PLAYER::SET_WANTED_LEVEL_MULTIPLIER(0.2f);
  	if (uParam0->f_274 == 1)
  	{
  		HUD::REQUEST_ADDITIONAL_TEXT("ASS_hk", 3);
  		TASK::REQUEST_WAYPOINT_RECORDING("OJAShk_101");
  		TASK::REQUEST_WAYPOINT_RECORDING("OJAShk_102");
  		TASK::REQUEST_WAYPOINT_RECORDING("OJAShk_103");
  		TASK::REQUEST_WAYPOINT_RECORDING("OJAShk_104");
  		STREAMING::REQUEST_ANIM_DICT("ODDJOBS@assassinate@vice@incar");
  		STREAMING::REQUEST_ANIM_DICT("mini@hookers_spvanilla");
  	}
  	else if (uParam0->f_274 == 0)
  	{
  		HUD::REQUEST_ADDITIONAL_TEXT("ASS_bs", 3);
  		TASK::REQUEST_WAYPOINT_RECORDING("OJASbs_102");
  		TASK::REQUEST_WAYPOINT_RECORDING("OJASbs01");
  		TASK::REQUEST_WAYPOINT_RECORDING("OJASbs02");
  		TASK::REQUEST_WAYPOINT_RECORDING("OJASbs03");
  		TASK::REQUEST_WAYPOINT_RECORDING("OJASbs04");
  		STREAMING::REQUEST_ANIM_DICT("ODDJOBS@assassinate@old_lady");
  		STREAMING::REQUEST_CLIP_SET("move_m@casual@d");
  		VEHICLE::REQUEST_VEHICLE_ASSET(uParam0->f_5, 3);
  		VEHICLE::REQUEST_VEHICLE_ASSET(uParam0->f_15, 3);
  		STREAMING::REQUEST_PTFX_ASSET();
  	}
  	else if (uParam0->f_274 == 2)
  	{
  		HUD::REQUEST_ADDITIONAL_TEXT("ASS_ml", 3);
  		STREAMING::REQUEST_PTFX_ASSET();
  	}
  	func_462(&(uParam0->f_34));
  	func_459(&(uParam0->f_46), uParam1);
  	if (bParam2)
  	{
  		func_457();
  		while (!func_399())
  		{
  			func_501(uParam1);
  			SYSTEM::WAIT(0);
  		}
  	}
  	if (uParam0->f_274 == 0)
  	{
  		while (((((((((!TASK::GET_IS_WAYPOINT_RECORDING_LOADED("OJASbs_102") || !TASK::GET_IS_WAYPOINT_RECORDING_LOADED("OJASbs01")) || !TASK::GET_IS_WAYPOINT_RECORDING_LOADED("OJASbs02")) || !TASK::GET_IS_WAYPOINT_RECORDING_LOADED("OJASbs03")) || !TASK::GET_IS_WAYPOINT_RECORDING_LOADED("OJASbs04")) || !STREAMING::HAS_ANIM_DICT_LOADED("ODDJOBS@assassinate@old_lady")) || !VEHICLE::HAS_VEHICLE_ASSET_LOADED(uParam0->f_5)) || !VEHICLE::HAS_VEHICLE_ASSET_LOADED(uParam0->f_15)) || !STREAMING::HAS_PTFX_ASSET_LOADED()) || !STREAMING::HAS_CLIP_SET_LOADED("move_m@casual@d"))
  		{
  			func_501(uParam1);
  			SYSTEM::WAIT(0);
  		}
  	}
  	else if (uParam0->f_274 == 1)
  	{
  		while (((((!TASK::GET_IS_WAYPOINT_RECORDING_LOADED("OJAShk_101") || !TASK::GET_IS_WAYPOINT_RECORDING_LOADED("OJAShk_102")) || !TASK::GET_IS_WAYPOINT_RECORDING_LOADED("OJAShk_103")) || !TASK::GET_IS_WAYPOINT_RECORDING_LOADED("OJAShk_104")) || !STREAMING::HAS_ANIM_DICT_LOADED("ODDJOBS@assassinate@vice@incar")) || !STREAMING::HAS_ANIM_DICT_LOADED("mini@hookers_spvanilla"))
  		{
  			func_501(uParam1);
  			SYSTEM::WAIT(0);
  		}
  	}
  	else if (uParam0->f_274 == 2)
  	{
  		while (!STREAMING::HAS_PTFX_ASSET_LOADED())
  		{
  			func_501(uParam1);
  			SYSTEM::WAIT(0);
  		}
  	}
  	while ((!HUD::HAS_ADDITIONAL_TEXT_LOADED(3) || !func_394(&(uParam0->f_34))) || !func_390(uParam1))
  	{
  		func_501(uParam1);
  		SYSTEM::WAIT(0);
  	}
  	if (uParam0->f_274 == 1)
  	{
  		MISC::CLEAR_AREA_OF_VEHICLES(uParam0->f_18, 100f, false, false, false, false, false, false);
  		VEHICLE::SET_ALL_VEHICLE_GENERATORS_ACTIVE_IN_AREA(-690.763f, -1607.467f, -100.9649f, -404.4197f, -1856.529f, 100.5908f, false, true);
  		VEHICLE::SET_RANDOM_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME(0.2f);
  		StringCopy(&Local_716, "ASS_HK_PASSED", 24);
  		StringCopy(&(Local_716.f_6), "ASS_HK_NAME", 24);
  		StringCopy(&(Local_716.f_12), "ASS_HK_TIMER", 24);
  		StringCopy(&(Local_716.f_18), "ASS_HK_BASE", 24);
  		StringCopy(&(Local_716.f_24), "ASS_HK_BDESC", 24);
  		StringCopy(&(Local_716.f_30), "ASS_HK_CASH", 24);
  		StringCopy(&(Local_716.f_36), "ASS_HK_COMP", 24);
  		StringCopy(&(Local_716.f_42), "ASS_HK_COMP", 24);
  		StringCopy(&(Local_716.f_48), "ASS_HK_COMP", 24);
  		StringCopy(&(Local_716.f_54), "ASS_HK_COMP", 24);
  		StringCopy(&(Local_716.f_60), "ASS_HK_CONT", 24);
  		fLocal_124 = 3000f;
  		fLocal_125 = 2000f;
  	}
  	else if (uParam0->f_274 == 0)
  	{
  		StringCopy(&Local_716, "ASS_BS_PASSED", 24);
  		StringCopy(&(Local_716.f_6), "ASS_BS_NAME", 24);
  		StringCopy(&(Local_716.f_12), "ASS_BS_TIMER", 24);
  		StringCopy(&(Local_716.f_18), "ASS_BS_BASE", 24);
  		StringCopy(&(Local_716.f_24), "ASS_BS_BDESC", 24);
  		StringCopy(&(Local_716.f_30), "ASS_BS_CASH", 24);
  		StringCopy(&(Local_716.f_36), "ASS_BS_COMP", 24);
  		StringCopy(&(Local_716.f_42), "ASS_BS_COMP", 24);
  		StringCopy(&(Local_716.f_48), "ASS_BS_COMP", 24);
  		StringCopy(&(Local_716.f_54), "ASS_BS_COMP", 24);
  		StringCopy(&(Local_716.f_60), "ASS_BS_CONT", 24);
  		fLocal_124 = 5000f;
  		fLocal_125 = 2000f;
  	}
  	else if (uParam0->f_274 == 2)
  	{
  		StringCopy(&Local_716, "ASS_ML_PASSED", 24);
  		StringCopy(&(Local_716.f_6), "ASS_ML_NAME", 24);
  		StringCopy(&(Local_716.f_12), "ASS_ML_TIMER", 24);
  		StringCopy(&(Local_716.f_18), "ASS_ML_BASE", 24);
  		StringCopy(&(Local_716.f_24), "ASS_ML_BDESC", 24);
  		StringCopy(&(Local_716.f_30), "ASS_ML_CASH", 24);
  		StringCopy(&(Local_716.f_36), "ASS_ML_COMP", 24);
  		StringCopy(&(Local_716.f_42), "ASS_ML_COMP", 24);
  		StringCopy(&(Local_716.f_48), "ASS_ML_COMP", 24);
  		StringCopy(&(Local_716.f_54), "ASS_ML_COMP", 24);
  		StringCopy(&(Local_716.f_60), "ASS_ML_CONT", 24);
  		fLocal_124 = 5000f;
  		fLocal_125 = 2000f;
  	}
  	PLAYER::CLEAR_PLAYER_HAS_DAMAGED_AT_LEAST_ONE_PED(PLAYER::PLAYER_ID());
  }
  
  void func_457()
  {
  	func_458(&(Global_105187.f_2890));
  }
  
  void func_458(var uParam0)
  {
  	if (func_401(uParam0))
  	{
  		STREAMING::REQUEST_MODEL(uParam0->f_12.f_66);
  	}
  }
  
  void func_459(var uParam0, var uParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		if (!MISC::IS_STRING_NULL((*uParam0)[iVar0]))
  		{
  			func_460(uParam1, (*uParam0)[iVar0]);
  		}
  		iVar0++;
  	}
  }
  
  void func_460(var uParam0, char* sParam1)
  {
  	func_461(uParam0, 1, -1, sParam1, 0);
  }
  
  void func_461(var uParam0, int iParam1, int iParam2, char* sParam3, int iParam4)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 15)
  	{
  		if (MISC::IS_BIT_SET((*uParam0)[iVar0 /*18*/], 30))
  		{
  			if (MISC::IS_BIT_SET((*uParam0)[iVar0 /*18*/], iParam1))
  			{
  				if (iParam2 != -1)
  				{
  					if ((uParam0[iVar0 /*18*/])->f_1 == iParam2)
  					{
  						return;
  					}
  				}
  				if (iParam1 != 4)
  				{
  					if (!MISC::ARE_STRINGS_EQUAL(sParam3, "NULL"))
  					{
  						if (MISC::ARE_STRINGS_EQUAL(&((uParam0[iVar0 /*18*/])->f_2), sParam3))
  						{
  							return;
  						}
  					}
  				}
  				if (iParam1 == 9)
  				{
  					return;
  				}
  			}
  		}
  		iVar0++;
  	}
  	if (!uParam0->f_271)
  	{
  		uParam0->f_271 = 1;
  	}
  	iVar0 = 0;
  	while (iVar0 < 15)
  	{
  		if (!MISC::IS_BIT_SET((*uParam0)[iVar0 /*18*/], 30))
  		{
  			StringCopy(&((uParam0[iVar0 /*18*/])->f_2), sParam3, 64);
  			(uParam0[iVar0 /*18*/])->f_1 = iParam2;
  			(*uParam0)[iVar0 /*18*/] = iParam4;
  			MISC::SET_BIT(uParam0[iVar0 /*18*/], iParam1);
  			MISC::SET_BIT(uParam0[iVar0 /*18*/], 30);
  			return;
  		}
  		iVar0++;
  	}
  }
  
  void func_462(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		if ((*uParam0)[iVar0] != 0)
  		{
  			STREAMING::REQUEST_MODEL((*uParam0)[iVar0]);
  		}
  		iVar0++;
  	}
  }
  
  void func_463()
  {
  	Local_1292[0 /*3*/] = { -1208.462f, -1559.661f, 3.6087f };
  	Local_1292[1 /*3*/] = { -2164.723f, -405.4532f, 12.3954f };
  	Local_1292[2 /*3*/] = { -693.613f, 233.9349f, 79.7011f };
  }
  
  void func_464(var uParam0)
  {
  	switch (iLocal_1167)
  	{
  		case 0:
  			func_473(uParam0);
  			func_472();
  			break;
  		
  		case 1:
  			func_471(uParam0);
  			break;
  		
  		case 2:
  			func_468(uParam0);
  			break;
  		
  		case 3:
  			func_465(uParam0);
  			break;
  	}
  	func_462(&(uParam0->f_34));
  	func_459(&(uParam0->f_46), &uLocal_1596);
  }
  
  void func_465(var uParam0)
  {
  	*uParam0 = joaat("u_m_y_sbike");
  	uParam0->f_1 = { -1406.767f, 738.4614f, 182.4823f };
  	uParam0->f_4 = 125.2133f;
  	uParam0->f_268 = 1;
  	uParam0->f_13 = joaat("weapon_pistol");
  	uParam0->f_6 = { -1408.17f, 742.0872f, 182.0377f };
  	uParam0->f_5 = joaat("bati");
  	uParam0->f_9 = { -1408.17f, 742.0872f, 182.0377f };
  	uParam0->f_12 = 15.0077f;
  	uParam0->f_271 = { -1382.691f, 744.9668f, 182.2854f };
  	uParam0->f_76 = { -1402.094f, 738.1398f, 183.9362f };
  	uParam0->f_79 = { -0.2429f, 0f, 76.3241f };
  	uParam0->f_82 = 35f;
  	Local_120.f_6 = 5;
  	func_466(&(uParam0->f_34), uParam0->f_5);
  	func_466(&(uParam0->f_34), joaat("bjxl"));
  	func_466(&(uParam0->f_34), joaat("camper"));
  	fLocal_1248 = 250f;
  }
  
  int func_466(var uParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		if ((*uParam0)[iVar0] != 0)
  		{
  			if ((*uParam0)[iVar0] == iParam1)
  			{
  				return 0;
  			}
  		}
  		iVar0++;
  	}
  	iVar1 = func_467(uParam0);
  	if (iVar1 < 0 || iVar1 >= *uParam0)
  	{
  		return 0;
  	}
  	(*uParam0)[iVar1] = iParam1;
  	return 1;
  }
  
  int func_467(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		if ((*uParam0)[iVar0] == 0)
  		{
  			return iVar0;
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  void func_468(var uParam0)
  {
  	*uParam0 = joaat("s_m_y_winclean_01");
  	uParam0->f_244[0] = joaat("prop_bmu_02_ld");
  	uParam0->f_244[1] = joaat("prop_bmu_02_ld_sup");
  	uParam0->f_249[0 /*3*/] = { -643.75f, 305.28f, 99.2f };
  	uParam0->f_262[0] = 175.3f;
  	uParam0->f_249[1 /*3*/] = { -643.51f, 308.26f, 138.62f };
  	uParam0->f_262[1] = 175f;
  	uParam0->f_1 = { -642.6985f, 305.823f, 111.5572f };
  	uParam0->f_4 = 349.4722f;
  	uParam0->f_6 = { -662.1583f, 255.0944f, 80.40974f };
  	uParam0->f_76 = { -660.3444f, 184.7394f, 80.3851f };
  	uParam0->f_79 = { 12.3694f, 0.0001f, -20.505f };
  	uParam0->f_82 = 35f;
  	StringCopy(&(uParam0->f_83[0 /*16*/]), "oddjobs@assassinate@multi@windowwasher", 64);
  	uParam0->f_271 = { -662.6647f, 242.4725f, 80.3006f };
  	uParam0->f_268 = 1;
  	Local_120.f_6 = 15;
  	func_466(&(uParam0->f_34), uParam0->f_244[0]);
  	func_466(&(uParam0->f_34), uParam0->f_244[1]);
  	func_469(&(uParam0->f_46), &(uParam0->f_83[0 /*16*/]));
  	AUDIO::LOAD_STREAM("WINDOWWASHERFALL_MASTER", 0);
  	fLocal_1248 = 500f;
  }
  
  int func_469(var uParam0, char* sParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		if (!MISC::IS_STRING_NULL((*uParam0)[iVar0]))
  		{
  			if (MISC::ARE_STRINGS_EQUAL((*uParam0)[iVar0], sParam1))
  			{
  				return 0;
  			}
  		}
  		iVar0++;
  	}
  	iVar1 = func_470(uParam0);
  	if (iVar1 < 0 || iVar1 >= *uParam0)
  	{
  		return 0;
  	}
  	(*uParam0)[iVar1] = sParam1;
  	return 1;
  }
  
  int func_470(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		if (MISC::IS_STRING_NULL((*uParam0)[iVar0]))
  		{
  			return iVar0;
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  void func_471(var uParam0)
  {
  	*uParam0 = joaat("a_m_m_beach_01");
  	uParam0->f_1 = { -2211.742f, -587.6183f, -0.4f };
  	uParam0->f_4 = 222.563f;
  	uParam0->f_268 = 1;
  	uParam0->f_14 = joaat("a_f_y_beach_01");
  	uParam0->f_18 = { -2211.742f, -587.6183f, -0.4f };
  	uParam0->f_16 = joaat("a_f_y_beach_01");
  	uParam0->f_22 = { -2155.479f, -459.9046f, 2.53347f };
  	uParam0->f_25 = 129.6666f;
  	uParam0->f_5 = joaat("marquis");
  	uParam0->f_9 = { -2211.742f, -587.6183f, -0.4f };
  	uParam0->f_12 = 222.563f;
  	uParam0->f_6 = { -2172.901f, -395.7628f, 12.349f };
  	uParam0->f_271 = { -2178.855f, -410.6809f, 12.1595f };
  	uParam0->f_76 = { -2171.462f, -446.2333f, 5.9263f };
  	uParam0->f_79 = { -5.0921f, -0.0249f, 163.0108f };
  	uParam0->f_82 = 35f;
  	StringCopy(&(uParam0->f_83[0 /*16*/]), "oddjobs@assassinate@multi@yachttarget@lapdance", 64);
  	StringCopy(&(uParam0->f_83[1 /*16*/]), "amb@world_human_sunbathe@female@back@idle_a", 64);
  	StringCopy(&(uParam0->f_83[2 /*16*/]), "veh@boat@marquis@rps@enter_exit", 64);
  	Local_120.f_6 = 5;
  	func_466(&(uParam0->f_34), uParam0->f_5);
  	func_466(&(uParam0->f_34), joaat("seashark"));
  	func_469(&(uParam0->f_46), &(uParam0->f_83[0 /*16*/]));
  	func_469(&(uParam0->f_46), &(uParam0->f_83[1 /*16*/]));
  	fLocal_1248 = 400f;
  }
  
  void func_472()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 3)
  	{
  		STREAMING::REQUEST_MODEL(iLocal_1265[iVar0]);
  		iVar0++;
  	}
  }
  
  void func_473(var uParam0)
  {
  	*uParam0 = joaat("u_m_y_babyd");
  	uParam0->f_1 = { Local_1253 };
  	uParam0->f_268 = 1;
  	uParam0->f_4 = 24.7111f;
  	uParam0->f_6 = { -1183.12f, -1523.178f, 3.364f };
  	uParam0->f_271 = { -1205.392f, -1548.022f, 3.3229f };
  	uParam0->f_76 = { -1202.369f, -1550.902f, 5.8757f };
  	uParam0->f_79 = { -4.6f, -0.0003f, 152.2f };
  	uParam0->f_82 = 35f;
  	StringCopy(&(uParam0->f_83[0 /*16*/]), "oddjobs@assassinate@multi@", 64);
  	StringCopy(&(uParam0->f_83[1 /*16*/]), "misscommon@response", 64);
  	Local_120.f_6 = 5;
  	func_466(&(uParam0->f_34), joaat("premier"));
  	func_466(&(uParam0->f_34), joaat("dilettante"));
  	func_466(&(uParam0->f_34), joaat("vigero"));
  	func_469(&(uParam0->f_46), &(uParam0->f_83[0 /*16*/]));
  	func_469(&(uParam0->f_46), &(uParam0->f_83[1 /*16*/]));
  	fLocal_1248 = 175f;
  	func_474();
  }
  
  void func_474()
  {
  	iLocal_1265[0] = joaat("premier");
  	iLocal_1265[1] = joaat("dilettante");
  	iLocal_1265[2] = joaat("vigero");
  }
  
  void func_475(var uParam0)
  {
  	if (iLocal_1170 < 3)
  	{
  		STREAMING::SET_HD_AREA(-717.8348f, -932.1736f, 18.01735f, 26f);
  	}
  	switch (iLocal_1170)
  	{
  		case 0:
  			STREAMING::REQUEST_ANIM_DICT("oddjobs@assassinate@multi@call");
  			STREAMING::REQUEST_MODEL(joaat("p_phonebox_01b_s"));
  			func_474();
  			SYSTEM::SETTIMERA(0);
  			AUDIO::REQUEST_SCRIPT_AUDIO_BANK("SCRIPT\ASSASSINATION_MULTI", false, -1);
  			if ((STREAMING::HAS_ANIM_DICT_LOADED("oddjobs@assassinate@multi@call") && STREAMING::HAS_MODEL_LOADED(joaat("p_phonebox_01b_s"))) && func_389())
  			{
  				bLocal_1225 = true;
  			}
  			if (bLocal_1225)
  			{
  				if (ENTITY::DOES_ENTITY_EXIST(iLocal_1171))
  				{
  					func_489(-736.7908f, -924.1303f, 18.16373f, -696.8614f, -923.7517f, 19.65864f, 45f, -711.8602f, -920.7141f, 18.0145f, 0.0954f, func_495(), 1, 1, 1, 0, 0);
  					MISC::CLEAR_AREA(-700.1226f, -916.8699f, 18.1667f, 5f, true, false, false, false);
  					if (!func_497(&iLocal_1188))
  					{
  						func_43(&iLocal_1188);
  					}
  					if (ENTITY::DOES_ENTITY_EXIST(iLocal_1171))
  					{
  						ENTITY::SET_ENTITY_VISIBLE(iLocal_1171, false, false);
  						ENTITY::SET_ENTITY_COLLISION(iLocal_1171, false, false);
  						ENTITY::SET_ENTITY_CAN_BE_DAMAGED(iLocal_1171, false);
  						iLocal_1172 = OBJECT::CREATE_OBJECT(joaat("p_phonebox_01b_s"), -700.1226f, -916.8699f, 18.1667f, true, true, false);
  						ENTITY::SET_ENTITY_ROTATION(iLocal_1172, 0f, 0f, 0f, 2, true);
  						ENTITY::SET_ENTITY_COLLISION(iLocal_1172, false, false);
  						ENTITY::SET_ENTITY_CAN_BE_DAMAGED(iLocal_1172, false);
  					}
  					iLocal_1196 = STREAMING::FORMAT_FOCUS_HEADING(-700.1226f, -916.8699f, 18.1667f, 350f, 12, 127);
  					func_481(1, 1, 1, 0, 0, 0);
  					if (!ENTITY::IS_ENTITY_DEAD(PLAYER::PLAYER_PED_ID(), false))
  					{
  						PED::_0x2208438012482A1A(PLAYER::PLAYER_PED_ID(), false, false);
  						ENTITY::SET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), Local_1176, true, false, false, true);
  						ENTITY::SET_ENTITY_HEADING(PLAYER::PLAYER_PED_ID(), fLocal_1177);
  						WEAPON::SET_CURRENT_PED_WEAPON(PLAYER::PLAYER_PED_ID(), joaat("weapon_unarmed"), true);
  						PED::REMOVE_PED_HELMET(PLAYER::PLAYER_PED_ID(), true);
  					}
  					iLocal_1195 = PED::CREATE_SYNCHRONIZED_SCENE(Local_1193, Local_1194, 2);
  					if (ENTITY::DOES_ENTITY_EXIST(iLocal_1172))
  					{
  						PED::ATTACH_SYNCHRONIZED_SCENE_TO_ENTITY(iLocal_1195, iLocal_1172, -1);
  					}
  					TASK::TASK_SYNCHRONIZED_SCENE(PLAYER::PLAYER_PED_ID(), iLocal_1195, "oddjobs@assassinate@multi@call", "ass_multi_target_call_p1", 1000f, -2f, 2, 0, 1000f, 0);
  					ENTITY::PLAY_SYNCHRONIZED_ENTITY_ANIM(iLocal_1172, iLocal_1195, "ass_multi_target_call_phone", "oddjobs@assassinate@multi@call", 1000f, -2f, 0, 1000f);
  					if (!CAM::DOES_CAM_EXIST(iLocal_1173))
  					{
  						iLocal_1174 = CAM::CREATE_CAMERA_WITH_PARAMS(26379945, Local_1181, Local_1182, 35f, true, 2);
  						iLocal_1173 = CAM::CREATE_CAMERA_WITH_PARAMS(26379945, Local_1183, Local_1184, 35f, false, 2);
  						CAM::SET_CAM_ACTIVE_WITH_INTERP(iLocal_1173, iLocal_1174, 2500, 1, 1);
  						CAM::RENDER_SCRIPT_CAMS(true, false, 3000, true, false, 0);
  						CAM::SHAKE_CAM(iLocal_1173, "HAND_SHAKE", 0.2f);
  					}
  					func_416();
  					func_38(&(uParam0->f_16), 3, 0, "LESTER", 0, 1);
  					func_38(&(uParam0->f_16), 1, PLAYER::PLAYER_PED_ID(), "FRANKLIN", 0, 1);
  					HUD::DISPLAY_RADAR(false);
  					HUD::DISPLAY_HUD(false);
  					WEAPON::SET_CURRENT_PED_WEAPON(PLAYER::PLAYER_PED_ID(), joaat("weapon_unarmed"), false);
  					PLAYER::SET_PLAYER_CONTROL(PLAYER::PLAYER_ID(), false, 56);
  					func_480(23, 1);
  					iLocal_1170 = 1;
  				}
  				else
  				{
  					STREAMING::REQUEST_ANIM_DICT("oddjobs@assassinate@multi@call");
  					STREAMING::REQUEST_MODEL(joaat("p_phonebox_01b_s"));
  					if (!ENTITY::DOES_ENTITY_EXIST(iLocal_1171))
  					{
  						iLocal_1171 = OBJECT::GET_CLOSEST_OBJECT_OF_TYPE(Local_1175, 5f, joaat("prop_phonebox_01b"), true, false, true);
  					}
  				}
  			}
  			break;
  		
  		case 1:
  			func_478();
  			if (!ENTITY::IS_ENTITY_DEAD(PLAYER::PLAYER_PED_ID(), false))
  			{
  				PLAYER::SET_ALL_RANDOM_PEDS_FLEE_THIS_FRAME(PLAYER::PLAYER_ID());
  			}
  			if (func_497(&iLocal_1185))
  			{
  				if (func_45(&iLocal_1185) > 1f)
  				{
  					if (func_477())
  					{
  						bLocal_1191 = true;
  						if (!CAM::IS_SCREEN_FADED_OUT())
  						{
  							func_476(800);
  						}
  						iLocal_1170 = 2;
  						break;
  					}
  				}
  			}
  			if (!iLocal_1192)
  			{
  				if (!ENTITY::IS_ENTITY_DEAD(PLAYER::PLAYER_PED_ID(), false))
  				{
  					if (PED::IS_SYNCHRONIZED_SCENE_RUNNING(iLocal_1195))
  					{
  						if (PED::GET_SYNCHRONIZED_SCENE_PHASE(iLocal_1195) > 0.05f)
  						{
  							if (func_22(&(uParam0->f_16), "OJASAUD", "OJAScnt_ml", 9, 0, 0, 0))
  							{
  								if (!func_497(&iLocal_1185))
  								{
  									func_43(&iLocal_1185);
  									iLocal_1192 = 1;
  									if (func_18(0))
  									{
  										func_412(500);
  									}
  								}
  							}
  						}
  					}
  				}
  			}
  			if (((func_497(&iLocal_1185) && func_45(&iLocal_1185) > fLocal_1178) || (PED::IS_SYNCHRONIZED_SCENE_RUNNING(iLocal_1195) && PED::GET_SYNCHRONIZED_SCENE_PHASE(iLocal_1195) >= 0.978f)) || bLocal_1191)
  			{
  				iLocal_1170 = 3;
  			}
  			break;
  		
  		case 2:
  			AUDIO::STOP_SCRIPTED_CONVERSATION(false);
  			if (bLocal_1191)
  			{
  				if (CAM::IS_SCREEN_FADED_OUT())
  				{
  					if (!ENTITY::IS_ENTITY_DEAD(PLAYER::PLAYER_PED_ID(), false))
  					{
  						PED::_0x2208438012482A1A(PLAYER::PLAYER_PED_ID(), false, false);
  						ENTITY::SET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), -700.2628f, -917.5313f, 18.2147f, true, false, false, true);
  						ENTITY::SET_ENTITY_HEADING(PLAYER::PLAYER_PED_ID(), 73.3924f);
  					}
  					ENTITY::STOP_SYNCHRONIZED_ENTITY_ANIM(iLocal_1172, -1000f, true);
  					SYSTEM::WAIT(0);
  					CAM::DO_SCREEN_FADE_IN(500);
  					CAM::DESTROY_ALL_CAMS(false);
  					CAM::RENDER_SCRIPT_CAMS(false, false, 3000, true, false, 0);
  					CAM::SET_GAMEPLAY_CAM_RELATIVE_HEADING(0f);
  					CAM::SET_GAMEPLAY_CAM_RELATIVE_PITCH(0f, 1f);
  					iLocal_1170 = 3;
  				}
  			}
  			break;
  		
  		case 3:
  			if (!bLocal_1191)
  			{
  				CAM::_RENDER_FIRST_PERSON_CAM(false, 0f, 3, 0);
  				CAM::DESTROY_ALL_CAMS(false);
  			}
  			if (STREAMING::_0x07C313F94746702C(iLocal_1196))
  			{
  				STREAMING::_0x1EE7D8DF4425F053(iLocal_1196);
  			}
  			ENTITY::SET_ENTITY_COLLISION(iLocal_1172, true, false);
  			STREAMING::CLEAR_HD_AREA();
  			HUD::DISPLAY_RADAR(true);
  			HUD::DISPLAY_HUD(true);
  			TASK::CLEAR_PED_TASKS(PLAYER::PLAYER_PED_ID());
  			PLAYER::SET_PLAYER_CONTROL(PLAYER::PLAYER_ID(), true, 0);
  			PED::FORCE_PED_MOTION_STATE(PLAYER::PLAYER_PED_ID(), -1871534317, true, 0, false);
  			func_480(23, 0);
  			func_481(0, 1, 1, 0, 0, 0);
  			PLAYER::SET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID(), 0, false);
  			PLAYER::SET_PLAYER_WANTED_LEVEL_NOW(PLAYER::PLAYER_ID(), false);
  			STREAMING::REMOVE_ANIM_DICT("oddjobs@assassinate@multi@call");
  			ENTITY::SET_OBJECT_AS_NO_LONGER_NEEDED(&iLocal_1171);
  			iLocal_968 = 4;
  			break;
  	}
  }
  
  int func_476(int iParam0)
  {
  	CAM::DO_SCREEN_FADE_OUT(iParam0);
  	while (!CAM::IS_SCREEN_FADED_OUT())
  	{
  		SYSTEM::WAIT(0);
  	}
  	return 1;
  }
  
  int func_477()
  {
  	if (HUD::IS_PAUSE_MENU_ACTIVE())
  	{
  		return 0;
  	}
  	if (PAD::IS_CONTROL_JUST_PRESSED(0, 18) || PAD::IS_CONTROL_JUST_PRESSED(2, 18))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_478()
  {
  	switch (iLocal_1243)
  	{
  		case 0:
  			if (func_479(&iLocal_1173, 8f, -728.4891f, -933.7799f, 19.9947f, -4.0865f, 0.0581f, -61.3739f, 30.7441f, 1, 0.2f))
  			{
  				iLocal_1243 = 1;
  			}
  			break;
  		
  		case 1:
  			if (func_479(&iLocal_1173, 14f, -702.2474f, -918.3937f, 19.7582f, -1.9904f, 0f, -56.7173f, 30f, 1, 0.3f))
  			{
  				iLocal_1243 = 2;
  			}
  			break;
  		
  		case 2:
  			if (func_479(&iLocal_1173, 23f, -698.241f, -917.8708f, 19.533f, -3.3396f, 0f, 75.4344f, 40f, 1, 0.3f))
  			{
  				iLocal_1243 = 3;
  			}
  			break;
  		
  		case 3:
  			if (func_479(&iLocal_1173, 28f, -716.4577f, -945.2582f, 19.8525f, -1.1558f, 0f, -21.0827f, 31f, 1, 0.2f))
  			{
  				iLocal_1243 = 4;
  			}
  			break;
  		
  		case 4:
  			if (func_479(&iLocal_1173, 33f, -702.0552f, -917.9715f, 19.7381f, -3.1893f, 0f, -63.3392f, 33.4611f, 1, 0.2f))
  			{
  				iLocal_1243 = 5;
  			}
  			break;
  		
  		case 5:
  			if (func_479(&iLocal_1173, 39f, -697.374f, -918.0989f, 19.8386f, -4.5194f, 0f, 86.2972f, 42f, 1, 0.2f))
  			{
  				iLocal_1243 = 6;
  			}
  			break;
  		
  		case 6:
  			break;
  	}
  }
  
  int func_479(int iParam0, float fParam1, struct<3> Param2, struct<3> Param3, float fParam4, bool bParam5, float fParam6)
  {
  	if (CAM::DOES_CAM_EXIST(*iParam0))
  	{
  		if (func_497(&iLocal_1188))
  		{
  			if (func_45(&iLocal_1188) >= fParam1)
  			{
  				CAM::SET_CAM_COORD(iLocal_1173, Param2);
  				CAM::SET_CAM_ROT(iLocal_1173, Param3, 2);
  				CAM::SET_CAM_FOV(iLocal_1173, fParam4);
  				if (bParam5)
  				{
  					CAM::SHAKE_CAM(iLocal_1173, "HAND_SHAKE", fParam6);
  				}
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  void func_480(int iParam0, bool bParam1)
  {
  	if (bParam1)
  	{
  		MISC::SET_BIT(&Global_31015, iParam0);
  	}
  	else
  	{
  		MISC::CLEAR_BIT(&Global_31015, iParam0);
  	}
  }
  
  void func_481(bool bParam0, bool bParam1, int iParam2, bool bParam3, bool bParam4, bool bParam5)
  {
  	if (bParam0)
  	{
  		PLAYER::SPECIAL_ABILITY_DEACTIVATE_FAST(PLAYER::PLAYER_ID(), 0);
  		PLAYER::SET_ALL_RANDOM_PEDS_FLEE(PLAYER::PLAYER_ID(), true);
  		PLAYER::SET_POLICE_IGNORE_PLAYER(PLAYER::PLAYER_ID(), true);
  		func_488(1);
  		HUD::THEFEED_FLUSH_QUEUE();
  		HUD::THEFEED_PAUSE();
  		if (Global_19486.f_1 > 3)
  		{
  			if (AUDIO::IS_MOBILE_PHONE_CALL_ONGOING())
  			{
  				AUDIO::STOP_SCRIPTED_CONVERSATION(false);
  			}
  			if (!func_31())
  			{
  				Global_19486.f_1 = 3;
  			}
  			Global_20805 = 5;
  		}
  		func_487(1, bParam3, iParam2, 0);
  		Global_61518 = 1;
  		Global_73828 = 1;
  		Global_76620 = 1;
  	}
  	else
  	{
  		func_488(0);
  		HUD::THEFEED_RESUME();
  		Global_61518 = 0;
  		if (bParam1)
  		{
  			GRAPHICS::_0x03FC694AE06C5A20();
  		}
  		PLAYER::SET_ALL_RANDOM_PEDS_FLEE(PLAYER::PLAYER_ID(), false);
  		PLAYER::SET_POLICE_IGNORE_PLAYER(PLAYER::PLAYER_ID(), false);
  		func_487(0, bParam3, iParam2, 0);
  		if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  		{
  			if (((((!PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID()) && !func_485(PLAYER::PLAYER_ID())) && !func_483(PLAYER::PLAYER_ID(), 0)) && !func_482()) && !bParam4) && !bParam5)
  			{
  				ENTITY::SET_ENTITY_INVINCIBLE(PLAYER::PLAYER_PED_ID(), false);
  			}
  		}
  		else if (((!PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID()) && !func_485(PLAYER::PLAYER_ID())) && !bParam4) && !bParam5)
  		{
  			ENTITY::SET_ENTITY_INVINCIBLE(PLAYER::PLAYER_PED_ID(), false);
  		}
  		Global_76620 = 0;
  	}
  }
  
  bool func_482()
  {
  	return MISC::IS_BIT_SET(Global_1590535[PLAYER::PLAYER_ID() /*876*/].f_39.f_18, 14);
  }
  
  bool func_483(int iParam0, int iParam1)
  {
  	bool bVar0;
  	
  	if (iParam0 == PLAYER::PLAYER_ID())
  	{
  		bVar0 = func_484(-1, 0) == 8;
  	}
  	else
  	{
  		bVar0 = Global_1590535[iParam0 /*876*/].f_211 == 8;
  	}
  	if (iParam1 == 1)
  	{
  		if (NETWORK::NETWORK_IS_PLAYER_ACTIVE(iParam0))
  		{
  			bVar0 = PLAYER::GET_PLAYER_TEAM(iParam0) == 8;
  		}
  	}
  	return bVar0;
  }
  
  int func_484(int iParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar1 = iParam0;
  	if (iVar1 == -1)
  	{
  		iVar1 = func_66();
  	}
  	if (Global_1312857[iVar1] == 1)
  	{
  		if (bParam1)
  		{
  		}
  		iVar0 = 8;
  	}
  	else
  	{
  		iVar0 = Global_1312739[iVar1];
  		if (bParam1)
  		{
  		}
  	}
  	return iVar0;
  }
  
  int func_485(int iParam0)
  {
  	if (func_483(iParam0, 0))
  	{
  		return 1;
  	}
  	if (func_486())
  	{
  		if (iParam0 == PLAYER::PLAYER_ID())
  		{
  			return 1;
  		}
  	}
  	if (MISC::IS_BIT_SET(Global_2425662[iParam0 /*421*/].f_195, 2))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_486()
  {
  	return MISC::IS_BIT_SET(Global_2359302, 3);
  }
  
  int func_487(bool bParam0, bool bParam1, var uParam2, bool bParam3)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	if (MISC::IS_PC_VERSION())
  	{
  		if (CUTSCENE::_0xA0FE76168A189DDB() != bParam0 && uParam2)
  		{
  			CUTSCENE::_0x20746F7B1032A3C7(bParam0, bParam1, true, bParam3);
  			iVar0 = 1;
  		}
  	}
  	return iVar0;
  }
  
  void func_488(int iParam0)
  {
  	if (iParam0 == 1)
  	{
  		MISC::SET_BIT(&Global_7356, 13);
  	}
  	else
  	{
  		MISC::CLEAR_BIT(&Global_7356, 13);
  	}
  }
  
  void func_489(struct<3> Param0, struct<3> Param1, float fParam2, struct<3> Param3, float fParam4, struct<3> Param5, bool bParam6, bool bParam7, bool bParam8, bool bParam9, bool bParam10)
  {
  	func_490(Param0, Param1, fParam2, Param3, fParam4, Param5, bParam6, bParam7, bParam8, bParam9, bParam10);
  }
  
  void func_490(struct<3> Param0, struct<3> Param1, float fParam2, struct<3> Param3, float fParam4, struct<3> Param5, bool bParam6, bool bParam7, bool bParam8, bool bParam9, bool bParam10)
  {
  	int iVar0;
  	bool bVar1;
  	bool bVar2;
  	int iVar3;
  	struct<3> Var4;
  	struct<3> Var5;
  	struct<3> Var6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	
  	if (bParam7)
  	{
  		bParam7 = false;
  	}
  	bVar2 = true;
  	iVar3 = 0;
  	iVar0 = PLAYER::GET_PLAYERS_LAST_VEHICLE();
  	if (ENTITY::DOES_ENTITY_EXIST(iVar0))
  	{
  		if (!ENTITY::IS_ENTITY_A_MISSION_ENTITY(iVar0))
  		{
  			ENTITY::SET_ENTITY_AS_MISSION_ENTITY(iVar0, true, false);
  			iVar3 = 1;
  		}
  		if (VEHICLE::IS_VEHICLE_DRIVEABLE(iVar0, false))
  		{
  			if (bParam10)
  			{
  				func_494(iVar0);
  			}
  			if (ENTITY::IS_ENTITY_IN_ANGLED_AREA(iVar0, Param0, Param1, fParam2, false, true, 0))
  			{
  				bVar1 = true;
  			}
  			else
  			{
  				Var6 = { ENTITY::GET_ENTITY_COORDS(iVar0, true) };
  				if ((Var6.f_2 > Param0.f_2 && Var6.f_2 < Param1.f_2) || (Var6.f_2 > Param1.f_2 && Var6.f_2 < Param0.f_2))
  				{
  					if (func_491(iVar0, Param0, Param1, fParam2))
  					{
  						bVar1 = true;
  					}
  				}
  			}
  			if (VEHICLE::IS_VEHICLE_DRIVEABLE(iVar0, false))
  			{
  				if (VEHICLE::IS_VEHICLE_MODEL(iVar0, joaat("taxi")))
  				{
  					if (VEHICLE::GET_PED_IN_VEHICLE_SEAT(iVar0, -1, 0) != PLAYER::PLAYER_PED_ID() && VEHICLE::GET_PED_IN_VEHICLE_SEAT(iVar0, -1, 0) != 0)
  					{
  						if (MISC::GET_DISTANCE_BETWEEN_COORDS(Param0 + Param1 / Vector(2f, 2f, 2f), ENTITY::GET_ENTITY_COORDS(iVar0, true), true) < 20f)
  						{
  							bVar1 = true;
  							bVar2 = false;
  						}
  					}
  				}
  			}
  			if (bParam8)
  			{
  				if (func_310(iVar0, func_10(), 1))
  				{
  					bVar1 = false;
  				}
  			}
  			if (bVar1)
  			{
  				if (!func_275(Param5))
  				{
  					if (VEHICLE::IS_VEHICLE_DRIVEABLE(iVar0, false))
  					{
  						iVar7 = ENTITY::GET_ENTITY_MODEL(iVar0);
  						VEHICLE::_GET_VEHICLE_SUSPENSION_BOUNDS(iVar0, &Var4, &Var5);
  						if (VEHICLE::IS_THIS_MODEL_A_HELI(iVar7))
  						{
  							Param5.x = (Param5.x + 3f);
  							Param5.f_1 = (Param5.f_1 + 3f);
  						}
  						if (((iVar7 == joaat("zentorno") || iVar7 == joaat("btype")) || iVar7 == joaat("dubsta3")) || iVar7 == joaat("monster"))
  						{
  							Param5 = { Param5 * Vector(1.1f, 1.1f, 1.1f) };
  						}
  						else if (iVar7 == joaat("t20") || iVar7 == joaat("virgo"))
  						{
  							Param5 = { Param5 * Vector(1.2f, 1.2f, 1.2f) };
  						}
  						if ((Var5.x - Var4.x) > Param5.x)
  						{
  							bVar2 = false;
  						}
  						else if ((Var5.f_1 - Var4.f_1) > Param5.f_1)
  						{
  							bVar2 = false;
  						}
  						else if ((Var5.f_2 - Var4.f_2) > Param5.f_2)
  						{
  							bVar2 = false;
  						}
  					}
  				}
  				if (VEHICLE::IS_VEHICLE_DRIVEABLE(iVar0, false))
  				{
  					if (bVar2)
  					{
  						MISC::CLEAR_AREA_OF_VEHICLES(Param3, 5f, false, false, false, false, false, false);
  						ENTITY::SET_ENTITY_HEADING(iVar0, fParam4);
  						ENTITY::SET_ENTITY_COORDS(iVar0, Param3, true, false, false, true);
  						VEHICLE::SET_VEHICLE_ON_GROUND_PROPERLY(iVar0, 5f);
  						if (bParam9)
  						{
  							VEHICLE::SET_VEHICLE_ENGINE_ON(iVar0, false, true, false);
  							VEHICLE::SET_VEHICLE_DOORS_SHUT(iVar0, true);
  						}
  					}
  					else
  					{
  						if (!ENTITY::IS_ENTITY_A_MISSION_ENTITY(iVar0) || !ENTITY::DOES_ENTITY_BELONG_TO_THIS_SCRIPT(iVar0, true))
  						{
  							ENTITY::SET_ENTITY_AS_MISSION_ENTITY(iVar0, true, true);
  						}
  						if (PED::IS_PED_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), iVar0, false))
  						{
  							ENTITY::SET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), ENTITY::GET_ENTITY_COORDS(iVar0, true), true, false, false, true);
  						}
  						VEHICLE::DELETE_VEHICLE(&iVar0);
  					}
  				}
  			}
  			if (bParam6)
  			{
  				MISC::CLEAR_ANGLED_AREA_OF_VEHICLES(Param0, Param1, fParam2, false, false, false, false, false, 0);
  			}
  			if (iVar3 == 1)
  			{
  				if (ENTITY::DOES_ENTITY_EXIST(iVar0))
  				{
  					if (ENTITY::IS_ENTITY_A_MISSION_ENTITY(iVar0))
  					{
  						ENTITY::SET_VEHICLE_AS_NO_LONGER_NEEDED(&iVar0);
  					}
  				}
  			}
  		}
  		else
  		{
  			if (!ENTITY::IS_ENTITY_A_MISSION_ENTITY(iVar0))
  			{
  				ENTITY::SET_ENTITY_AS_MISSION_ENTITY(iVar0, true, false);
  			}
  			iVar8 = VEHICLE::GET_PED_IN_VEHICLE_SEAT(iVar0, -1, 0);
  			if (ENTITY::DOES_ENTITY_EXIST(iVar8) && !PED::IS_PED_INJURED(iVar8))
  			{
  				ENTITY::SET_ENTITY_COORDS(iVar8, ENTITY::GET_ENTITY_COORDS(iVar8, true), true, false, false, true);
  			}
  			iVar9 = VEHICLE::GET_VEHICLE_MODEL_NUMBER_OF_SEATS(ENTITY::GET_ENTITY_MODEL(iVar0));
  			if (iVar9 <= 2)
  			{
  				iVar8 = VEHICLE::GET_PED_IN_VEHICLE_SEAT(iVar0, 0, 0);
  				if (ENTITY::DOES_ENTITY_EXIST(iVar8) && !PED::IS_PED_INJURED(iVar8))
  				{
  					ENTITY::SET_ENTITY_COORDS(iVar8, ENTITY::GET_ENTITY_COORDS(iVar8, true), true, false, false, true);
  				}
  			}
  			if (iVar9 <= 4)
  			{
  				iVar8 = VEHICLE::GET_PED_IN_VEHICLE_SEAT(iVar0, 1, 0);
  				if (ENTITY::DOES_ENTITY_EXIST(iVar8) && !PED::IS_PED_INJURED(iVar8))
  				{
  					ENTITY::SET_ENTITY_COORDS(iVar8, ENTITY::GET_ENTITY_COORDS(iVar8, true), true, false, false, true);
  				}
  				iVar8 = VEHICLE::GET_PED_IN_VEHICLE_SEAT(iVar0, 2, 0);
  				if (ENTITY::DOES_ENTITY_EXIST(iVar8) && !PED::IS_PED_INJURED(iVar8))
  				{
  					ENTITY::SET_ENTITY_COORDS(iVar8, ENTITY::GET_ENTITY_COORDS(iVar8, true), true, false, false, true);
  				}
  			}
  			VEHICLE::DELETE_VEHICLE(&iVar0);
  		}
  	}
  }
  
  int func_491(int iParam0, struct<3> Param1, struct<3> Param2, float fParam3)
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	struct<3> Var2;
  	struct<3> Var3;
  	struct<3> Var4;
  	struct<3> Var5;
  	struct<3> Var6[4];
  	struct<2> Var7;
  	struct<2> Var8;
  	
  	if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  	{
  		Param1.f_2 = Param2.f_2;
  		Var0 = { func_493(Param1 - Param2) };
  		Var1 = { Var0 };
  		Var0.x = -Var1.f_1;
  		Var0.f_1 = Var1.x;
  		Var0.f_2 = 0f;
  		Var2 = { Param1 - Var0 * FtoV((fParam3 / 2f)) };
  		Var3 = { Param1 + Var0 * FtoV((fParam3 / 2f)) };
  		Var4 = { Param2 - Var0 * FtoV((fParam3 / 2f)) };
  		Var5 = { Param2 + Var0 * FtoV((fParam3 / 2f)) };
  		MISC::GET_MODEL_DIMENSIONS(ENTITY::GET_ENTITY_MODEL(iParam0), &Var7, &Var8);
  		Var6[0 /*3*/] = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(iParam0, Var7, Var7.f_1, 0f) };
  		Var6[1 /*3*/] = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(iParam0, Var7, Var8.f_1, 0f) };
  		Var6[2 /*3*/] = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(iParam0, Var8, Var7.f_1, 0f) };
  		Var6[3 /*3*/] = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(iParam0, Var8, Var8.f_1, 0f) };
  		if (((((((((((((((func_492(Var6[0 /*3*/], Var6[1 /*3*/], Var2, Var3) || func_492(Var6[0 /*3*/], Var6[1 /*3*/], Var3, Var5)) || func_492(Var6[0 /*3*/], Var6[1 /*3*/], Var4, Var5)) || func_492(Var6[0 /*3*/], Var6[1 /*3*/], Var2, Var4)) || func_492(Var6[1 /*3*/], Var6[3 /*3*/], Var2, Var3)) || func_492(Var6[1 /*3*/], Var6[3 /*3*/], Var3, Var5)) || func_492(Var6[1 /*3*/], Var6[3 /*3*/], Var4, Var5)) || func_492(Var6[1 /*3*/], Var6[3 /*3*/], Var2, Var4)) || func_492(Var6[3 /*3*/], Var6[2 /*3*/], Var2, Var3)) || func_492(Var6[3 /*3*/], Var6[2 /*3*/], Var3, Var5)) || func_492(Var6[3 /*3*/], Var6[2 /*3*/], Var4, Var5)) || func_492(Var6[3 /*3*/], Var6[2 /*3*/], Var2, Var4)) || func_492(Var6[2 /*3*/], Var6[0 /*3*/], Var2, Var3)) || func_492(Var6[2 /*3*/], Var6[0 /*3*/], Var3, Var5)) || func_492(Var6[2 /*3*/], Var6[0 /*3*/], Var4, Var5)) || func_492(Var6[2 /*3*/], Var6[0 /*3*/], Var2, Var4))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_492(struct<2> Param0, var uParam1, struct<2> Param2, var uParam3, struct<2> Param4, var uParam5, struct<2> Param6, var uParam7)
  {
  	float fVar0;
  	float fVar1;
  	float fVar2;
  	float fVar3;
  	float fVar4;
  	float fVar5;
  	float fVar6;
  	float fVar7;
  	float fVar8;
  	float fVar9;
  	float fVar10;
  	float fVar11;
  	float fVar12;
  	float fVar13;
  	
  	fVar0 = Param0;
  	fVar1 = Param0.f_1;
  	fVar2 = Param2;
  	fVar3 = Param2.f_1;
  	fVar4 = Param4;
  	fVar5 = Param4.f_1;
  	fVar6 = Param6;
  	fVar7 = Param6.f_1;
  	fVar8 = (fVar2 - fVar0);
  	fVar9 = (fVar3 - fVar1);
  	fVar10 = (fVar6 - fVar4);
  	fVar11 = (fVar7 - fVar5);
  	fVar12 = (((-fVar9 * (fVar0 - fVar4)) + (fVar8 * (fVar1 - fVar5))) / ((-fVar10 * fVar9) + (fVar8 * fVar11)));
  	fVar13 = (((fVar10 * (fVar1 - fVar5)) - (fVar11 * (fVar0 - fVar4))) / ((-fVar10 * fVar9) + (fVar8 * fVar11)));
  	if (((fVar12 >= 0f && fVar12 <= 1f) && fVar13 >= 0f) && fVar13 <= 1f)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  Vector3 func_493(struct<3> Param0)
  {
  	float fVar0;
  	float fVar1;
  	
  	fVar0 = SYSTEM::VMAG(Param0);
  	if (fVar0 != 0f)
  	{
  		fVar1 = (1f / fVar0);
  		Param0 = { Param0 * Vector(fVar1, fVar1, fVar1) };
  	}
  	else
  	{
  		Param0.x = 0f;
  		Param0.f_1 = 0f;
  		Param0.f_2 = 0f;
  	}
  	return Param0;
  }
  
  void func_494(int iParam0)
  {
  	if (ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  		{
  			if (VEHICLE::GET_VEHICLE_ENGINE_HEALTH(iParam0) <= 200f)
  			{
  				VEHICLE::SET_VEHICLE_ENGINE_HEALTH(iParam0, 500f);
  			}
  			if (VEHICLE::GET_VEHICLE_PETROL_TANK_HEALTH(iParam0) <= 700f)
  			{
  				VEHICLE::SET_VEHICLE_ENGINE_HEALTH(iParam0, 900f);
  			}
  			if (ENTITY::GET_ENTITY_HEALTH(iParam0) < 200)
  			{
  				VEHICLE::SET_VEHICLE_ENGINE_HEALTH(iParam0, 500f);
  			}
  		}
  	}
  }
  
  Vector3 func_495()
  {
  	return 2.55f, 5.665f, 2.55f;
  }
  
  void func_496(var uParam0)
  {
  	func_512(uParam0);
  }
  
  bool func_497(int* iParam0)
  {
  	return MISC::IS_BIT_SET(*iParam0, 1);
  }
  
  int func_498()
  {
  	if (Global_3)
  	{
  		return 1;
  	}
  	if (Global_98744 == 7 || Global_98744 == 8)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_499(var uParam0)
  {
  	if (uParam0->f_270)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_500(var uParam0, float fParam1, bool bParam2)
  {
  	if (func_157(uParam0, fParam1))
  	{
  		if (bParam2)
  		{
  			func_195(&cLocal_948, -1);
  		}
  		else
  		{
  			func_160(&cLocal_948, 7500, 1);
  		}
  	}
  }
  
  void func_501(var uParam0)
  {
  	int iVar0;
  	
  	if (uParam0->f_271)
  	{
  		if ((MISC::GET_FRAME_COUNT() >= (uParam0->f_272 + uParam0->f_273) || MISC::IS_BIT_SET(Global_98744.f_20, 2)) || MISC::IS_BIT_SET(Global_98744.f_20, 13))
  		{
  			iVar0 = 0;
  			while (iVar0 < 15)
  			{
  				if (MISC::IS_BIT_SET((*uParam0)[iVar0 /*18*/], 30))
  				{
  					if (!MISC::IS_BIT_SET((*uParam0)[iVar0 /*18*/], 29))
  					{
  						func_502(uParam0[iVar0 /*18*/]);
  						uParam0->f_272 = MISC::GET_FRAME_COUNT();
  						return;
  					}
  				}
  				iVar0++;
  			}
  		}
  	}
  }
  
  void func_502(int* iParam0)
  {
  	func_503(iParam0, &(iParam0->f_2), iParam0->f_1);
  }
  
  void func_503(int* iParam0, char* sParam1, int iParam2)
  {
  	if (MISC::IS_BIT_SET(*iParam0, 30))
  	{
  		switch (func_173(*iParam0))
  		{
  			case 0:
  				STREAMING::REQUEST_MODEL(iParam2);
  				break;
  			
  			case 1:
  				STREAMING::REQUEST_ANIM_DICT(sParam1);
  				break;
  			
  			case 2:
  				STREAMING::REQUEST_CLIP_SET(sParam1);
  				break;
  			
  			case 3:
  				GRAPHICS::REQUEST_STREAMED_TEXTURE_DICT(sParam1, MISC::IS_BIT_SET(*iParam0, 28));
  				break;
  			
  			case 4:
  				VEHICLE::REQUEST_VEHICLE_RECORDING(iParam2, sParam1);
  				break;
  			
  			case 5:
  				TASK::REQUEST_WAYPOINT_RECORDING(sParam1);
  				break;
  			
  			case 6:
  				AUDIO::REQUEST_SCRIPT_AUDIO_BANK(sParam1, MISC::IS_BIT_SET(*iParam0, 27), -1);
  				break;
  			
  			case 7:
  				SCRIPT::REQUEST_SCRIPT_WITH_NAME_HASH(iParam2);
  				break;
  			
  			case 8:
  				HUD::REQUEST_ADDITIONAL_TEXT(sParam1, iParam2);
  				break;
  			
  			case 9:
  				STREAMING::REQUEST_PTFX_ASSET();
  				break;
  			
  			default:
  				break;
  		}
  		MISC::SET_BIT(iParam0, 29);
  	}
  }
  
  void func_504(struct<3> Param0, float fParam1, int iParam2, int iParam3)
  {
  	if (func_511())
  	{
  		MISC::SET_THIS_SCRIPT_CAN_BE_PAUSED(false);
  		MISC::CLEAR_BIT(&(Global_98744.f_20), 2);
  		MISC::SET_GAME_PAUSED(true);
  		if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  		{
  			PLAYER::SET_PLAYER_CONTROL(PLAYER::PLAYER_ID(), false, 0);
  		}
  		Global_98740 = { Param0 };
  		Global_98743 = fParam1;
  		Global_98739 = 1;
  		if (iParam2 == 1)
  		{
  			MISC::SET_BIT(&(Global_98744.f_20), 14);
  		}
  		else
  		{
  			MISC::CLEAR_BIT(&(Global_98744.f_20), 14);
  		}
  		if (iParam3 == 1)
  		{
  			MISC::SET_BIT(&(Global_98744.f_20), 24);
  		}
  		else
  		{
  			MISC::CLEAR_BIT(&(Global_98744.f_20), 24);
  		}
  		func_414(1);
  	}
  }
  
  int func_505()
  {
  	if (!Global_98744 == 10 && !Global_98744 == 9)
  	{
  		return 0;
  	}
  	return Global_98744.f_2;
  }
  
  struct<39> func_506(int iParam0)
  {
  	struct<39> Var0;
  	
  	if (iParam0 == 0)
  	{
  		Var0 = 1;
  		Var0.f_1 = { 0f, 0f, 0f };
  		Var0.f_4 = { 0f, 0f, 0f };
  		Var0.f_7 = { func_507(0) };
  		Var0.f_22 = "Assassin_Valet";
  		Var0.f_23 = 7000f;
  		Var0.f_24 = 2000f;
  		Var0.f_32 = -1;
  		Var0.f_25 = { -1700.015f, -1066.335f, 12.144f };
  		Var0.f_28 = { -1691.564f, -1066.514f, 12.076f };
  		Var0.f_31 = 35.4714f;
  		Var0.f_10 = { -1700.467f, -1066.672f, 13.8795f };
  		Var0.f_13 = { -4.8332f, 0f, -177.1283f };
  		Var0.f_16 = { -1700.467f, -1066.672f, 13.8795f };
  		Var0.f_19 = { -4.8332f, 0f, -177.1283f };
  		Var0.f_33 = { -1700.098f, -1067.939f, 12.1547f };
  		Var0.f_36 = 162.4559f;
  		Var0.f_37 = 1;
  	}
  	else if (iParam0 == 1)
  	{
  		Var0 = 0;
  		Var0.f_1 = { -699.3992f, -917.5043f, 18.2143f };
  		Var0.f_4 = { 0f, 0f, 0f };
  		Var0.f_7 = { func_507(1) };
  		Var0.f_22 = "Assassin_Multi";
  		Var0.f_23 = 5000f;
  		Var0.f_24 = 2000f;
  		Var0.f_32 = -1;
  		Var0.f_25 = { -700.1855f, -917.9558f, 18.2143f };
  		Var0.f_28 = { -699.9455f, -921.7786f, 18.0144f };
  		Var0.f_31 = 78.0874f;
  		Var0.f_10 = { -697.8064f, -921.4629f, 20.5104f };
  		Var0.f_13 = { -13.5249f, 0f, 30.6033f };
  		Var0.f_16 = { -702.4851f, -921.2747f, 21.1235f };
  		Var0.f_19 = { -22.5196f, 0f, -43.0435f };
  		Var0.f_33 = { 0f, 0f, 0f };
  		Var0.f_36 = 0f;
  		Var0.f_37 = 0;
  	}
  	else if (iParam0 == 2)
  	{
  		Var0 = 0;
  		Var0.f_1 = { 215.1206f, -853.3143f, 29.3684f };
  		Var0.f_4 = { 0f, 0f, 87.1787f };
  		Var0.f_7 = { func_507(2) };
  		Var0.f_22 = "Assassin_Hooker";
  		Var0.f_23 = 3000f;
  		Var0.f_24 = 2000f;
  		Var0.f_32 = -1;
  		Var0.f_25 = { 213.7994f, -853.9389f, 29.3929f };
  		Var0.f_28 = { 205.2641f, -847.2667f, 29.4903f };
  		Var0.f_31 = 140.1039f;
  		Var0.f_10 = { 216.7391f, -856.0031f, 32.7127f };
  		Var0.f_13 = { -25.1365f, 0f, 41.3912f };
  		Var0.f_16 = { 210.4668f, -851.3092f, 32.1099f };
  		Var0.f_19 = { -16.3326f, 0f, -127.0114f };
  		Var0.f_33 = { 213.8733f, -853.8161f, 29.3922f };
  		Var0.f_36 = 344.0112f;
  		Var0.f_37 = 0;
  	}
  	else if (iParam0 == 3)
  	{
  		Var0 = 0;
  		Var0.f_1 = { -22.5499f, -107.3546f, 56.0161f };
  		Var0.f_4 = { 0f, 0f, 269.7924f };
  		Var0.f_7 = { func_507(3) };
  		Var0.f_22 = "Assassin_Bus";
  		Var0.f_23 = 5000f;
  		Var0.f_24 = 2000f;
  		Var0.f_32 = -1;
  		Var0.f_25 = { -22.3125f, -108.9183f, 56.0068f };
  		Var0.f_28 = { -17.2677f, -118.5915f, 55.8734f };
  		Var0.f_31 = 1.4374f;
  		Var0.f_10 = { -26.1094f, -108.0298f, 59.052f };
  		Var0.f_13 = { -21.2059f, 0f, -109.0176f };
  		Var0.f_16 = { -20.1189f, -111.9639f, 59.4377f };
  		Var0.f_19 = { -27.0037f, 0f, 29.464f };
  		Var0.f_33 = { 0f, 0f, 0f };
  		Var0.f_36 = 0f;
  		Var0.f_37 = 0;
  	}
  	else if (iParam0 == 4)
  	{
  		Var0 = 0;
  		Var0.f_1 = { 806.1469f, -1070.21f, 27.3361f };
  		Var0.f_4 = { 0f, 0f, 90f };
  		Var0.f_7 = { func_507(4) };
  		Var0.f_22 = "Assassin_Construction";
  		Var0.f_23 = 8000f;
  		Var0.f_24 = 2000f;
  		Var0.f_32 = 1;
  		Var0.f_25 = { 804.9559f, -1070.46f, 27.3361f };
  		Var0.f_28 = { 799.8408f, -1079.142f, 27.321f };
  		Var0.f_31 = 69.6524f;
  		Var0.f_10 = { 801.8048f, -1068.068f, 30.3496f };
  		Var0.f_13 = { -20.8953f, 0f, -132.9451f };
  		Var0.f_16 = { 805.8168f, -1074.496f, 28.9803f };
  		Var0.f_19 = { -1.5585f, 0f, 6.9143f };
  		Var0.f_33 = { 804.8776f, -1070.523f, 27.3416f };
  		Var0.f_36 = 287.8741f;
  		Var0.f_37 = 0;
  	}
  	return Var0;
  }
  
  Vector3 func_507(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return -1704.427f, -1077.316f, 12.1111f;
  		
  		case 1:
  			return -700.429f, -916.7467f, 18.2143f;
  		
  		case 2:
  			return 214.1641f, -852.8006f, 29.3929f;
  		
  		case 3:
  			return -21.9871f, -107.4823f, 55.997f;
  		
  		case 4:
  			return 806.1469f, -1070.21f, 27.3361f;
  		
  		default:
  	}
  	return 0f, 0f, 0f;
  }
  
  void func_508()
  {
  	bool bVar0;
  	
  	bVar0 = func_93(Global_111638.f_19958.f_1, 4096);
  	Global_111638.f_19958.f_1 = 0;
  	if (bVar0)
  	{
  		func_515(&(Global_111638.f_19958.f_1), 4096);
  	}
  }
  
  void func_509(bool bParam0)
  {
  	if (bParam0)
  	{
  		StringCopy(&Global_110694, SCRIPT::GET_THIS_SCRIPT_NAME(), 24);
  		Global_110688 = 1;
  	}
  	else
  	{
  		StringCopy(&Global_110694, "NULL", 24);
  		Global_110688 = 0;
  	}
  }
  
  bool func_510()
  {
  	return func_401(&(Global_105187.f_2890));
  }
  
  int func_511()
  {
  	if (Global_98744 == 10 || Global_98744 == 9)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_512(var uParam0)
  {
  	struct<3> Var0;
  	
  	PHYSICS::ROPE_UNLOAD_TEXTURES();
  	func_509(0);
  	AUDIO::STOP_SCRIPTED_CONVERSATION(false);
  	func_137(0);
  	if (!ENTITY::IS_ENTITY_DEAD(PLAYER::PLAYER_PED_ID(), false) && !PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID()))
  	{
  		PED::SET_PED_USING_ACTION_MODE(PLAYER::PLAYER_PED_ID(), false, -1, 0);
  	}
  	iLocal_954 = iLocal_954;
  	VEHICLE::_REMOVE_SPEED_ZONE(iLocal_954);
  	VEHICLE::SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME(1f);
  	VEHICLE::SET_RANDOM_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME(1f);
  	VEHICLE::SET_ALL_VEHICLE_GENERATORS_ACTIVE_IN_AREA(-690.763f, -1607.467f, -100.9649f, -404.4197f, -1856.529f, 100.5908f, true, true);
  	PATHFIND::SET_ROADS_BACK_TO_ORIGINAL_IN_ANGLED_AREA(-706.106f, -1708.865f, -100f, -512.576f, -1842.173f, 100f, 100f, 1);
  	PATHFIND::SET_ROADS_BACK_TO_ORIGINAL_IN_ANGLED_AREA(-480.9742f, -1801.922f, 19.28045f, -712.8968f, -1671.164f, 29.93867f, 170f, 1);
  	PATHFIND::SET_ROADS_BACK_TO_ORIGINAL_IN_ANGLED_AREA(-674.8915f, -1683.639f, 9.116446f, -446.189f, -1807.7f, 31.72464f, 200f, 1);
  	PATHFIND::SET_ROADS_BACK_TO_ORIGINAL_IN_ANGLED_AREA(-662.6993f, -1645.326f, 24.07147f, -672.2144f, -1777.59f, 38.81248f, 45f, 1);
  	PATHFIND::SET_ROADS_BACK_TO_ORIGINAL_IN_ANGLED_AREA(-382.9608f, -1688.732f, 17.8985f, -431.2512f, -1811.23f, 37.6825f, 80f, 1);
  	Var0 = { 414.1398f, -640.002f, 27.5001f };
  	VEHICLE::SET_ALL_VEHICLE_GENERATORS_ACTIVE_IN_AREA((Var0.x - 40f), (Var0.f_1 - 40f), (Var0.f_2 - 40f), (Var0.x + 40f), (Var0.f_1 + 40f), (Var0.f_2 + 40f), true, true);
  	PATHFIND::SET_ROADS_BACK_TO_ORIGINAL_IN_ANGLED_AREA(426.035f, -644.93f, -100f, 421.035f, -644.93f, 100f, 55f, 1);
  	VEHICLE::SET_PARKED_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME(1f);
  	PED::CLEAR_PED_NON_CREATION_AREA();
  	PED::STOP_ANY_PED_MODEL_BEING_SUPPRESSED();
  	AUDIO::STOP_STREAM();
  	func_168(uParam0, 0);
  	PLAYER::SET_WANTED_LEVEL_MULTIPLIER(1f);
  	SCRIPT::TERMINATE_THIS_THREAD();
  }
  
  void func_513()
  {
  	int iVar0;
  	
  	if (SCRIPT::HAS_SCRIPT_LOADED("buddyDeathResponse"))
  	{
  		SYSTEM::START_NEW_SCRIPT("buddyDeathResponse", 1424);
  	}
  	if (Global_111638.f_9080 || func_18(0))
  	{
  		if (!func_514())
  		{
  			iVar0 = func_17();
  			if (iVar0 != -1)
  			{
  				if (!func_4(iVar0))
  				{
  					return;
  				}
  				MISC::SET_BIT(&(Global_89496[iVar0 /*5*/].f_1), 5);
  				return;
  			}
  		}
  		else
  		{
  			func_9();
  		}
  	}
  }
  
  int func_514()
  {
  	if (((Global_98744 == 13 || Global_98744 == 10) || Global_98744 == 11) || Global_98744 == 12)
  	{
  		return 0;
  	}
  	return 1;
  }
  
  void func_515(var uParam0, int iParam1)
  {
  	func_516(uParam0, iParam1);
  }
  
  void func_516(var uParam0, var uParam1)
  {
  	*uParam0 = (*uParam0 || uParam1);
  }
  
  float func_517()
  {
  	return SYSTEM::TO_FLOAT((540000 - iLocal_1245));
  }
  
  void func_518()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 35)
  	{
  		HUD::THEFEED_REMOVE_ITEM(Global_111638.f_14136[iVar0 /*104*/].f_16);
  		iVar0++;
  	}
  }
  
  